trimill.xyz/flaskr/static/style.css

286 lines
4.7 KiB
CSS
Raw Permalink Normal View History

2023-02-22 22:12:52 +00:00
@font-face {
2024-05-12 23:21:34 +00:00
font-family: Merriweather;
src: url(/static/f/Merriweather-Light.woff2);
font-weight: 400;
2023-02-22 22:12:52 +00:00
}
@font-face {
2024-05-12 23:21:34 +00:00
font-family: Merriweather;
src: url(/static/f/Merriweather-LightItalic.woff2);
font-weight: 400;
font-style: italic;
2023-02-22 22:12:52 +00:00
}
@font-face {
2024-05-12 23:21:34 +00:00
font-family: Merriweather;
src: url(/static/f/Merriweather-Bold.woff2);
font-weight: 700;
2023-02-22 22:12:52 +00:00
}
@font-face {
2024-05-12 23:21:34 +00:00
font-family: Merriweather;
src: url(/static/f/Merriweather-BoldItalic.woff2);
font-weight: 700;
font-style: italic;
2023-02-22 22:12:52 +00:00
}
@font-face {
2024-05-12 23:21:34 +00:00
font-family: "Roboto Slab";
src: url(/static/f/RobotoSlab-Medium.woff2);
font-weight: 500;
2023-02-22 22:12:52 +00:00
}
2022-06-23 05:58:54 +00:00
@media (prefers-color-scheme: dark) {
2024-05-12 23:21:34 +00:00
:root.theme-system {
--bg: #131720;
--bg-intense: #000000;
--bg-faded: #293441;
--fg: #e6ded6;
--fg-faded: #908a81;
--accent-1: #2aca98;
--accent-1-dark: #268d78;
--error: #ee6d7d;
--error-bg: #9b3440;
--bgimg: url("/static/i/bg.png");
}
.only-theme-light {
display: none;
}
2022-06-23 05:58:54 +00:00
}
@media (prefers-color-scheme: light) {
2024-05-12 23:21:34 +00:00
:root.theme-system {
--bg: #f6f5f2;
--bg-intense: #ffffff;
--bg-faded: #cbc4c7;
--fg: #28262b;
--fg-faded: #989097;
--accent-1: #0642c3;
--accent-1-dark: #07136d;
--accent-2: #0f7904;
--accent-2-dark: #094a05;
--error: #a50518;
--error-bg: #ee6d7d;
--bgimg: url("/static/i/bg_light.png");
}
.only-theme-dark {
display: none;
}
2022-06-23 05:58:54 +00:00
}
2023-01-01 00:00:52 +00:00
:root.theme-dark {
2024-05-12 23:21:34 +00:00
--bg: #131720;
--bg-intense: #000000;
--bg-faded: #293441;
--fg: #e6ded6;
--fg-faded: #908a81;
--accent-1: #2aca98;
--accent-1-dark: #268d78;
--error: #ee6d7d;
--error-bg: #9b3440;
--bgimg: url("/static/i/bg.png");
2022-06-23 05:58:54 +00:00
}
2023-01-01 00:00:52 +00:00
:root.theme-light {
2024-05-12 23:21:34 +00:00
--bg: #f6f5f2;
--bg-intense: #ffffff;
--bg-faded: #cbc4c7;
--fg: #28262b;
--fg-faded: #989097;
--accent-1: #0642c3;
--accent-1-dark: #07136d;
--error: #a50518;
--error-bg: #ee6d7d;
--bgimg: url("/static/i/bg_light.png");
2022-06-23 05:58:54 +00:00
}
:root {
2024-05-12 23:21:34 +00:00
color: var(--fg);
--text-fonts: "Merriweather", "DejaVu Serif", serif;
font-family: var(--text-fonts);
font-size: 19px;
font-weight: 400;
line-height: 1.6;
--link: var(--accent-1);
--link-hover: var(--accent-1-dark);
--link-active: var(--accent-1-dark);
--button: var(--bg-intense);
--button-hover: var(--bg-faded);
--button-active: var(--accent-1-dark);
overflow-wrap: break-word;
2022-06-23 05:58:54 +00:00
}
h1, h2, h3, nav {
2024-05-12 23:21:34 +00:00
font-family: "Roboto Slab", serif;
font-weight: 500;
margin-top: 16px;
margin-bottom: 16px;
2022-06-23 05:58:54 +00:00
}
h1 {
2024-05-12 23:21:34 +00:00
width: fit-content;
margin-left: auto;
margin-right: auto;
margin-top: 4px;
margin-bottom: 0px;
2022-06-23 05:58:54 +00:00
}
body {
2024-05-12 23:21:34 +00:00
background-image: var(--bgimg);
background-color: var(--bg);
image-rendering: pixelated;
width: min(750px, 90vw);
margin: auto;
min-height: 100vh;
display: flex;
flex-direction: column;
2022-06-23 05:58:54 +00:00
}
main {
2024-05-12 23:21:34 +00:00
flex-grow: 1;
2022-06-23 05:58:54 +00:00
}
2023-02-22 22:12:52 +00:00
hr {
2024-05-12 23:21:34 +00:00
width: 100%;
2023-02-22 22:12:52 +00:00
}
section {
2024-05-12 23:21:34 +00:00
padding-left: 10px;
background-color: var(--bg-intense);
2023-02-22 22:12:52 +00:00
}
2022-06-23 05:58:54 +00:00
footer {
2024-05-12 23:21:34 +00:00
text-align: center;
color: var(--fg-faded);
margin-top: auto;
flex-shrink: 0;
min-height: 50px;
font-size: 12px;
2022-06-23 05:58:54 +00:00
}
footer code {
2024-05-12 23:21:34 +00:00
font-size: 12px;
2022-06-23 05:58:54 +00:00
}
nav {
2024-05-12 23:21:34 +00:00
padding-top: 10px;
width: fit-content;
margin: auto;
font-size: 20px;
2022-06-23 05:58:54 +00:00
}
nav > svg {
2024-05-12 23:21:34 +00:00
position: absolute;
top: 16px;
height: 20px;
width: auto;
padding-left: 15px;
padding-right: 10px;
fill: var(--fg);
2022-06-23 05:58:54 +00:00
}
nav > a {
2024-05-12 23:21:34 +00:00
color: var(--fg);
text-decoration: none;
padding-left: 10px;
padding-right: 10px;
2022-06-23 05:58:54 +00:00
}
nav > a:hover { color: var(--fg-faded); }
a {
2024-05-12 23:21:34 +00:00
color: var(--link);
text-decoration: none;
2022-06-23 05:58:54 +00:00
}
2022-10-18 14:27:37 +00:00
:root[theme="contrast"] a, :root[theme="contrast-dark"] a {
2024-05-12 23:21:34 +00:00
text-decoration: underline;
2022-06-23 05:58:54 +00:00
}
a:hover { color: var(--link-hover); }
a:active { color: var(--link-active); }
.faded {
2024-05-12 23:21:34 +00:00
color: var(--fg-faded);
2022-06-23 05:58:54 +00:00
}
p {
2024-05-12 23:21:34 +00:00
margin-top: 10px;
margin-bottom: 10px;
2022-06-23 05:58:54 +00:00
}
2022-12-24 06:37:56 +00:00
blockquote {
2024-05-12 23:21:34 +00:00
border-left: 2px solid var(--fg-faded);
margin-left: 2px;
padding-left: 15px;
2022-12-24 06:37:56 +00:00
}
2022-06-23 05:58:54 +00:00
code, pre {
2024-05-12 23:21:34 +00:00
background-color: var(--bg-intense);
padding-left: 3px;
padding-right: 3px;
padding-top: 2px;
padding-bottom: 2px;
border-radius: 3px;
font-family: "Fira Mono", monospace;
font-size: 18px;
2022-06-23 05:58:54 +00:00
}
pre {
2024-05-12 23:21:34 +00:00
padding-top: 3px;
padding-bottom: 3px;
padding-left: 12px;
border-left: 5px solid var(--accent-1-dark);
2022-06-23 05:58:54 +00:00
}
2022-10-18 14:27:37 +00:00
button, input, select, textarea {
2024-05-12 23:21:34 +00:00
color: var(--fg);
background-color: var(--bg-faded);
border: 2px solid var(--fg-faded);
border-radius: 3px;
font-family: var(--text-fonts);
font-size: 16px;
2022-06-23 05:58:54 +00:00
}
button:active, input[type=button]:active {
2024-05-12 23:21:34 +00:00
background-color: var(--bg);
2022-06-23 05:58:54 +00:00
}
button:active, input[type=button]:active {
2024-05-12 23:21:34 +00:00
background-color: var(--bg);
2022-06-23 05:58:54 +00:00
}
.error {
2024-05-12 23:21:34 +00:00
color: var(--error);
}
#abdetect-container {
position: relative;
display: inline-block;
text-align: center;
margin-bottom: 5px;
}
#abthankyou {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
color: var(--fg-faded);
font-size: 12px;
}
#ad {
z-index: 99999;
background: var(--error-bg);
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
color: var(--fg);
font-weight: bold;
2022-10-18 14:27:37 +00:00
}