actually utilize features Jekyll provides
This commit is contained in:
parent
4cd424af14
commit
2a29052e9a
|
@ -1,2 +1,7 @@
|
|||
.*
|
||||
!.editorconfig
|
||||
!.gitattributes
|
||||
!.gitignore
|
||||
|
||||
_site/
|
||||
Gemfile.lock
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Custom settings
|
||||
theme: minima
|
||||
timezone: Europe/Helsinki
|
||||
encoding: utf-8
|
||||
plugins:
|
||||
|
@ -8,4 +8,4 @@ plugins:
|
|||
- jekyll-sitemap
|
||||
sitemap:
|
||||
file: "/sitemap.xml"
|
||||
include: [robots.txt]
|
||||
include: [favicon.ico, robots.txt]
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
#
|
||||
---
|
||||
|
||||
@import "{{ site.theme }}";
|
||||
|
||||
// Declares support for light and dark themes as high as possible
|
||||
:root {
|
||||
color-scheme: light dark !important;
|
||||
}
|
||||
|
||||
// Reverts all colors to browser default so light/dark modes are supported
|
||||
// without extra work and we get free accessibility
|
||||
* {
|
||||
color: revert !important;
|
||||
text-color: revert !important;
|
||||
background-color: revert !important;
|
||||
}
|
||||
|
||||
// Fix transparent mobile navbar
|
||||
@media (prefers-color-scheme: light) {
|
||||
.site-nav {
|
||||
color-scheme: only light !important;
|
||||
color: #000000 !important;
|
||||
background-color: #ffffff !important;
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.site-nav {
|
||||
color-scheme: only dark !important;
|
||||
color: #ffffff !important;
|
||||
background-color: #1c1b22 !important;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue