mirror of
https://github.com/osmarks/website
synced 2024-12-24 00:50:31 +00:00
Dark theme
This commit is contained in:
parent
c858d2131f
commit
085514da02
@ -72,7 +72,6 @@ h1, h2, h3, h4, h5, h6
|
|||||||
margin: 0
|
margin: 0
|
||||||
font-weight: 600
|
font-weight: 600
|
||||||
a
|
a
|
||||||
text-decoration: none !important
|
|
||||||
color: inherit
|
color: inherit
|
||||||
|
|
||||||
// for easier viewing on big screen devices, narrow the width of text
|
// for easier viewing on big screen devices, narrow the width of text
|
||||||
@ -83,8 +82,6 @@ main
|
|||||||
text-align: justify
|
text-align: justify
|
||||||
margin-left: $content-margin
|
margin-left: $content-margin
|
||||||
margin-right: $content-margin
|
margin-right: $content-margin
|
||||||
a
|
|
||||||
text-decoration: underline
|
|
||||||
&.fullwidth
|
&.fullwidth
|
||||||
width: calc($content-width + $sidenotes-width + 1.5 * $content-margin)
|
width: calc($content-width + $sidenotes-width + 1.5 * $content-margin)
|
||||||
|
|
||||||
@ -96,7 +93,6 @@ main
|
|||||||
> div
|
> div
|
||||||
min-width: 20em
|
min-width: 20em
|
||||||
background: #eee
|
background: #eee
|
||||||
margin: 0.5em
|
|
||||||
padding: 1em
|
padding: 1em
|
||||||
flex: 1 1 20%
|
flex: 1 1 20%
|
||||||
|
|
||||||
@ -201,6 +197,8 @@ blockquote
|
|||||||
margin-right: $content-margin
|
margin-right: $content-margin
|
||||||
.footnotes-sep
|
.footnotes-sep
|
||||||
display: block
|
display: block
|
||||||
|
main
|
||||||
|
width: 100%
|
||||||
|
|
||||||
@media (min-width: calc(2 * $content-margin + $content-width + $sidenotes-width + $navbar-width))
|
@media (min-width: calc(2 * $content-margin + $content-width + $sidenotes-width + $navbar-width))
|
||||||
body
|
body
|
||||||
@ -220,5 +218,31 @@ blockquote
|
|||||||
top: 0
|
top: 0
|
||||||
position: sticky
|
position: sticky
|
||||||
margin-left: auto
|
margin-left: auto
|
||||||
|
overflow-x: auto
|
||||||
.sidenotes-container
|
.sidenotes-container
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark)
|
||||||
|
body
|
||||||
|
background: black
|
||||||
|
color: white
|
||||||
|
|
||||||
|
nav
|
||||||
|
background: #333
|
||||||
|
|
||||||
|
.ring .art
|
||||||
|
background: #444
|
||||||
|
|
||||||
|
.achievement
|
||||||
|
color: black
|
||||||
|
|
||||||
|
a
|
||||||
|
color: lightblue
|
||||||
|
&:visited
|
||||||
|
color: mediumorchid
|
||||||
|
|
||||||
|
.autocol
|
||||||
|
background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)) !important
|
||||||
|
|
||||||
|
.caption
|
||||||
|
background: #333
|
@ -1,4 +1,4 @@
|
|||||||
div(style=`background: ${bgcol}`)
|
div.autocol(style=`background: ${bgcol}`)
|
||||||
div
|
div
|
||||||
a(href=permalink)= renderDate(date)
|
a(href=permalink)= renderDate(date)
|
||||||
div!= content
|
div!= content
|
@ -7,7 +7,7 @@ block content
|
|||||||
Read my opinions via the internet.
|
Read my opinions via the internet.
|
||||||
div.blog
|
div.blog
|
||||||
each post in posts
|
each post in posts
|
||||||
.imbox(style=`background: ${post.bgcol}`)
|
.autocol.imbox(style=`background: ${post.bgcol}`)
|
||||||
if images.hasOwnProperty(post.slug)
|
if images.hasOwnProperty(post.slug)
|
||||||
+image(images[post.slug])
|
+image(images[post.slug])
|
||||||
div
|
div
|
||||||
@ -28,7 +28,7 @@ block content
|
|||||||
Various web projects I have put together over many years. Made with at least four different JS frameworks. Some of them are bad.
|
Various web projects I have put together over many years. Made with at least four different JS frameworks. Some of them are bad.
|
||||||
div.experiments
|
div.experiments
|
||||||
each experiment in experiments
|
each experiment in experiments
|
||||||
.imbox(style=`background: ${experiment.bgcol}`)
|
.autocol.imbox(style=`background: ${experiment.bgcol}`)
|
||||||
if images.hasOwnProperty(experiment.slug)
|
if images.hasOwnProperty(experiment.slug)
|
||||||
+image(images[experiment.slug])
|
+image(images[experiment.slug])
|
||||||
div
|
div
|
||||||
|
Loading…
Reference in New Issue
Block a user