From db18364a73e57c01f55ebfd1abb83660334083b9 Mon Sep 17 00:00:00 2001 From: Divyansh Singh Date: Sun, 5 Mar 2023 03:16:46 +0530 Subject: [PATCH] fix: remove extra dark mode styles --- docs/_includes/components/lists.css | 33 -------------------------- docs/_includes/components/minilink.css | 21 ---------------- docs/_includes/components/toc.css | 11 --------- docs/_includes/index.css | 5 ---- 4 files changed, 70 deletions(-) diff --git a/docs/_includes/components/lists.css b/docs/_includes/components/lists.css index d8bdc99..88d044f 100644 --- a/docs/_includes/components/lists.css +++ b/docs/_includes/components/lists.css @@ -63,11 +63,6 @@ top: -2px; bottom: 2px; } - @media (prefers-color-scheme: dark) { - .inlinelist .inlinelist-item code:before { - border-left-color: rgba(0,0,0,.8); - } - } } a.buzzword { text-decoration: underline; @@ -91,26 +86,9 @@ a.buzzword { .buzzword { background-color: #f7f7f7; } -@media (prefers-color-scheme: dark) { - .buzzword-list li, - .buzzword { - background-color: #080808; - } -} .inlinelist .inlinelist-item { background-color: #e9e9e9; } -@media (prefers-color-scheme: dark) { - .inlinelist .inlinelist-item { - background-color: #000; - } - .inlinelist .inlinelist-item a { - color: #fff; - } - .inlinelist .inlinelist-item code { - color: inherit; - } -} .inlinelist .inlinelist-item:hover, .inlinelist .inlinelist-item:focus, .buzzword-list li:hover, @@ -217,12 +195,6 @@ main p a.buzzword { height: 1.75em; font-weight: 600; } -@media (prefers-color-scheme: dark) { - .numberflag { - background-color: #00bcd4; - color: #222; - } -} h1 .numberflag, h2 .numberflag, h3 .numberflag, @@ -244,11 +216,6 @@ h2 .numberflag:after { background-color: #fff; width: calc(100% + 0.4em); /* 16px /40 */ } -@media (prefers-color-scheme: dark) { - h2 .numberflag:after { - background-color: #222; - } -} /* Super featured list on home page */ .list-superfeatured .avatar { diff --git a/docs/_includes/components/minilink.css b/docs/_includes/components/minilink.css index 395b3b9..c5a844d 100644 --- a/docs/_includes/components/minilink.css +++ b/docs/_includes/components/minilink.css @@ -12,16 +12,6 @@ line-height: 1.285714285714; /* 18px /14 */ font-family: system-ui, -apple-system, sans-serif; } -@media (prefers-color-scheme: dark) { - .minilink { - background-color: #222; - /* - !important to override .elv-callout a - see _includes/components/callout.css - */ - color: #fff !important; - } -} table .minilink { margin-top: 6px; } @@ -32,12 +22,6 @@ table .minilink { .minilink[href]:focus { background-color: #bbb; } -@media (prefers-color-scheme: dark) { - .minilink[href]:hover, - .minilink[href]:focus { - background-color: #444; - } -} pre + .minilink { color: #fff; border-radius: 0 0 0.2857142857143em 0.2857142857143em; /* 4px /14 */ @@ -74,11 +58,6 @@ h4 .minilink { text-transform: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.3); } -@media (prefers-color-scheme: dark) { - .minilink-addedin { - box-shadow: 0 0 0 1px rgba(255,255,255,0.3); - } -} .minilink-addedin:not(:first-child) { margin-left: .5em; } diff --git a/docs/_includes/components/toc.css b/docs/_includes/components/toc.css index 6fa4252..039673f 100644 --- a/docs/_includes/components/toc.css +++ b/docs/_includes/components/toc.css @@ -79,22 +79,11 @@ border-bottom: 1px solid #ddd; margin-bottom: 0.25em; /* 4px /16 */ } -@media (prefers-color-scheme: dark) { - .elv-toc-list > li > a { - color: #fff; - border-color: #444; - } -} /* Active links */ .elv-toc-list li.elv-toc-active > a { background-color: #dff7ff; } -@media (prefers-color-scheme: dark) { - .elv-toc-list li.elv-toc-active > a { - background-color: #353535; - } -} .elv-toc-list ul .elv-toc-active > a:after { content: ""; } diff --git a/docs/_includes/index.css b/docs/_includes/index.css index 1d06fab..ca1c2df 100644 --- a/docs/_includes/index.css +++ b/docs/_includes/index.css @@ -285,11 +285,6 @@ footer.elv-layout { .elv-hero { background-color: #222; } -@media (prefers-color-scheme: dark) { - .elv-hero { - background-color: #292929; - } -} .elv-hero img, .elv-hero svg { width: 42.95774646vh;