what2watch/scss/plugins/button/_plugin.scss

29 lines
438 B
SCSS
Raw Normal View History

2023-09-22 00:43:18 +00:00
// Inherit from the class
@import 'class';
// For the toggle buttons
:checked + .toggle,
:checked + .toggle:hover {
box-shadow: $picnic-button-click;
}
// Hide the checkbox/radiobutton
// Handle with care
[type] + .toggle {
padding: $picnic-button-padding;
margin-right: 0;
&:after,
&:before {
display: none;
}
}
// Implement the abstract class for real elements
button,
.button,
[type=submit] {
@extend %button;
}