From 32f42e2cc63e2a2bfd5fbe6d2eb3b8892fbe07f0 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Wed, 12 Jan 2022 17:28:44 +0600 Subject: [PATCH] fix css errors --- css/style.css | 59 ++++++++++++++++++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 20 deletions(-) diff --git a/css/style.css b/css/style.css index 685c081..8c16886 100644 --- a/css/style.css +++ b/css/style.css @@ -1,10 +1,27 @@ + /* overall */ html { scroll-behavior: smooth; } +/* add tumblr font */ +@font-face { + font-family: Favorit; + src: url('../font/favorit-regular.woff2') format(woff2); + font-style: normal; + font-weight: normal; +} + +@font-face { + font-family: Favorit; + src: url('../font/favorit-medium.woff2') format(woff2); + font-style: normal; + font-weight: bold; +} + + * { - font-family: arial, helvetica, sans-serif; + font-family: Favorit, sans-serif; font-size: 11pt; word-break: break-word; } @@ -22,7 +39,7 @@ p { } .content p { - margin-bottom: 1em !important; + margin-bottom: 1em !important; } body { @@ -42,7 +59,7 @@ select{ font-weight:bold; font-family:fontello, sans-serif; } - + option{ font-family:fontello, sans-serif; } @@ -72,10 +89,10 @@ textarea { } .external:after{ - font-family:fontello; - font-weight:normal; - content: ' '; - } + font-family:fontello; + font-weight:normal; + content: ' '; +} /* basic structure */ @@ -650,19 +667,21 @@ aside { top: 0; width: 100%; z-index:105; - &:before { - background-color: #333; - background-color: rgba(#333, 0.9); - color: #eee; - content: "x"; - font-family: sans-serif; - padding: 6px 12px; - position: fixed; - text-transform: uppercase; - } - img { - box-shadow: 0 0 6px 3px #333; - } +} + +.lightbox-opened:before { + background-color: #333; + background-color: rgba(#333, 0.9); + color: #eee; + content: "x"; + font-family: sans-serif; + padding: 6px 12px; + position: fixed; + text-transform: uppercase; +} + +.lightbox-opened img { + box-shadow: 0 0 6px 3px #333; } .no-scroll {