196 lines
4.4 KiB
CSS
196 lines
4.4 KiB
CSS
|
/*
|
||
|
Copyright (c) 2021 Xe <me@christine.website>
|
||
|
|
||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
of this software and associated documentation files (the "Software"), to deal
|
||
|
in the Software without restriction, including without limitation the rights
|
||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
copies of the Software, and to permit persons to whom the Software is
|
||
|
furnished to do so, subject to the following conditions:
|
||
|
|
||
|
The above copyright notice and this permission notice shall be included in
|
||
|
all copies or substantial portions of the Software.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
|
THE SOFTWARE.
|
||
|
*/
|
||
|
|
||
|
:root {
|
||
|
--selection: hsla(var(--accent-color), 80%, 30%, 100%);
|
||
|
--selection-light: hsla(var(--accent-color), 50%, 80%, 100%);
|
||
|
--background: hsla(var(--background-color), 100%, 10%, 100%);
|
||
|
--background-light: hsla(var(--background-color), 10%, 95%, 100%);
|
||
|
--text: hsla(var(--text-color), 0%, 90%, 100%);
|
||
|
--text-light: hsla(var(--text-color), 90%, 5%, 100%);
|
||
|
--pre-background: hsla(var(--background-color), 90%, 5%, 100%);
|
||
|
--pre-background-light: hsla(var(--background-color), 10%, 80%, 100%);
|
||
|
--a-background: hsla(var(--background-color), 90%, 5%, 100%);
|
||
|
--a-background-light: hsla(var(--background-color), 30%, 90%, 100%);
|
||
|
--a-color: hsla(var(--accent-color), 70%, 85%, 100%);
|
||
|
--a-color-light: hsla(var(--accent-color), 80%, 10%, 100%);
|
||
|
--blockquote-border: 0.5ch solid hsla(var(--accent-color), 80%, 80%, 100%);
|
||
|
--blockquote-border-light: 0.5ch solid hsla(var(--accent-color), 50%, 30%, 100%);
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
font-family: var(--font-family);
|
||
|
max-width: var(--width);
|
||
|
padding: var(--padding);
|
||
|
margin: auto;
|
||
|
}
|
||
|
|
||
|
@media only screen and (max-device-width: 736px) {
|
||
|
main {
|
||
|
padding: 0rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
::selection {
|
||
|
background: var(--selection);
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
background: var(--background);
|
||
|
color: var(--text);
|
||
|
}
|
||
|
|
||
|
pre {
|
||
|
font-family: var(--pre-font-family);
|
||
|
background-color: var(--pre-background);
|
||
|
padding: 1em;
|
||
|
border: 0;
|
||
|
}
|
||
|
|
||
|
a, a:active, a:visited {
|
||
|
color: var(--selection);
|
||
|
background-color: var(--a-background);
|
||
|
}
|
||
|
|
||
|
h1, h2, h3, h4, h5, h6 {
|
||
|
font-family: var(--header-font-family);
|
||
|
margin-bottom: .1rem;
|
||
|
}
|
||
|
|
||
|
blockquote {
|
||
|
border-left: var(--blockquote-border);
|
||
|
margin: 0.5em 10px;
|
||
|
padding: 0.5em 10px;
|
||
|
}
|
||
|
|
||
|
footer {
|
||
|
align: center;
|
||
|
}
|
||
|
|
||
|
@media (prefers-color-scheme: light) {
|
||
|
::selection {
|
||
|
background: var(--selection-light);
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
background: var(--background-light);
|
||
|
color: var(--text-light);
|
||
|
}
|
||
|
|
||
|
pre {
|
||
|
background-color: var(--pre-background-light);
|
||
|
padding: 1em;
|
||
|
border: 0;
|
||
|
}
|
||
|
|
||
|
a, a:active, a:visited {
|
||
|
color: var(--a-color-light);
|
||
|
background-color: var(--a-background-light);
|
||
|
}
|
||
|
|
||
|
h1, h2, h3, h4, h5 {
|
||
|
margin-bottom: .1rem;
|
||
|
}
|
||
|
|
||
|
blockquote {
|
||
|
border-left: var(--blockquote-border-light);
|
||
|
margin: 0.5em 10px;
|
||
|
padding: 0.5em 10px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/** Custom **/
|
||
|
main {
|
||
|
font-family: monospace, monospace;
|
||
|
max-width: 38rem;
|
||
|
padding: 2rem;
|
||
|
margin: auto;
|
||
|
}
|
||
|
|
||
|
@media only screen and (max-device-width: 736px) {
|
||
|
main {
|
||
|
padding: 0rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
::selection {
|
||
|
background: #d3869b;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
background: #282828;
|
||
|
color: #ebdbb2;
|
||
|
}
|
||
|
|
||
|
pre {
|
||
|
background-color: #3c3836;
|
||
|
padding: 1em;
|
||
|
border: 0;
|
||
|
}
|
||
|
|
||
|
a, a:active, a:visited {
|
||
|
color: #b16286;
|
||
|
background-color: #1d2021;
|
||
|
}
|
||
|
|
||
|
h1, h2, h3, h4, h5 {
|
||
|
margin-bottom: .1rem;
|
||
|
}
|
||
|
|
||
|
blockquote {
|
||
|
border-left: 1px solid #bdae93;
|
||
|
margin: 0.5em 10px;
|
||
|
padding: 0.5em 10px;
|
||
|
}
|
||
|
|
||
|
footer {
|
||
|
align: center;
|
||
|
}
|
||
|
|
||
|
@media (prefers-color-scheme: light) {
|
||
|
body {
|
||
|
background: #fbf1c7;
|
||
|
color: #3c3836;
|
||
|
}
|
||
|
|
||
|
pre {
|
||
|
background-color: #ebdbb2;
|
||
|
padding: 1em;
|
||
|
border: 0;
|
||
|
}
|
||
|
|
||
|
a, a:active, a:visited {
|
||
|
color: #b16286;
|
||
|
background-color: #f9f5d7;
|
||
|
}
|
||
|
|
||
|
h1, h2, h3, h4, h5 {
|
||
|
margin-bottom: .1rem;
|
||
|
}
|
||
|
|
||
|
blockquote {
|
||
|
border-left: 1px solid #655c54;
|
||
|
margin: 0.5em 10px;
|
||
|
padding: 0.5em 10px;
|
||
|
}
|
||
|
}
|