erratum/public/css/index.css

396 lines
6 KiB
CSS
Raw Normal View History

2023-05-24 22:54:51 +02:00
:root {
--color-gray-20: #e0e0e0;
--color-gray-50: #C0C0C0;
--color-gray-90: #dad8d8;
/* --text-color is assigned to --color-gray-_ above */
--text-color-link: #1493fb;
--text-color-link-active: #6969f7;
--text-color-link-visited: #a6a6f8;
--background-color: #121018;
--text-color: var(--color-gray-90);
--font-family: -apple-system, system-ui, 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;
}
* {
box-sizing: border-box;
}
2024-10-17 19:07:25 +02:00
html {
2023-05-24 22:54:51 +02:00
padding: 0;
margin: 0 auto;
min-height:100%;
font-family: var(--font-family);
color: var(--text-color);
overflow-y: scroll;
background: center bottom fixed repeat-x url("/img/dark-b10.png"), center top fixed url("/img/erratu18.png");
background-color:#120f2b;
}
2024-10-17 19:07:25 +02:00
body {
max-width:1600px;
padding:8px;
margin: auto;
}
2023-05-24 22:54:51 +02:00
/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
a[href] {
color: var(--text-color-link);
}
a[href]:visited {
color: var(--text-color-link-visited);
}
a[href]:hover,
a[href]:active {
color: var(--text-color-link-active);
}
blockquote {
opacity: 75%;
border-left: 3px solid currentColor;
padding-left: 12px;
}
/* Direct Links / Markdown Headers */
.header-anchor {
text-decoration: none;
font-style: normal;
font-size: 1em;
margin-left: .1em;
}
a[href].header-anchor,
a[href].header-anchor:visited {
color: transparent;
}
a[href].header-anchor:focus,
a[href].header-anchor:hover {
text-decoration: underline;
}
a[href].header-anchor:focus,
:hover > a[href].header-anchor {
color: #aaa;
}
.wrapper {
2024-10-17 19:07:25 +02:00
display:grid;
grid-template-columns: 320px 1fr 240px;
column-gap: 8px;
margin-bottom: 8px;
max-width: 100%;
2023-05-24 22:54:51 +02:00
}
header h1 a {
display:block;
margin:auto;
}
h1 img {
display:block;
2024-10-16 18:37:21 +02:00
max-height:128px;
max-width: 100%;
2023-05-24 22:54:51 +02:00
width:auto;
2024-10-16 18:37:21 +02:00
height:auto;
2023-05-24 22:54:51 +02:00
margin:auto 0;
}
header nav {
2024-10-17 19:07:25 +02:00
margin-bottom: 8px;
2023-05-24 22:54:51 +02:00
}
header nav {
display: flex;
justify-content: space-between;
}
header nav ul,
ul.flex {
display:flex;
padding:0;
margin:0;
}
2023-05-25 12:48:30 +02:00
header nav .nav-item a,
div.parent a {
2023-05-24 22:54:51 +02:00
background-color:var(--background-color);
border:1px solid rgba(255,255,255,0.05);
box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.8);
2023-05-25 12:48:30 +02:00
padding: 0.66rem;
2023-05-24 22:54:51 +02:00
border-radius:4px;
text-decoration:none;
color:var(--text-color)!important;
2023-05-25 12:48:30 +02:00
}
header nav .nav-item a {
2023-05-24 22:54:51 +02:00
display: block;
}
2023-05-30 22:36:10 +02:00
div.parent a {
display:block;
}
2023-05-25 12:48:30 +02:00
div.parent {
2023-05-30 22:36:10 +02:00
padding: 8px;
padding-bottom: 0px;
2023-05-25 12:48:30 +02:00
}
2023-05-30 22:36:10 +02:00
header nav .nav-item a:hover,
div.parent a:hover {
2023-05-24 22:54:51 +02:00
box-shadow: 0px 0px 3px 2px rgba(255,255,255,0.3);
}
header nav .nav-item:not(:last-child) {
margin-right:12px;
}
main,
.card,
#sidebar ul > li {
background-color:var(--background-color);
border:1px solid rgba(255,255,255,0.05);
box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.8);
border-radius:6px;
padding:8px;
2024-10-17 19:07:25 +02:00
}
.card,
ul > li.item {
margin-bottom: 8px;
2023-05-24 22:54:51 +02:00
}
main {
padding-left: 24px;
padding-right: 24px;
line-height:1.5rem;
2023-05-27 08:48:03 +02:00
}
#core {
flex-grow: 1;
2023-05-24 22:54:51 +02:00
}
.model,
main {
margin-left:0;
margin-right:0;
}
#sidebar ul > li,
2023-05-25 12:48:30 +02:00
.model h2,
#more-info h2 {
2023-05-24 22:54:51 +02:00
list-style: none;
font-weight: bold;
font-size: 1rem;
}
#more-info ol > li,
#more-info ul > li {
list-style: none;
}
#sidebar ul > li li,
#more-info li {
border-radius:0px;
padding:0px;
margin:0px;
font-weight: normal;
border:0;
box-shadow: none;
}
ul.nav,
#sidebar ul li ul,
#more-info ol,
2023-05-25 12:48:30 +02:00
#more-info ul,
2023-05-24 22:54:51 +02:00
ul.flex li,
2023-05-25 12:48:30 +02:00
.model h2,
#more-info h2 {
2023-05-24 22:54:51 +02:00
padding:0;
margin:0;
list-style: none;
}
#sidebar ul li ul {
display:flex;
flex-wrap: wrap;
}
#sidebar ul li a,
2023-05-25 12:48:30 +02:00
#more-info li a,
2023-05-24 22:54:51 +02:00
.model a {
display:block;
width:100%;
text-decoration:none;
color:var(--text-color)!important;
border-radius:3px;
padding:3px;
}
2023-05-25 12:48:30 +02:00
#more-info li a {
padding-left:12px;
}
2023-05-24 22:54:51 +02:00
.model a {
margin: 2px;
}
.model li:first-child a {
margin-left:0;
}
#sidebar ul li li {
width:50%;
}
#sidebar ul li:last-child li {
width: 100%;
}
2023-05-24 22:54:51 +02:00
#sidebar ul li a.active,
2023-05-25 12:48:30 +02:00
#more-info li a.active {
2023-05-24 22:54:51 +02:00
background-color:rgba(255,255,255,0.1);
}
#sidebar ul li a:hover,
2023-05-25 12:48:30 +02:00
#more-info li a:hover,
2023-05-24 22:54:51 +02:00
.model a:hover {
background-color:rgba(255,255,255,0.2);
box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.5);
}
footer {
text-align:right;
margin:12px;
}
2023-05-25 12:48:30 +02:00
table {
width:100%;
border-collapse: collapse;
}
2024-10-17 21:09:26 +02:00
.table-responsive,
.datatable-container {
2024-10-17 19:07:25 +02:00
overflow-x: auto;
}
2023-05-25 12:48:30 +02:00
th, td {
border: 1px solid rgba(255,255,255,0.15);
2024-10-17 19:07:25 +02:00
padding: 3px 9px;
2023-05-25 12:48:30 +02:00
}
th {
border-bottom-width: 3px;
}
th {
background-color: rgba(255, 255, 255, 0.1);
}
tr:nth-child(even) td {
background-color: rgba(255, 255, 255, 0.03);
2024-10-16 18:37:21 +02:00
}
p > img:only-child {
display: block;
max-width: 100%;
height: auto;
}
.mobile-buttons {
display: none;
}
2024-10-17 19:07:25 +02:00
@media screen and (max-width: 1300px) and (min-width: 1000px) {
.wrapper {
grid-template-columns: 220px 1fr 220px;
}
#sidebar ul li li {
width:100%;
}
}
2024-10-16 18:37:21 +02:00
@media screen and (max-width: 1000px) {
html {
width: 100%;
}
2024-10-17 19:07:25 +02:00
.wrapper {
display: block;
2024-10-16 18:37:21 +02:00
}
#more-info:not(.visible),
#sidebar:not(.visible),
main:not(.visible) {
display:none;
}
main {
margin:16px;
}
footer {
padding:16px;
margin-bottom:48px;
}
.mobile-buttons {
display: flex;
justify-content: space-around;
position: fixed;
bottom:0;
2024-10-17 19:07:25 +02:00
left:0;
2024-10-16 18:37:21 +02:00
height:48px;
2024-10-17 19:07:25 +02:00
width:100vw;
2024-10-16 18:37:21 +02:00
background-color: white;
box-shadow: 0px -1px 2px 0px rgba(0,0,0,0.4);
}
.mobile-buttons button {
border: none;
background-color: transparent;
margin:3px;
padding: 8px 24px;
border-radius:999px;
}
.mobile-buttons button:hover {
background-color: rgba(0,0,0,0.2)!important;
}
.mobile-buttons button.active {
background-color: rgba(0,0,0,0.15);
}
}
@media screen and (max-width: 600px) {
header h1 a {
font-size:4rem;
}
}
@media screen and (max-width: 480px) {
header h1 a {
font-size:3rem;
}
}