You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ashen-earth/styles/layout.css

118 lines
2.2 KiB
CSS

1 year ago
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200&display=swap');
1 year ago
:root, :root.dark {
--backgroundDark:#2F2536;
--foregroundDark:#E1B8FF;
--illustrationDark: white;
1 year ago
--backgroundLight: #f5eaff;
--foregroundLight: #49332d;
--illustrationLight: #8c002e;
1 year ago
--padding: 16px;
--background: var(--backgroundDark);
--foreground: var(--foregroundDark);
--illustration: var(--illustrationDark);
1 year ago
}
@media (prefers-color-scheme: light) {
:root {
--background: var(--backgroundLight);
--foreground: var(--foregroundLight);
--illustration: var(--illustrationLight);
1 year ago
}
}
1 year ago
:root.light {
1 year ago
--background: var(--backgroundLight);
--foreground: var(--foregroundLight);
--illustration: var(--illustrationLight);
1 year ago
}
body {
background-color: var(--background);
color: var(--foreground);
margin: 0;
padding: 0;
font-family: 'Outfit', sans-serif;
}
#container {
1 year ago
min-height: 100vh;
display: flex;
flex-direction: column;
}
#container header {
1 year ago
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
border-bottom: solid 1px var(--foreground);
}
#container header p.site-title {
1 year ago
margin: calc(var(--padding) / 2) var(--padding);
}
#container header p.site-title a {
1 year ago
font-size: 28px;
color: inherit;
text-decoration: none;
}
#container header nav {
1 year ago
flex: 1;
text-align: right;
margin: calc(var(--padding) / 2) var(--padding);
}
#container header nav a {
1 year ago
margin-left: var(--padding);
color: inherit;
}
#container main {
1 year ago
width: 800px;
max-width: calc(100vw - 300px);
min-width: 300px;
margin: 0 auto;
}
#container main canvas {
color: var(--illustration);
}
#container main p > code {
padding: 2px 4px;
position: relative;
font-style: italic;
white-space: pre;
}
#container main p > code::before {
content: ' ';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: currentColor;
border-radius: 8px;
opacity: .15;
pointer-events: none;
}
#container main p > code::after {
content: ' ';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: solid 1px currentColor;
opacity: .8;
border-radius: 8px;
pointer-events: none;
}