Permalink
Fetching contributors…
Cannot retrieve contributors at this time
114 lines (90 sloc) 3.66 KB
.digit-RadioButton {
position: relative;
display: inline-block;
-moz-box-sizing: border-box;
box-sizing: border-box;
vertical-align: middle;
width: 1.5em;
height: 1.5em;
border-radius: 1.5em;
border: 1px solid;
fill: #fff;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.digit-RadioButton:after {
position: absolute;
content: "";
top: -16px;
left: -16px;
right: -16px;
bottom: -16px;
border-radius: 100px;
}
/* States --------------------- */
.digit-RadioButton.montage--active,
.digit-RadioButton.montage-RadioButton--checked {
background-color: currentColor;
}
.digit-RadioButton.montage-RadioButton--disabled {
opacity: .5;
border-style: dashed;
pointer-events: none;
}
/* Icon --------------------- */
.digit-RadioButton-icon {
fill: transparent;
}
.digit-RadioButton.montage-RadioButton--checked .digit-RadioButton-icon {
fill: inherit;
}
.digit-RadioButton.montage--active .digit-RadioButton-icon {
fill: transparent;
}
/* Wireframe ---------------------------------------------------------- */
[data-montage-skin="wireframe"] .digit-RadioButton {
fill: #4D4D4D;
border-color: #b3b3b3;
background-color: #f2f2f2;
}
[data-montage-skin="wireframe"] .digit-RadioButton.montage--active {
background-color: #e5e5e5;
}
/* Light ---------------------------------------------------------- */
[data-montage-skin="light"] .digit-RadioButton {
fill: hsla(0,0%,0%,.7);
border-color: hsl(0,0%,80%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
background-image: linear-gradient(top, hsl(0,0%,96%), hsl(0,0%,92%) );
box-shadow: inset 0 1px 1px hsla(0,0%,100%,.8), inset 0 -1px 1px hsla(0,0%,0%,.04), 0 1px 0 hsla(0,0%,100%,.6);
}
[data-montage-skin="light"] .digit-RadioButton.montage--active,
[data-montage-skin="light"] .digit-RadioButton.montage-RadioButton--checked {
border-color: hsla(0,0%,70%,1);
background-image: -webkit-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
background-image: linear-gradient(top, hsl(0,0%,90%), hsl(0,0%,86%) );
box-shadow: inset 0 1px 3px hsla(0,0%,0%,.2), 0 1px 0 hsla(0,0%,100%,.6);
}
/* Dark ---------------------------------------------------------- */
[data-montage-skin="dark"] .digit-RadioButton {
fill: hsl(0,0%,80%);
border-color: hsl(0,0%,15%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
background-image: linear-gradient(top, hsl(0,0%,30%), hsl(0,0%,24%) );
box-shadow: inset 0 1px 1px hsla(0,0%,100%,.1), inset 0 -1px 1px hsla(0,0%,0%,.06), 0 1px 0 hsla(0,0%,100%,.1);
}
[data-montage-skin="dark"] .digit-RadioButton.montage--active,
[data-montage-skin="dark"] .digit-RadioButton.montage-RadioButton--checked {
border-color: hsl(0,0%,15%);
background-image: -webkit-linear-gradient(top, hsl(0,0%,20%), hsl(0,0%,16%) );
background-image: -moz-linear-gradient(top, hsl(0,0%,20%), hsl(0,0%,16%) );
background-image: -ms-linear-gradient(top, hsl(0,0%,20%), hsl(0,0%,16%) );
background-image: linear-gradient(top, hsl(0,0%,20%), hsl(0,0%,16%) );
box-shadow: inset 0 1px 3px hsla(0,0%,0%,.3), 0 1px 0 hsla(0,0%,100%,.1);
}