mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-25 16:43:05 +00:00
docs: initial pass at a dark theme
some of the colours still suck though
This commit is contained in:
parent
cfc1fe3639
commit
2e275e3993
3 changed files with 34 additions and 4 deletions
|
@ -11,6 +11,16 @@ be (slightly) less hacky once :target-within lands in browsers.
|
||||||
Exported to codepen: https://codepen.io/sbrl/details/YzZJYxg
|
Exported to codepen: https://codepen.io/sbrl/details/YzZJYxg
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--gallerybox-bg: hsla(0, 0%, 95%, 0.75);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--gallerybox-bg: hsla(0, 0%, 30%, 0.75);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (orientation: landscape) {
|
@media (orientation: landscape) {
|
||||||
.gallerybox-gallery {
|
.gallerybox-gallery {
|
||||||
max-width: 95vw;
|
max-width: 95vw;
|
||||||
|
@ -58,7 +68,7 @@ Exported to codepen: https://codepen.io/sbrl/details/YzZJYxg
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallerybox-item > figcaption {
|
.gallerybox-item > figcaption {
|
||||||
background: hsla(0, 0%, 95%, 0.75);
|
background: var(--gallerybox-bg);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0.25em; left: 0; right: 0;
|
bottom: 0.25em; left: 0; right: 0;
|
||||||
padding: 0.75em 1em;
|
padding: 0.75em 1em;
|
||||||
|
|
|
@ -32,6 +32,27 @@
|
||||||
--shadow-dark: hsla(0, 0%, 25%, 0.5);
|
--shadow-dark: hsla(0, 0%, 25%, 0.5);
|
||||||
|
|
||||||
--highlight: hsl(353, 100%, 36%);
|
--highlight: hsl(353, 100%, 36%);
|
||||||
|
|
||||||
|
--bg-image: url('{% image_urlpass "images/clouds.png" %}');
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
--bg-main: #020B18;
|
||||||
|
--bg-bright: hsl(108, 46%, 34%);
|
||||||
|
--bg-alt: hsl(228, 68%, 68%);
|
||||||
|
|
||||||
|
--bg-transcluscent: hsla(224, 20%, 16%, 0.85);
|
||||||
|
--bg-transcluscent-alt: hsla(226, 79%, 70%, 0.8);
|
||||||
|
|
||||||
|
--text-main: hsl(227, 80%, 95%);
|
||||||
|
|
||||||
|
--bg-image: url('{% image_urlpass "images/clouds-night.png" %}');
|
||||||
|
}
|
||||||
|
|
||||||
|
a { color: #7c7cff; }
|
||||||
|
a:active { color: #ee0000; }
|
||||||
|
a:not(.nav):not(.bigbutton):visited { color: hsl(296, 84%, 75%); }
|
||||||
}
|
}
|
||||||
|
|
||||||
/* rem is relative to the html element, and em is relative to the current element. */
|
/* rem is relative to the html element, and em is relative to the current element. */
|
||||||
|
@ -42,7 +63,7 @@ body
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: sans-serif; /* Serif is awful :( */
|
font-family: sans-serif; /* Serif is awful :( */
|
||||||
|
|
||||||
background: url('{% image_urlpass "images/clouds.png" %}') center / cover fixed,
|
background: var(--bg-image) center / cover fixed,
|
||||||
var(--bg-main); /* Don't forget to update the @page one too for paged media */
|
var(--bg-main); /* Don't forget to update the @page one too for paged media */
|
||||||
color: var(--text-main);
|
color: var(--text-main);
|
||||||
}
|
}
|
||||||
|
@ -156,7 +177,6 @@ a { font-weight: bold; }
|
||||||
a:not(.nav):hover { color: hsl(214, 67%, 50%); }
|
a:not(.nav):hover { color: hsl(214, 67%, 50%); }
|
||||||
a:not(.nav):active, a:focus { color: hsl(214, 87%, 60%); } */
|
a:not(.nav):active, a:focus { color: hsl(214, 87%, 60%); } */
|
||||||
a:not(.nav):not(.bigbutton):visited { color: hsl(240, 77%, 60%); }
|
a:not(.nav):not(.bigbutton):visited { color: hsl(240, 77%, 60%); }
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
break-inside: avoid;
|
break-inside: avoid;
|
||||||
|
|
BIN
.docs/images/clouds-night.png
Normal file
BIN
.docs/images/clouds-night.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
Loading…
Reference in a new issue