nodrm/public/css/index.css

183 lines
3.1 KiB
CSS
Raw Normal View History

2024-06-15 12:54:31 +02:00
@font-face {
font-family: 'Teko';
src: url('/fonts/teko-light-webfont.woff');
font-weight: 300;
}
@font-face {
font-family: 'Teko';
src: url('/fonts/teko-regular-webfont.woff');
font-weight: 400;
}
@font-face {
font-family: 'Teko';
src: url('/fonts/teko-medium-webfont.woff');
font-weight: 500;
}
@font-face {
font-family: 'Teko';
src: url('/fonts/teko-semibold-webfont.woff');
font-weight: 600;
}
@font-face {
font-family: 'Teko';
src: url('/fonts/teko-bold-webfont.woff2') format('woff2'), url('../fonts/teko-bold-webfont.woff') format('woff');
font-weight: 700;
font-display: swap;
}
:root {
2024-07-28 21:11:12 +02:00
--background-color: #212529;
--background-color-alt: #343a40;
--text-color: #e9ecef;
2024-08-30 22:40:55 +02:00
--background-btn: rgba(255 255 255 / 10%);
--hover: rgba(255 255 255 / 30%);
2024-06-15 12:54:31 +02:00
--font-family: Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Cantarell,
Roboto,
Oxygen,
Ubuntu,
'Fira Sans',
'Droid Sans',
'Helvetica Neue',
sans-serif;
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
--font-family-logo: Teko,
sans-serif;
--font-family-title:Teko,
sans-serif;
}
2024-08-30 22:40:55 +02:00
@media (prefers-color-scheme: light) {
:root {
--background-color: #f8f9fa;
--background-color-alt: #e9ecef;
--text-color: #212529;
--background-btn: rgba(0 0 0 / 5%);
--hover: rgba(0 0 0 / 10%);
}
}
2024-06-15 12:54:31 +02:00
* {
box-sizing: border-box;
}
2024-07-28 21:11:12 +02:00
h1, h2, p, nav, main {
margin-bottom: 1.5rem!important;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
h1, h2 {
font-family: var(--font-family-title);
2024-06-15 12:54:31 +02:00
margin: auto;
}
h1 {
2024-07-28 21:11:12 +02:00
font-size: 4.5rem;
line-height: 4.5rem;
2024-06-15 12:54:31 +02:00
text-align: center;
}
2024-07-28 21:11:12 +02:00
h2 {
font-size: 2rem;
line-height: 3rem;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
html {
font-family: var(--font-family);
2024-06-15 12:54:31 +02:00
background-color: var(--background-color);
2024-07-28 21:11:12 +02:00
font-size: 16px;
line-height: 1.5rem;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
body {
color: var(--text-color);
2024-06-15 12:54:31 +02:00
margin: auto;
2024-07-28 21:11:12 +02:00
max-width: 800px;
padding: 1.5rem;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
nav {
border-radius: 999px;
padding: .33rem;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
nav ol {
display: flex;
justify-content: space-between;
margin: 0;
padding: 0;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
nav li {
list-style-type: none;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
nav a, a.btn {
display: block;
margin: auto;
padding: .66rem 1rem;
border-radius: 999px;
width:fit-content;
text-decoration: none;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
nav, .btn {
2024-08-30 22:40:55 +02:00
background-color: var(--background-btn);
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
a {
2024-06-15 12:54:31 +02:00
color: var(--text-color);
2024-07-28 21:11:12 +02:00
text-decoration: underline dashed 1px;
2024-06-15 12:54:31 +02:00
padding: 3px;
2024-07-28 21:11:12 +02:00
border-radius: 4px;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
a:hover {
2024-08-30 22:40:55 +02:00
background-color: var(--hover);
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
.header-anchor {
font-size: 0.8em;
text-decoration: none;
color: #adb5bd;
opacity: 0;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
h2:hover .header-anchor {
opacity: 1;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
table {
width: 100%;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
table td, table th {
background-color: var(--background-color-alt);
padding: 4px 12px;
border: 1px solid var(--background-color);
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
table th:first-child {
border-top-left-radius: 8px;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
table th:last-child {
border-top-right-radius: 8px;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
footer {
margin-top: 1rem;
text-align: right;
2024-06-15 12:54:31 +02:00
}
2024-07-28 21:11:12 +02:00
footer a {
display: inline-block;
line-height: 0;
}