abtmtr-v4/views/styles/normal.css

528 lines
12 KiB
CSS
Raw Normal View History

2023-12-01 04:48:59 +00:00
/*
* THE KARKAT PUBLIC LICENSE
* Version 1, November 2023
*
* Copyright (C) 2023 MeowcaTheoRange <me@abtmtr.link>
*
* EVERYONE IS FREE TO MODIFY, USE, AND DISTRIBUTE
* THE INCLUDED PROGRAM CODE AS LONG AS THE KARKAT
* PUBLIC LICENSE'S CONTENTS PERSIST WITHIN.
*
* BY DOING SO, YOU AGREE TO BE BOUND BY THIS
* LICENSE'S TERMS AND CONDITIONS:
*
* 0. YOU AGREE NOT TO BE A WUSS ABOUT IT.
* 1. YOU AGREE THAT THIS SHITTY PROGRAM COMES
* WITH NO WARRANTY.
* 2. YOU FROND PROMISE THAT YOU WON'T SUE IF
* YOUR COMPUTER EXPLODES BECAUSE OF THIS
* PROGRAM.
* 3. YOU AGREE THAT KARKAT IS THE BEST HACKER ON
* ALTERNIA.
*
* WRITE YOUR PROGRAM NAME HERE:
* Normalize (normal.css)
* WRITE THE NAME(S) OF THE PROGRAM CODE AUTHOR(S)
* HERE:
* MeowcaTheoRange <me@abtmtr.link>
*
* GREAT, NOW FUCK OFF.
*/
/* Import the true normalize.css library for consistency across browsers */
2023-11-23 08:53:28 +00:00
@import url("https://necolas.github.io/normalize.css/8.0.1/normalize.css");
/* Document form */
:root {
2023-12-22 00:36:57 +00:00
/* The defining em-size of the document, in rem. */
--base-scale: 1rem;
2023-12-21 06:23:50 +00:00
/* The width of the document, in em. */
--document-width: 50em;
2023-11-23 08:53:28 +00:00
2023-12-21 06:23:50 +00:00
/* The basic color of the page, used for all values below. You can use this for a quick, single-color theme. */
--base-color: 0, 0%;
2023-12-01 04:48:59 +00:00
2023-12-21 06:23:50 +00:00
/* The font used in the document. */
2023-11-23 08:53:28 +00:00
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
2023-12-21 06:23:50 +00:00
/* The weight of the font used in the document. */
2023-12-01 04:48:59 +00:00
--font-weight: normal;
2023-11-23 08:53:28 +00:00
2023-12-21 16:04:15 +00:00
/* The font used for headers in the document. */
--header-font-family: var(--font-family);
/* The weight of the font used for headers in the document. */
--header-font-weight: bold;
2023-12-21 06:23:50 +00:00
/* The underlay color of the document. */
--underlay-color: hsl(var(--base-color), 10%);
/* The page color. */
--background-color: hsl(var(--base-color), 15%);
/* The foreground color of the page. */
--color: hsl(var(--base-color), 85%);
/* The accent color of the page. */
2023-12-22 00:32:20 +00:00
--accent-color: hsl(var(--base-color), 30%);
2023-12-21 09:12:17 +00:00
/* The background-adjacent accent color of the page. */
2023-12-22 00:32:20 +00:00
--accent-color-bg: hsl(var(--base-color), 75%);
2023-12-21 06:23:50 +00:00
/* The foreground accent color of the page. */
--accent-color-fg: hsl(var(--base-color), 95%);
2023-12-21 07:42:28 +00:00
/* The width of the borders used on certain elements. */
--border-width: calc(1em / 16);
2023-12-21 06:23:50 +00:00
/* The style of the borders used on certain elements. */
2023-12-21 07:42:28 +00:00
--border-style: solid;
/* The color of the borders used on certain elements. */
--border-color: var(--color);
2023-12-21 06:23:50 +00:00
/* The radius of the borders used on certain elements. */
2023-12-01 04:48:59 +00:00
--border-radius: 0;
2023-11-23 08:53:28 +00:00
}
2023-12-21 18:14:12 +00:00
@media (prefers-color-scheme: light) {
:root {
/* The underlay color of the document. */
--underlay-color: hsl(var(--base-color), 90%);
/* The page color. */
--background-color: hsl(var(--base-color), 80%);
/* The foreground color of the page. */
--color: hsl(var(--base-color), 15%);
/* The accent color of the page. */
2023-12-22 00:32:20 +00:00
--accent-color: hsl(var(--base-color), 70%);
2023-12-21 18:14:12 +00:00
/* The background-adjacent accent color of the page. */
2023-12-22 00:32:20 +00:00
--accent-color-bg: hsl(var(--base-color), 25%);
2023-12-21 18:14:12 +00:00
/* The foreground accent color of the page. */
--accent-color-fg: hsl(var(--base-color), 5%);
/* The color of the borders used on certain elements. */
--border-color: var(--color);
}
}
2023-11-23 08:53:28 +00:00
html.base {
2023-12-22 00:32:20 +00:00
/* --base-color: 0, 0% !important; */
2023-12-21 16:04:15 +00:00
2023-12-22 04:08:35 +00:00
/* --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
2023-12-21 16:04:15 +00:00
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol" !important;
2023-12-22 00:32:20 +00:00
--font-weight: normal !important;
2023-12-21 16:04:15 +00:00
--header-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol" !important;
2023-12-22 04:08:35 +00:00
--header-font-weight: bold !important; */
2023-12-21 16:04:15 +00:00
2023-12-21 06:23:50 +00:00
--underlay-color: #fff !important;
--background-color: transparent !important;
2023-11-23 08:53:28 +00:00
--color: #000 !important;
2023-12-21 09:12:17 +00:00
--accent-color: #c0c0c0 !important;
--accent-color-bg: #000 !important;
--accent-color-fg: #000 !important;
2023-12-01 04:48:59 +00:00
2023-12-22 00:32:20 +00:00
--border-width: calc(1em / 16) !important;
--border-style: solid !important;
--border-color: var(--color) !important;
--border-radius: 0 !important;
2023-11-23 08:53:28 +00:00
}
2023-12-21 09:12:17 +00:00
@media (prefers-color-scheme: dark) {
html.base {
--underlay-color: #000 !important;
--background-color: transparent !important;
--color: #fff !important;
--accent-color: #404040 !important;
--accent-color-bg: #fff !important;
--accent-color-fg: #fff !important;
--border-color: var(--color);
}
}
2023-12-22 00:32:20 +00:00
@media (forced-colors: active) {
:root {
/* --base-color: 0, 0% !important; */
2023-12-22 04:08:35 +00:00
/* --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
2023-12-22 00:32:20 +00:00
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol" !important;
--font-weight: normal !important;
--header-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol" !important;
2023-12-22 04:08:35 +00:00
--header-font-weight: bold !important; */
2023-12-22 00:32:20 +00:00
--underlay-color: #fff !important;
--background-color: transparent !important;
--color: #000 !important;
--accent-color: #c0c0c0 !important;
--accent-color-bg: #000 !important;
--accent-color-fg: #000 !important;
--border-width: calc(1em / 16) !important;
--border-style: solid !important;
--border-color: var(--color) !important;
--border-radius: 0 !important;
}
2023-11-23 08:53:28 +00:00
}
/* Size and type normalize */
html {
font-size: var(--base-scale);
line-height: 1em;
2023-12-21 06:23:50 +00:00
background-color: var(--underlay-color);
2023-11-23 08:53:28 +00:00
color: var(--color);
}
2023-12-21 06:23:50 +00:00
body {
width: 100vw;
background-color: var(--background-color);
max-width: var(--document-width);
min-height: 100vh;
margin: auto;
padding-inline: 2em;
padding-block: 1em;
}
2023-11-23 08:53:28 +00:00
main {
margin-block: 1em;
}
h1 {
2023-12-21 16:04:15 +00:00
font-family: var(--header-font-family);
font-weight: var(--header-font-weight);
2023-11-23 08:53:28 +00:00
font-size: 2em;
line-height: 1.5em;
margin: 0;
margin-block: 0.125em;
}
h2 {
2023-12-21 16:04:15 +00:00
font-family: var(--header-font-family);
font-weight: var(--header-font-weight);
2023-11-23 08:53:28 +00:00
font-size: 1.5em;
line-height: 1.25em;
margin: 0;
2023-12-21 07:42:28 +00:00
margin-block: 0.5em;
2023-11-23 08:53:28 +00:00
}
h3 {
2023-12-21 16:04:15 +00:00
font-family: var(--header-font-family);
font-weight: var(--header-font-weight);
2023-11-23 08:53:28 +00:00
font-size: 1.1em;
line-height: 1.25em;
margin: 0;
2023-12-21 07:42:28 +00:00
margin-block: 0.5em;
}
h4 {
2023-12-21 16:04:15 +00:00
font-family: var(--header-font-family);
font-weight: var(--header-font-weight);
2023-12-21 07:42:28 +00:00
font-size: 1em;
line-height: 1.25em;
margin: 0;
margin-block: 0.5em;
2023-11-23 08:53:28 +00:00
}
p {
font-size: 1em;
2023-11-26 19:14:50 +00:00
line-height: 1.5em;
2023-11-23 08:53:28 +00:00
margin-inline: 0;
margin-block: 0.5em;
}
2023-12-07 16:34:09 +00:00
img {
max-width: 100%;
}
2023-11-23 08:53:28 +00:00
ul,
ol {
padding: 0;
padding-inline-start: 1em;
margin: 0;
margin-block: 0.5em;
}
li {
margin-inline: 0;
2023-11-28 05:00:15 +00:00
line-height: 1.5em;
2023-11-23 08:53:28 +00:00
margin-block: 0.5em;
}
small {
font-size: 0.75em;
}
big {
font-size: 1.5em;
}
code {
font-size: 1em;
line-height: 1.25em;
font-family: monospace;
}
2023-12-01 04:48:59 +00:00
pre {
display: inline-block;
width: 100%;
overflow-x: auto;
font-size: 1em;
line-height: 1.25em;
padding: 0.5em;
margin-block: 0.5em;
box-sizing: border-box;
}
2023-11-23 08:53:28 +00:00
hr {
border: none;
2023-12-21 07:42:28 +00:00
border-top: var(--border-width) var(--border-style) var(--border-color);
2023-11-23 08:53:28 +00:00
background-color: transparent;
margin-inline: 0;
margin-block: 0.25em;
}
2023-11-26 19:14:50 +00:00
blockquote {
margin-inline: 1em;
margin-block: 0.5em;
}
2023-12-29 07:18:20 +00:00
/* Pseudo normalize */
::selection {
color: var(--background-color);
background-color: var(--color);
}
2023-11-23 08:53:28 +00:00
/* Form normalize */
html {
font-family: var(--font-family);
2023-12-01 04:48:59 +00:00
font-weight: var(--font-weight);
2023-11-23 08:53:28 +00:00
}
* {
box-sizing: border-box;
}
*:focus {
2023-12-21 09:12:17 +00:00
outline: 2px solid var(--accent-color-bg);
2023-11-23 08:53:28 +00:00
}
fieldset {
2023-12-21 07:42:28 +00:00
border: var(--border-width) var(--border-style) var(--border-color);
2023-12-01 04:48:59 +00:00
border-radius: var(--border-radius);
2023-11-23 08:53:28 +00:00
padding-inline: 0.5em;
padding-block: 0.25em;
margin-inline: 0;
margin-block: 0.5em;
font-size: 1em;
background-color: var(--background-color);
color: var(--color);
}
2023-12-21 19:07:04 +00:00
legend {
padding-inline: var(--border-width);
}
2023-12-21 08:57:17 +00:00
summary {
font-size: 1em;
line-height: 1.5em;
margin-inline: 0;
margin-block: 0.5em;
}
2023-12-01 04:48:59 +00:00
iframe {
2023-12-21 07:42:28 +00:00
border: var(--border-width) var(--border-style) var(--border-color);
2023-12-01 04:48:59 +00:00
border-radius: var(--border-radius);
width: 100%;
aspect-ratio: 16/9;
}
2023-11-23 08:53:28 +00:00
/* Interactive normalize */
a {
2023-12-21 09:12:17 +00:00
color: var(--accent-color-bg);
2023-12-21 07:42:28 +00:00
text-decoration: underline;
2023-11-23 08:53:28 +00:00
}
a:hover,
a:focus {
opacity: 0.8;
}
a:active {
opacity: 0.5;
}
input,
select,
textarea {
font-family: inherit;
2023-12-21 07:42:28 +00:00
border: var(--border-width) var(--border-style) var(--border-color);
2023-12-01 04:48:59 +00:00
border-radius: var(--border-radius);
2023-11-23 08:53:28 +00:00
padding-inline: 0.5em;
padding-block: 0.25em;
margin-inline: 0;
margin-block: 0.25em;
font-size: 1em;
2023-12-21 08:57:17 +00:00
vertical-align: middle;
2023-11-23 08:53:28 +00:00
background-color: var(--background-color);
color: var(--color);
}
input:disabled {
opacity: 0.5;
}
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
2023-12-21 07:42:28 +00:00
border: var(--border-width) var(--border-style) var(--border-color);
2023-12-01 04:48:59 +00:00
border-radius: var(--border-radius);
2023-11-23 08:53:28 +00:00
padding-inline: 0.5em;
padding-block: 0.25em;
margin-inline: 0;
margin-block: 0.25em;
font-size: 1em;
line-height: 1.25em;
2023-11-23 08:53:28 +00:00
font-family: inherit;
background-color: var(--accent-color);
color: var(--accent-color-fg);
}
button[data-outlined],
input[type="button"][data-outlined],
input[type="submit"][data-outlined],
input[type="reset"][data-outlined] {
2023-12-21 07:42:28 +00:00
border: var(--border-width) var(--border-style) var(--border-color);
2023-12-01 04:48:59 +00:00
border-radius: var(--border-radius);
2023-11-23 08:53:28 +00:00
background-color: var(--background-color);
color: var(--accent-color);
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus {
opacity: 0.8;
}
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
opacity: 0.5;
}
2023-12-01 02:55:43 +00:00
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
opacity: 0.5;
}
2023-11-23 08:53:28 +00:00
/* -- Checkbox styling */
label.checkbox {
display: inline-block;
position: relative;
margin-inline: 0;
margin-block: 0.25em;
2023-12-21 08:57:17 +00:00
vertical-align: middle;
2023-11-23 08:53:28 +00:00
}
label.checkbox input[type="checkbox"] {
/* visibility: hidden; */
opacity: 0;
width: 0;
height: 0;
position: absolute;
top: 0;
left: 0;
}
label.checkbox input[type="checkbox"] + span.checkbox {
display: inline-block;
width: 1em;
height: 1em;
line-height: 1em;
padding-inline: 0.25em;
padding-block: 0.25em;
box-sizing: content-box;
2023-12-21 07:42:28 +00:00
border: var(--border-width) var(--border-style) var(--border-color);
2023-12-01 04:48:59 +00:00
border-radius: var(--border-radius);
2023-11-23 08:53:28 +00:00
color: transparent;
text-align: center;
user-select: none;
2023-12-21 08:57:17 +00:00
vertical-align: middle;
2023-11-23 08:53:28 +00:00
}
label.checkbox input[type="checkbox"]:focus + span.checkbox {
2023-12-21 09:12:17 +00:00
outline: 2px solid var(--accent-color-bg);
2023-11-23 08:53:28 +00:00
}
label.checkbox input[type="checkbox"]:checked + span.checkbox {
background-color: var(--accent-color);
2023-12-21 07:42:28 +00:00
border: var(--border-width) var(--border-style) var(--border-color);
2023-12-01 04:48:59 +00:00
border-radius: var(--border-radius);
2023-11-23 08:53:28 +00:00
color: var(--accent-color-fg);
}
2023-12-21 08:57:17 +00:00
/* -- Range styling */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
box-sizing: content-box;
position: relative;
display: inline-block;
width: 10em;
height: 1em;
line-height: 1em;
border: var(--border-width) var(--border-style) var(--border-color);
border-radius: var(--border-radius);
padding-inline: 0;
padding-block: 0.25em;
margin-inline: 0;
margin-block: 0.25em;
}
input[type="range"]:focus {
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
border: var(--border-width) var(--border-style) var(--border-color);
border-radius: var(--border-radius);
background-color: var(--accent-color);
2023-12-22 01:11:59 +00:00
height: 1.5em;
box-sizing: content-box;
2023-12-21 08:57:17 +00:00
width: 1em;
}
input[type="range"]:focus::-webkit-slider-thumb {
2023-12-21 09:12:17 +00:00
outline: 2px solid var(--accent-color-bg);
2023-12-21 08:57:17 +00:00
}
input[type="range"]::-moz-range-thumb {
border: var(--border-width) var(--border-style) var(--border-color);
border-radius: var(--border-radius);
background-color: var(--accent-color);
height: 1.5em;
2023-12-22 01:11:59 +00:00
box-sizing: content-box;
2023-12-21 08:57:17 +00:00
width: 1em;
}
input[type="range"]:focus::-moz-range-thumb {
2023-12-21 09:12:17 +00:00
outline: 2px solid var(--accent-color-bg);
2023-12-21 08:57:17 +00:00
}