Custom radio buttons and the last few Linux details (#292)
* Custom radio buttons and the last few Linux details * Radio button margin * Account for FF ESR
This commit is contained in:
parent
5faff66fab
commit
599dc24862
51
global.css
51
global.css
|
@ -125,8 +125,41 @@ 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,
|
||||||
|
.moz-appearance-bug input[type="radio"]:after {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,6 +167,10 @@ select {
|
||||||
-moz-appearance: checkbox !important;
|
-moz-appearance: checkbox !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.moz-appearance-bug input[type="radio"] {
|
||||||
|
-moz-appearance: radio !important;
|
||||||
|
}
|
||||||
|
|
||||||
.firefox select {
|
.firefox select {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding: 0 20px 0 2px;
|
padding: 0 20px 0 2px;
|
||||||
|
@ -145,7 +182,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 +194,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;
|
||||||
|
|
|
@ -138,6 +138,10 @@ input[type="color"] {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.iconset input[type="radio"] {
|
||||||
|
margin: 2px 4px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
#actions {
|
#actions {
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user