Style disabled checkboxes, and use currentColor for select text/arrows
Select text color needs to be specified to override system color in Linux. Also got rid of he stupid dotted line around focused element text which still occurs in Linux FF.
This commit is contained in:
parent
2b22494f3f
commit
e61877b9f9
20
global.css
20
global.css
|
@ -42,6 +42,19 @@ input[type="checkbox"]:not(.slider):checked + .svg-icon.checked {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:not(.slider):disabled {
|
||||||
|
background-color: transparent;
|
||||||
|
border-color: hsl(0, 0%, 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:not(.slider):disabled + .svg-icon.checked {
|
||||||
|
fill: hsl(0, 0%, 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:not(.slider):disabled + .svg-icon.checked + span {
|
||||||
|
color: hsl(0, 0%, 50%);
|
||||||
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
transition: color .1s;
|
transition: color .1s;
|
||||||
}
|
}
|
||||||
|
@ -50,6 +63,7 @@ select {
|
||||||
-moz-appearance: none;
|
-moz-appearance: none;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
|
color: currentColor;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 1px solid hsl(0, 0%, 66%);
|
border: 1px solid hsl(0, 0%, 66%);
|
||||||
padding: 0 20px 0 6px;
|
padding: 0 20px 0 6px;
|
||||||
|
@ -72,13 +86,17 @@ select {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
fill: #000;
|
fill: currentColor;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
right: 4px;
|
right: 4px;
|
||||||
transition: fill .5s;
|
transition: fill .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
@supports (-moz-appearance: none) {
|
@supports (-moz-appearance: none) {
|
||||||
.moz-appearance-bug .svg-icon.checked {
|
.moz-appearance-bug .svg-icon.checked {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user