claude and example site
This commit is contained in:
222
example_site/style/base.css
Normal file
222
example_site/style/base.css
Normal file
@ -0,0 +1,222 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
@property --font-color {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(25.11% 0.006 258.36);
|
||||
}
|
||||
|
||||
@property --background-color {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(97.05% 0.039 91.2);
|
||||
}
|
||||
|
||||
@property --hover-color {
|
||||
syntax: "<color>";
|
||||
inherits: true;
|
||||
initial-value: oklch(82.39% 0.133 91.5);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--font-color: oklch(91.87% 0.003 264.54);
|
||||
--background-color: oklch(25.11% 0.006 258.36);
|
||||
--hover-color: oklch(90.92% 0.125 92.56);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: var(--background-color);
|
||||
color: var(--font-color);
|
||||
overflow-x: hidden !important;
|
||||
scrollbar-width: none;
|
||||
/* Firefox */
|
||||
-ms-overflow-style: none;
|
||||
/* Internet Explorer 10+ */
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
padding-right: 2.5rem;
|
||||
padding-left: 2.5rem;
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
font-family: "Outfit", serif;
|
||||
font-optical-sizing: auto;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
background-color: var(--background-color);
|
||||
color: var(--font-color);
|
||||
overflow-x: hidden !important;
|
||||
scrollbar-width: none;
|
||||
/* Firefox */
|
||||
-ms-overflow-style: none;
|
||||
/* Internet Explorer 10+ */
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.fixed-sidebar-holder {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
|
||||
.sidebar {
|
||||
width: 14em;
|
||||
min-width: 14em;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.sidebar a {
|
||||
text-decoration: none;
|
||||
color: var(--font-color);
|
||||
transition: color 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.sidebar a:hover {
|
||||
color: var(--hover-color);
|
||||
transition: color 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.sidebar h1 {
|
||||
padding: 0.25em;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.sidebar ul {
|
||||
list-style: none;
|
||||
padding: 0.3em;
|
||||
margin-left: 0.6em;
|
||||
}
|
||||
|
||||
.sidebar li {
|
||||
padding: 0.2em;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: calc(1ex / 0.32);
|
||||
max-width: 80ch;
|
||||
text-align: justify;
|
||||
hyphens: auto;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased !important;
|
||||
-moz-font-smoothing: antialiased !important;
|
||||
text-rendering: optimizelegibility !important;
|
||||
}
|
||||
|
||||
hr {
|
||||
max-width: 50px;
|
||||
}
|
||||
|
||||
.pre-loaded {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
will-change: opacity;
|
||||
transition: opacity 0.3s, visibility 0.3s ease-in;
|
||||
}
|
||||
|
||||
.loaded {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition: opacity 0.3s, visibility 0.3s ease-in;
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
h1, h2 {
|
||||
margin: 0.25em;
|
||||
}
|
||||
|
||||
ul, li {
|
||||
padding: 0.15em;
|
||||
margin: 0.15em;
|
||||
}
|
||||
|
||||
pre, code {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 872px) {
|
||||
body {
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.fixed-sidebar-holder {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.sidebar-toggle {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sidebar-toggle button {
|
||||
background-color: var(--background-color);
|
||||
color: var(--font-color);
|
||||
border: none;
|
||||
padding: 0.5em;
|
||||
margin: 0.5em;
|
||||
font-size: 1.5em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sidebar-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
ul, li {
|
||||
display: flex;
|
||||
padding: 0.15em;
|
||||
margin: 0.15em;
|
||||
}
|
||||
|
||||
.sidebar-header h1{
|
||||
padding: 0.15em;
|
||||
margin: 0.15em;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sidebar hr {
|
||||
margin: 0.15em;
|
||||
|
||||
}
|
||||
|
||||
.sidebar-toggle-active {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user