Extract component to render a switch
We're going to use it in other places.
This commit is contained in:
@@ -3,9 +3,4 @@
|
||||
caption {
|
||||
@include element-invisible;
|
||||
}
|
||||
|
||||
[aria-pressed] {
|
||||
@include switch;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
6
app/assets/stylesheets/admin/toggle_switch.scss
Normal file
6
app/assets/stylesheets/admin/toggle_switch.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
.admin .toggle-switch {
|
||||
[aria-pressed] {
|
||||
@include switch;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user