Better contrast for "unsafe" URL labels.

This commit is contained in:
hackademix 2022-03-28 00:27:52 +02:00
parent 6405a3faa1
commit bc5f460a90
2 changed files with 5 additions and 7 deletions

View File

@ -92,6 +92,7 @@
--form-check-color: var(--accent-color);
--form-control-color: var(--form-color2);
--hilite-color: #f008;
--unsafe-color: var(--accent-color);
}
.__NoScript_Theme__.vintage:not([data-theme="light"]) :is(input.preset, .icon) {
@ -112,6 +113,7 @@
--tab-color1: #ddd;
--tab-color2: #8888;
--focus-color: var(--focus-color-light);
--unsafe-color: #811;
}
.__NoScript_Theme__.vintage[data-theme="dark"] :is(input.preset, .icon) {

View File

@ -200,12 +200,12 @@ html:not(.mobile) .sites > tr.site:not(.customizing):is(:focus-within, :hover) {
border-top: var(--border-row-sep);
}
.sites > tr.site:nth-of-type(even):not(.customizing) {
.sites > tr.site:nth-of-type(even) {
background-color: var(--bg-even-row);
--bg-preset-color: var(--bg-odd-row);
}
.sites > tr.site:nth-of-type(odd):not(.customizing) {
.sites > tr.site:nth-of-type(odd) {
background-color: var(--bg-odd-row);
--bg-preset-color: var(--bg-even-row);
}
@ -236,7 +236,7 @@ html:not(.mobile) .sites > tr.site:not(.customizing):is(:focus-within, :hover) {
.site .url[data-key="host"] .domain,
.site .url[data-key="host"] .sub,
.site .url[data-key="unsafe"] span {
color: var(--accent-color);
color: var(--unsafe-color)
}
.site .url[data-key="secure"] .domain,
@ -479,10 +479,6 @@ input.preset:checked ~ input.temp {
box-shadow: 0 0 1px var(--form-color2);
}
:not(#presets) > .sites .customizing, .customizer {
background-color: var(--tab-color2) !important;
}
#presets legend select, #presets legend button {
display: none;
}