nml/style.css

430 lines
5.8 KiB
CSS
Raw Normal View History

2024-07-25 14:19:49 +02:00
body {
background-color: #1b1b1d;
color: #c5c5c5;
font-family: sans-serif;
margin: 0;
padding: 0;
}
2024-07-25 14:19:49 +02:00
2024-12-01 06:45:06 +01:00
html {
scrollbar-color: #444 #00000000;
}
.layout {
display: flex;
}
.content {
max-width: 99ch;
2024-07-25 14:19:49 +02:00
margin: 0 auto;
padding: 0;
width: 100%;
2024-07-25 14:19:49 +02:00
}
2024-12-01 06:45:06 +01:00
/* Scrollbar */
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar:horizontal {
height: 5px;
}
/* Track */
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner {
background: #00000000;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #444;
border-radius: 5px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
2024-07-31 11:56:48 +02:00
/* Layouts */
div.centered {
text-align: center;
}
div.split-container {
display: flex;
width: 100%;
}
div.split-container > div.split {
flex: 1;
flex-shrink: 0;
overflow-x: auto;
margin: 0.5em;
}
2024-10-31 11:03:09 +01:00
details.spoiler {
border: 1px solid #235;
border-radius: 4px;
padding: 0.5em 0.5em 0;
}
details.spoiler summary {
margin: -0.5em -0.5em 0;
padding: 0.5em;
}
details[open].spoiler {
border: 1px solid #235;
border-radius: 4px;
}
details[open].spoiler summary {
border-bottom: 1px solid #235;
padding: .5em;
}
2024-07-29 18:06:18 +02:00
/* Styles */
2024-07-25 14:19:49 +02:00
em {
padding-left: .1em;
padding-right: .1em;
border-radius: 3px;
border: solid 1px #100c1e;
color: #ffb454;
background-color: #191f26;
}
2024-10-31 00:10:28 +01:00
a {
color: #55c3df;
}
2024-07-29 18:06:18 +02:00
a.inline-code {
2024-07-25 14:19:49 +02:00
padding-left: .1em;
padding-right: .1em;
border-radius: 1px;
background-color: #191f26;
}
2024-07-29 18:06:18 +02:00
/* Navbar */
2024-11-03 00:27:31 +01:00
.navbar-wrap
{
display: flex;
}
#navbar {
display: none;
2024-07-31 11:56:48 +02:00
left: 0;
top: 0;
bottom: 0;
2024-11-03 00:27:31 +01:00
width: max(min(calc((100vw - 99ch) / 2), 32ch), 28ch);
height: 100vh;
margin-right: 1em;
2024-11-03 00:27:31 +01:00
padding-top: 2.5em;
position: fixed;
overflow-x: scroll;
2024-11-03 00:27:31 +01:00
transition: 0.5s;
2024-07-29 18:06:18 +02:00
2024-10-31 00:10:28 +01:00
background-color: #242526;
color: #d0d0d0;
2024-11-03 00:27:31 +01:00
box-shadow: 1px 0px 4px 0px rgba(0,0,0,0.75);
}
2024-07-29 18:06:18 +02:00
2024-11-03 00:27:31 +01:00
:checked + #navbar {
display: block;
transition: margin-left .5s;
2024-07-29 18:06:18 +02:00
}
2024-11-03 00:27:31 +01:00
.navbar-checkbox-label {
border-radius: 3px;
position: fixed;
top: 0.2em;
left: 0.2em;
line-height: 1em;
padding: 0.1em;
background: #2f343f;
font-size: 1.8em;
color: #7c8c8c;
2024-07-29 18:06:18 +02:00
2024-11-03 00:27:31 +01:00
box-shadow: 0px 0px 3px 1px #242526 inset;
}
2024-11-03 00:27:31 +01:00
#navbar li {
2024-10-31 00:10:28 +01:00
display: block;
position: relative;
padding-left: .25em;
margin-left: 5%;
width: 90%;
margin-top: 0.066em;
margin-bottom: 0.066em;
}
li.navbar-entry:hover, summary.navbar-category:hover
{
background-color: #2f3031;
border-radius: 5px;
}
li.navbar-entry-current
{
background-color: #2f3031;
border-radius: 5px;
}
li.navbar-entry a {
color: #d0d0d0;
2024-07-29 18:06:18 +02:00
text-decoration: none;
font-weight: normal;
}
2024-10-31 00:10:28 +01:00
li.navbar-entry-current a {
color: #55ffb4;
text-decoration: none;
font-weight: normal;
2024-07-29 18:06:18 +02:00
}
2024-11-03 00:27:31 +01:00
#navbar ul {
2024-07-29 18:06:18 +02:00
margin-left: 0em;
padding-left: 0;
2024-10-31 00:10:28 +01:00
line-height: 1.66em;
2024-07-29 18:06:18 +02:00
}
2024-11-03 00:27:31 +01:00
#navbar summary{
2024-07-29 18:06:18 +02:00
display: block;
cursor: pointer;
}
2024-11-03 00:27:31 +01:00
#navbar summary::marker,
#navbar summary::-webkit-details-marker{
2024-07-29 18:06:18 +02:00
display: none;
}
2024-11-03 00:27:31 +01:00
#navbar summary:focus{
2024-07-29 18:06:18 +02:00
outline: none;
}
2024-11-03 00:27:31 +01:00
#navbar summary:focus-visible{
2024-07-29 18:06:18 +02:00
outline: 1px dotted #000;
}
2024-12-01 06:45:06 +01:00
#navbar summary:before {
2024-07-31 11:56:48 +02:00
content: "+";
2024-10-31 00:10:28 +01:00
color: #55ffb4;
2024-07-31 11:56:48 +02:00
float: left;
text-align: center;
width: 1em;
2024-07-29 18:06:18 +02:00
}
2024-12-01 06:45:06 +01:00
#navbar details[open] > summary:before {
2024-07-31 11:56:48 +02:00
content: "";
2024-07-29 18:06:18 +02:00
}
2024-08-28 15:08:09 +02:00
/* TOC */
.toc {
margin: auto;
margin-top: 1.8em;
width: 85%;
padding: 0.5em;
font-size: 1.15em;
background-color: #242526;
border-radius: 3px;
box-shadow: 0px 0px 3px 1px #242526 inset;
2024-08-28 15:08:09 +02:00
}
.toc a {
text-decoration: none;
color: #0ff08b;
}
.toc ol {
margin: 0;
padding-left: 1.1em;
}
.toc span {
display: flex;
justify-content: center;
font-weight: 600;
2024-08-28 15:08:09 +02:00
}
2024-08-13 22:46:10 +02:00
/* Sections */
a.section-link {
2024-08-28 15:08:09 +02:00
display: none;
2024-08-13 22:46:10 +02:00
text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
color: #BA54Cc
}
2024-08-28 15:08:09 +02:00
h1:hover a.section-link {
display: inline;
}
h2:hover a.section-link {
display: inline;
}
h3:hover a.section-link {
display: inline;
}
h4:hover a.section-link {
display: inline;
}
h5:hover a.section-link {
display: inline;
}
h6:hover a.section-link {
display: inline;
}
2024-07-25 14:19:49 +02:00
/* Code blocks */
div.code-block-title {
background-color: #20202a;
padding-left: .3em;
}
div.code-block-content {
2024-07-31 11:56:48 +02:00
max-height: 38em;
2024-07-25 14:19:49 +02:00
margin-bottom: 0.2em;
2024-12-01 06:45:06 +01:00
overflow: auto;
2024-07-25 14:19:49 +02:00
background-color: #0f141a;
}
div.code-block-content td {
border: 0;
padding: 0;
}
div.code-block-content pre {
border: 0;
margin: 0;
2024-07-31 11:56:48 +02:00
tab-size: 4;
2024-07-25 14:19:49 +02:00
}
div.code-block-content .code-block-gutter {
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
user-select: none;
padding-left: .1em;
padding-right: .2em;
text-align: right;
border-right: solid #2a2e3e 1px;
background: #222d3a;
}
div.code-block-content .code-block-line {
padding-left: .1em;
}
/* Media */
.media {
max-width: 85ch;
margin: auto;
text-align: center;
}
.medium {
padding-top: 1em;
display: inline-block;
vertical-align: middle;
margin-left: .5em;
margin-right: .5em;
}
2024-08-14 15:27:34 +02:00
.medium img, video, audio {
2024-07-25 14:19:49 +02:00
max-width: 100%;
}
div.medium p.medium-refname {
margin: 0;
text-align: center;
font-weight: bold;
2024-07-26 15:06:09 +02:00
color: #d367c1;
2024-07-25 14:19:49 +02:00
}
div.medium p {
padding: 0;
margin-top: 0;
margin-left: 1em;
margin-right: 1em;
text-align: justify;
}
2024-07-26 15:06:09 +02:00
a.medium-ref {
display: inline;
font-weight: bold;
color: #d367c1;
2024-08-14 15:27:34 +02:00
text-decoration: none;
2024-07-26 15:06:09 +02:00
}
a.medium-ref:hover {
background: #334;
}
a.medium-ref img {
display: none;
margin: 1.3em 0 0 0;
}
2024-08-14 15:27:34 +02:00
a.medium-ref video {
display: none;
margin: 1.3em 0 0 0;
}
2024-07-26 15:06:09 +02:00
a:hover.medium-ref img {
2024-08-14 15:27:34 +02:00
max-width: 25%;
left: 37.5%;
display: inline-block;
position: absolute;
box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.75);
}
a:hover.medium-ref video {
max-width: 25%;
left: 37.5%;
2024-07-26 15:06:09 +02:00
display: inline-block;
position: absolute;
2024-07-31 11:56:48 +02:00
box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.75);
2024-07-26 15:06:09 +02:00
}
2024-08-13 22:46:10 +02:00
/* Blockquote */
blockquote {
margin-left: 0.2em;
padding-left: 0.6em;
border-left: 4px solid #0ff08b;
}
blockquote p::before {
content: '\201C';
}
blockquote p::after {
content: '\201D';
}
.blockquote-author:before {
content: '—';
}
.blockquote-author {
margin-left: 0.2em;
}