Dark and light themes refinements.

This commit is contained in:
hackademix 2022-03-11 22:41:50 +01:00
parent 67bc0c42c8
commit 6a59d1090e
4 changed files with 49 additions and 57 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -4,13 +4,11 @@
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
*/ */
html:not(.mobile) { html:not(.mobile) {
overflow-x: hidden; overflow-x: hidden;
} }
body { body {
background: white;
margin: 0.5em; margin: 0.5em;
padding: 0; padding: 0;
} }
@ -24,12 +22,13 @@ html:not(.mobile) > body {
font-size: 1em; font-size: 1em;
position: relative; position: relative;
padding: 0 0 .4em 0; padding: 0 0 .4em 0;
margin: 0;
height: 2.8em; height: 2.8em;
min-width: 18.75em; min-width: 18.75em;
border-bottom: 0.06em solid #eee;
display: flex; display: flex;
-moz-user-select: none; -moz-user-select: none;
user-select: none; user-select: none;
background: linear-gradient(to bottom, transparent 0, transparent 85%, var(--form-color1) 100%) no-repeat;
} }
.icon { .icon {
@ -37,7 +36,7 @@ html:not(.mobile) > body {
-webkit-appearance: none !important; -webkit-appearance: none !important;
-moz-appearance: none !important; -moz-appearance: none !important;
cursor: pointer; cursor: pointer;
color: #444; color: var(--accent-color);
background: transparent no-repeat left; background: transparent no-repeat left;
padding-left: 1.6em; padding-left: 1.6em;
border: none; border: none;
@ -65,6 +64,7 @@ html:not(.mobile) > body {
align-items: center; align-items: center;
line-height: 1em; line-height: 1em;
position: relative; position: relative;
border-radius: 0;
} }
#top .icon > div { #top .icon > div {
@ -99,8 +99,9 @@ html:not(.mobile) > body {
} }
.hider { .hider {
background: #ccc; background: var(--form-color1);
box-shadow: inset 0 1px 3px #444; box-shadow: inset 0 1px 3px #444;
color: var(--text-color);
border-radius: 1em 1em 0 0; border-radius: 1em 1em 0 0;
display: none; display: none;
position: relative; position: relative;
@ -111,8 +112,6 @@ html:not(.mobile) > body {
opacity: .5; opacity: .5;
} }
.hider.open { .hider.open {
display: flex; display: flex;
flex-grow: 1; flex-grow: 1;
@ -131,18 +130,38 @@ html:not(.mobile) > body {
} }
#top .hider .reveal { .hider-close, .reveal {
display: block;
font-size: 1.2em;
font-weight: bold;
padding: .2em;
text-align: center;
margin: 0;
appearance: none;
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
border: none; border: none;
border-radius: 0;
background: transparent; background: transparent;
color: var(--fg--color1);
font-weight: bold;
display: block;
}
.hider-close:hover, .reveal:hover {
color: var(--accent-color);
text-shadow: 0 0 4px var(--focus-color);
cursor: pointer;
}
#top .hider .reveal {
font-size: 1.2em;
padding: .2em;
text-align: center;
margin: 0;
}
.hider-close {
padding: 0;
position: absolute;
left: .2em;
top: 0;
font-size: 1.5em;
z-index: 100;
vertical-align: middle;
padding: .2em;
} }
.hider.open > .reveal, .hider:not(.open) > :not(.reveal) { .hider.open > .reveal, .hider:not(.open) > :not(.reveal) {
@ -154,38 +173,12 @@ html:not(.mobile) > body {
z-index: 100; z-index: 100;
top: .5em; top: .5em;
right: .5em; right: .5em;
color: #222;
text-align: right; text-align: right;
vertical-align: middle; vertical-align: middle;
line-height: 100%; line-height: 100%;
font-size: 1em; font-size: 1em;
font-weight: bold; font-weight: bold;
pointer-events: none; pointer-events: none;
text-shadow: -2px 0 2px white, 2px 0 2px white;
}
.hider-close {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
color: black;
background: transparent;
padding: 0;
border-radius: .2em;
border: none;
position: absolute;
left: .2em;
top: 0;
font-size: 1.5em;
font-weight: bold;
z-index: 100;
vertical-align: middle;
padding: .2em;
}
.hider-close:hover, .reveal:hover {
color: white !important;
text-shadow: -2px 0 2px red, 2px 0 2px red;
} }
.hider > .icon { .hider > .icon {
@ -305,6 +298,6 @@ html.incognito #incognito-ui-chooser {
} }
#incognito-ui-chooser input:checked + label { #incognito-ui-chooser input:checked + label {
background: #fff; background: var(--bg-color1);
color: #800; color: var(--accent-color);
} }

View File

@ -6,18 +6,10 @@
@import url("./common.css"); @import url("./common.css");
body {
min-width: 700px;
}
html.mobile > body {
min-width: auto;
}
.opt-group { .opt-group {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
border-bottom: 1px solid rgba(255, 255, 255, .5); border-bottom: 2px dotted var(--bg-color1);
padding: .5em 0; padding: .5em 0;
} }
@ -181,25 +173,32 @@ input[type="checkbox"] {
border-spacing: 0; border-spacing: 0;
width: 100%; width: 100%;
overflow-y: auto; overflow-y: auto;
background: var(--bg-color2);
} }
.sites tr, .sites td { .sites tr, .sites td {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: none; border: none;
font-size: 1em; font-size: 1em;
vertical-align: middle;
} }
html:not(.mobile) .sites > tr.site:focus-within { html:not(.mobile) .sites > tr.site:focus-within {
box-shadow: 0 0 2px 2px var(--focus-color); box-shadow: 0 0 2px 2px var(--focus-color);
border-color: transparent;
} }
.sites > tr:nth-child(even) { background: var(--form-color1) }
.sites > tr:nth-child(odd) { background: var(--bg-color2) } .sites > tr.site {
border-top: 2px dotted var(--form-color1);
}
.sites > tr.site:first-of-type, tr.site:focus-within + tr, .sites > tr.customizing, .sites > tr.customizing + tr.site, .customizer, .customizer + tr.site {
border-color: transparent;
}
.site .url { .site .url {
padding: 0 0 0 0.5em; padding: 0 0 0 0.5em;
color: var(--fg-color2); color: var(--fg-color2);
vertical-align: top;
width: 80%; width: 80%;
} }
.site .url .protocol { display: none } .site .url .protocol { display: none }
@ -445,7 +444,7 @@ input.preset:checked ~ input.temp {
padding-left: 3em; padding-left: 3em;
} }
.customizing, .customizer { .sites .customizing, .customizer {
background-color: var(--form-color1) !important; background-color: var(--form-color1) !important;
} }