mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
move radio to its own file
This commit is contained in:
@@ -236,31 +236,6 @@ textarea {
|
||||
}
|
||||
|
||||
|
||||
// Radio Buttons
|
||||
// -------------------------------
|
||||
|
||||
/* hide a radio button's icon by default */
|
||||
.radio-item {
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.input-wrapper input[type="radio"] {
|
||||
/* hide any radio button inputs (the ugly circles) */
|
||||
display: none;
|
||||
|
||||
/* when this radio-item is checked */
|
||||
&:checked + .radio-item {
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// DISABLED STATE
|
||||
// -------------------------------
|
||||
|
||||
|
||||
29
scss/ionic/_radio.scss
Normal file
29
scss/ionic/_radio.scss
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
// Radio Buttons
|
||||
// -------------------------------
|
||||
|
||||
/* hide a radio button's icon by default */
|
||||
.radio-content {
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.radio-item input {
|
||||
/* hide any radio button inputs elements (the ugly circles) */
|
||||
display: none;
|
||||
|
||||
/* when this radio-item is checked */
|
||||
&:checked + .radio-content {
|
||||
|
||||
/* show the radio-content icon when checked */
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
right: $content-padding;
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user