From df544469c9c79ef6272d1edb5ec7667b066f3e6b Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 11 Jun 2021 13:34:55 +0530 Subject: [PATCH] Apply prettier to css --- assets/css/common/footer.css | 2 +- assets/css/common/header.css | 4 ++-- assets/css/common/main.css | 3 ++- assets/css/common/post-entry.css | 4 ++-- assets/css/common/post-single.css | 24 ++++++++++++------------ assets/css/common/profile-mode.css | 4 ++-- assets/css/common/search.css | 6 +++--- assets/css/common/terms.css | 4 ++-- 8 files changed, 26 insertions(+), 25 deletions(-) diff --git a/assets/css/common/footer.css b/assets/css/common/footer.css index 815c3acf..5addb1e0 100644 --- a/assets/css/common/footer.css +++ b/assets/css/common/footer.css @@ -41,7 +41,7 @@ height: 42px; padding: 12px; border-radius: 64px; - transition: visibility .5s, opacity .8s linear; + transition: visibility 0.5s, opacity 0.8s linear; } .top-link, diff --git a/assets/css/common/header.css b/assets/css/common/header.css index ddd5b6be..3cd070e8 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -40,7 +40,7 @@ height: 18px; } -button#theme-toggle { +button#theme-toggle { font-size: 26px; margin: auto 4px; } @@ -61,7 +61,7 @@ body:not(.dark) #sun { white-space: nowrap; } -#menu li+li { +#menu li + li { margin-inline-start: var(--gap); } diff --git a/assets/css/common/main.css b/assets/css/common/main.css index 1e5a0641..c47e3008 100644 --- a/assets/css/common/main.css +++ b/assets/css/common/main.css @@ -44,7 +44,8 @@ code { direction: ltr; } -div.highlight, pre { +div.highlight, +pre { position: relative; } diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css index 427bff02..ac2afcc9 100644 --- a/assets/css/common/post-entry.css +++ b/assets/css/common/post-entry.css @@ -39,12 +39,12 @@ padding: var(--gap); background: var(--entry); border-radius: var(--radius); - transition: transform .1s; + transition: transform 0.1s; border: 1px solid var(--border); } .post-entry:active { - transform: scale(.96); + transform: scale(0.96); } .tag-entry .entry-cover { diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 9cd4b238..d7ed3fba 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -71,7 +71,7 @@ .post-content a, .toc a:hover { - box-shadow: 0 1px 0;; + box-shadow: 0 1px 0; } .post-content a code { @@ -123,8 +123,8 @@ padding-inline-start: 10px; } -.post-content dd~dd, -.post-content dt~dt { +.post-content dd ~ dd, +.post-content dt ~ dt { margin-top: 10px; } @@ -160,7 +160,7 @@ border-radius: var(--radius); } -.post-content li>.highlight { +.post-content li > .highlight { margin-inline-end: 0; } @@ -200,7 +200,7 @@ .post-content code { margin: auto 4px; padding: 4px 6px; - font-size: .78em; + font-size: 0.78em; line-height: 1.5; background: var(--code-bg); border-radius: 2px; @@ -210,7 +210,7 @@ display: block; margin: auto 0; padding: 10px; - color: rgba(255, 255, 255, .8); + color: rgba(255, 255, 255, 0.8); background: 0 0; border-radius: 0; overflow-x: auto; @@ -239,7 +239,7 @@ border-radius: 4px; } -.post-content img[src*='#center'] { +.post-content img[src*="#center"] { margin: auto; } @@ -247,14 +247,14 @@ text-align: center; } -.post-content figure>figcaption { +.post-content figure > figcaption { color: var(--primary); font-size: 16px; font-weight: bold; margin: 8px 0 16px; } -.post-content figure>figcaption>p { +.post-content figure > figcaption > p { color: var(--secondary); font-size: 14px; font-weight: normal; @@ -265,7 +265,7 @@ border: 1px solid var(--border); background: var(--code-bg); border-radius: var(--radius); - padding: .4em; + padding: 0.4em; } .dark .toc { @@ -352,11 +352,11 @@ height: 30px; width: 30px; fill: currentColor; - transition: transform .1s; + transition: transform 0.1s; } .share-buttons svg:active { - transform: scale(.96); + transform: scale(0.96); } h1:hover .anchor, diff --git a/assets/css/common/profile-mode.css b/assets/css/common/profile-mode.css index c92b3317..0e84da55 100644 --- a/assets/css/common/profile-mode.css +++ b/assets/css/common/profile-mode.css @@ -34,7 +34,7 @@ border-radius: var(--radius); margin: 8px; padding: 6px; - transition: transform .1s; + transition: transform 0.1s; } .button-inner { @@ -42,5 +42,5 @@ } .button:active { - transform: scale(.96); + transform: scale(0.96); } diff --git a/assets/css/common/search.css b/assets/css/common/search.css index 43eb2d99..38d5b6bc 100644 --- a/assets/css/common/search.css +++ b/assets/css/common/search.css @@ -26,8 +26,8 @@ } #searchResults li:active { - transition: transform .1s; - transform: scale(.98); + transition: transform 0.1s; + transform: scale(0.98); } #searchResults a { @@ -40,6 +40,6 @@ } #searchResults .focus { - transform: scale(.98); + transform: scale(0.98); border: 2px solid var(--tertiary); } diff --git a/assets/css/common/terms.css b/assets/css/common/terms.css index ddfe68ff..244614bc 100644 --- a/assets/css/common/terms.css +++ b/assets/css/common/terms.css @@ -9,10 +9,10 @@ padding: 3px 10px; background: var(--tertiary); border-radius: 6px; - transition: transform .1s; + transition: transform 0.1s; } .terms-tags a:active { background: var(--tertiary); - transform: scale(.96); + transform: scale(0.96); }