Custom radio buttons and the last few Linux details

This commit is contained in:
narcolepticinsomniac 2017-12-08 11:15:03 -05:00 committed by GitHub
parent 5faff66fab
commit bc1bedfb3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,38 @@ select {
transition: fill .5s; transition: fill .5s;
} }
input[type="radio"] {
-webkit-appearance: none;
-moz-appearance: none;
outline: none;
background: hsl(0, 0%, 88%);
border-radius: 50%;
border: 1px solid hsl(0, 0%, 60%);
cursor: default;
height: 13px;
width: 13px;
position: relative;
}
input[type="radio"]:after {
content: '';
background-color: transparent;
transform: scale(0);
transform-origin: 50% 50%;
transition: background-color .5s, transform .5s;
border-radius: 50%;
height: 7px;
width: 7px;
left: 2px;
top: 2px;
position: absolute;
}
input[type="radio"]:checked:after {
background-color: hsl(0, 0%, 30%);
transform: scale(1);
}
@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;
@ -145,7 +177,7 @@ select {
} }
/* We can customize everything about number inputs except arrows. They're horrible in Linux FF, so we'll hide them unless hovered or focused. */ /* We can customize everything about number inputs except arrows. They're horrible in Linux FF, so we'll hide them unless hovered or focused. */
.firefox.non-windows input[type=number] { .firefox.non-windows input[type="number"] {
-moz-appearance: textfield; -moz-appearance: textfield;
background: #fff; background: #fff;
color: #000; color: #000;
@ -157,6 +189,16 @@ select {
-moz-appearance: number-input; -moz-appearance: number-input;
} }
.firefox.non-windows input[type="color"] {
background: #fff;
border: 1px solid hsl(0, 0%, 66%);
padding: 4px;
}
.firefox.non-windows .style-name {
font-family: Arial, sans-serif;
}
/* Firefox cannot handle fractions in font-size */ /* Firefox cannot handle fractions in font-size */
.firefox button:not(.install) { .firefox button:not(.install) {
font-size: 13px; font-size: 13px;