mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
43 lines
808 B
SCSS
43 lines
808 B
SCSS
|
|
// Radio Buttons
|
|
// -------------------------------
|
|
|
|
.item-radio {
|
|
padding: 0;
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.item-radio .item-content {
|
|
/* give some room to the right for the checkmark icon */
|
|
padding-right: $item-padding * 4;
|
|
}
|
|
|
|
.item-radio .radio-icon {
|
|
/* checkmark icon will be hidden by default */
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 3;
|
|
visibility: hidden;
|
|
padding: $item-padding - 2;
|
|
height: 100%;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.item-radio input[type="radio"] {
|
|
/* hide any radio button inputs elements (the ugly circles) */
|
|
display: none;
|
|
|
|
&:checked ~ .item-content {
|
|
/* style the item content when its checked */
|
|
background: #f7f7f7;
|
|
}
|
|
|
|
&:checked ~ .radio-icon {
|
|
/* show the checkmark icon when its checked */
|
|
visibility: visible;
|
|
}
|
|
} |