roxy-docs/in/static/css/style.css

130 lines
2.1 KiB
CSS
Raw Normal View History

2024-02-20 11:42:49 +00:00
@import "/static/fonts/roboto_regular/stylesheet.css";
@import "/static/fonts/spacemono_bold/stylesheet.css";
@import "/static/css/nav.css";
/* Variables */
:root {
--black: #000000;
--soft-black: #181a1b;
--softer-black: #282828;
--softest-black: #323232;
--white: #ffffff;
--soft-white: #d7d3ce;
--softer-white: #969696;
--indigo: #4b0082;
--background-color: var(--soft-black);
--foreground-color: var(--softest-black);
--primary-color: var(--indigo);
--default-font-size: 1.4rem;
--desktop-font-size: 1.8rem;
--font-color-primary: var(--white);
--font-family-paragraph: "robotoregular", sans-serif;
--font-color-secondary: var(--white);
--font-family-header: sans-serif;
--link-color: var(--soft-white);
}
/* Boilerplate */
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
:focus:not(:focus-visible) {
outline: none;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
height: 100%;
text-rendering: optimizeLegibility;
font-kerning: normal;
line-height: 2rem;
}
html {
font-size: 62.5%;
}
a {
text-underline-position: under;
text-decoration-thickness: 8;
}
pre {
padding: 0.5rem;
}
img {
display: block;
max-width: 100%;
}
label,
button,
select,
summary,
[type=radio],
[type=submit],
[type=checkbox] {
cursor: pointer;
}
article ol,
article ul {
list-style-position: inside;
}
/* Styling */
body {
background-color: var(--background-color);
color: var(--font-color-primary);
font-family: var(--font-family-paragraph);
font-size: var(--default-font-size);
-webkit-text-size-adjust: none;
text-size-adjust: none;
display: flex;
flex-direction: column;
}
@media only screen and (min-width: 768px) {
body {
flex-direction: row;
font-size: var(--desktop-font-size);
}
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family-header);
}
main {
padding: 2rem;
width: 100%;
overflow: auto;
padding-bottom: 8rem;
}
a { color: var(--link-color); }
a:hover { color: var(--link-color); }
a:visited { color: var(--link-color); }
a:active { color: var(--link-color); }