diff options
| author | Fuwn <[email protected]> | 2020-11-08 21:01:55 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-11-08 21:01:55 -0800 |
| commit | 6f4d4f283affaf50b4c242b1ff0a275c22af81e6 (patch) | |
| tree | d8e3fed1b3e2dc8ab9db4a5229f8bcba28548599 /public/css/style.dark.css | |
| parent | fix: make tweet this https (diff) | |
| download | blog-6f4d4f283affaf50b4c242b1ff0a275c22af81e6.tar.xz blog-6f4d4f283affaf50b4c242b1ff0a275c22af81e6.zip | |
feat: (desc)
feat:
- 404 redirect
- darkmode boilerplate
- konami ee
- "back to home" to "back home"
- "read on" to "read more"
- id main stylesheets for later darkmode
- console log ee and darmode extension
Diffstat (limited to 'public/css/style.dark.css')
| -rw-r--r-- | public/css/style.dark.css | 247 |
1 files changed, 247 insertions, 0 deletions
diff --git a/public/css/style.dark.css b/public/css/style.dark.css new file mode 100644 index 0000000..b3b004b --- /dev/null +++ b/public/css/style.dark.css @@ -0,0 +1,247 @@ +body { + color: rgb(232, 220, 199); + background-color: #1b1b1a; + font-size: 20px; +} + +body, +code { + font-family: "Inconsolata", monospace; +} + +h1, +h2, +h3 { + font-size: inherit; + display: inline; + font-weight: bold; +} + +h2::before { + content: "## "; +} + +h3::before { + content: "### "; +} + +p { + margin: 30px 0; +} + +h1 + p, +h2 + p, +h3 + p { + margin-top: 0; +} + +p.listing { + margin-top: 0; +} + +hr { + margin: 0; + border: none; +} + +hr::after { + content: "---"; + display: block; + text-align: center; +} + +.main { + box-sizing: border-box; + width: 650px; + padding: 30px; + margin: 40px auto; +} + +.blog-title { + border-bottom: 1px solid #ccc; + margin-bottom: 40px; +} + +.article { + margin: 34px 0; + line-height: 1.6; +} + +a, +a:visited { + color: rgb(217, 129, 112); + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +a:focus { + background-color: #9d261d; + color: #fff; + outline: none; + text-decoration: none; +} + +a:active { + background-color: #6f2a20; + color: #fff4e0 !important; +} + +a:visited { + background-color: #6f2a20; +} + +.date { + float: right; + color: rgb(170, 158, 137); + font-style: italic; +} + +.tweet { + float: right; +} + +code { + background-color: rgb(38, 38, 37); +} + +pre { + border-left: 1px solid rgb(67, 67, 64) !important; + position: relative; + left: -20px; + padding-left: 20px; + /* overflow-x: scroll; */ +} + +pre code { + background-color: rgb(27, 27, 26); + display: block; +} + +img { + border: 2px solid black; + width: 100%; +} + +.flex { + display: -webkit-flex; + display: -moz-box; + display: -ms-flexbox; + display: flex; + width: 100%; + + flex-flow: row wrap; + -webkit-justify-content: center; + justify-content: center; +} + +.demo { + border: 2px solid #000; + box-sizing: border-box; + margin: 20px 0; + padding: 40px 0; +} + +.flash-item { + animation: flash 8s linear 0s infinite; + -webkit-animation: flash 8s linear 0s infinite; + -moz-animation: flash 8s linear 0s infinite; + -o-animation: flash 8s linear 0s infinite; +} + +.sr-only { + border: 0; + clip: rect(0, 0, 0, 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +@keyframes flash { + 0% { + opacity: 1; + } + 10% { + opacity: 0.1; + } + 20% { + opacity: 1; + } +} +@-webkit-keyframes flash { + 0% { + opacity: 1; + } + 10% { + opacity: 0.1; + } + 20% { + opacity: 1; + } +} +@-moz-keyframes flash { + 0% { + opacity: 1; + } + 10% { + opacity: 0.1; + } + 20% { + opacity: 1; + } +} +@-o-keyframes flash { + 0% { + opacity: 1; + } + 10% { + opacity: 0.1; + } + 20% { + opacity: 1; + } +} + +@media (max-width: 480px) { + body { + font-size: 20px; + line-height: 1.4; + } + + .main { + width: 100%; + padding: 10px; + margin-top: 0; + } + + .article { + margin-top: 30px; + } + + .date { + float: none; + display: block; + } + + .sep { + display: none; + } + + header a { + display: block; + } +} + +::selection { + background-color: #1b4e8a !important; + color: #fff4e0 !important; +} + +* { + scrollbar-color: #242523 #4e4e4a; +} |