2018-12-12 10:34:39 +00:00
|
|
|
//
|
|
|
|
// Button
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.btn {
|
2023-10-18 12:16:08 +00:00
|
|
|
font: {
|
|
|
|
family: inherit;
|
|
|
|
size: inherit;
|
|
|
|
}
|
|
|
|
line-height: inherit;
|
|
|
|
color: inherit;
|
|
|
|
text-align: center;
|
2023-12-22 15:10:26 +00:00
|
|
|
-moz-appearance: none;
|
2018-12-12 10:34:39 +00:00
|
|
|
|
2023-10-18 12:16:08 +00:00
|
|
|
&[disabled],
|
|
|
|
&.disabled {
|
|
|
|
opacity: $btn-disabled-opacity;
|
|
|
|
}
|
2018-12-12 10:34:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-icon {
|
2023-10-18 12:16:08 +00:00
|
|
|
.icon {
|
|
|
|
svg, img {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
span.menu-marker {
|
2023-12-22 15:10:26 +00:00
|
|
|
-moz-appearance: none;
|
2023-10-18 12:16:08 +00:00
|
|
|
display: inline-block;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
2018-12-12 10:34:39 +00:00
|
|
|
}
|
|
|
|
|
2023-12-24 05:13:25 +00:00
|
|
|
button {
|
|
|
|
@media (-moz-platform: macos) {
|
|
|
|
// Prevent ugly non-native button styles on macOS
|
|
|
|
max-height: 25px;
|
2024-07-26 13:48:13 +00:00
|
|
|
margin: 0 -2px -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Zero-priority default margins/paddings for button elements on macOS:
|
|
|
|
|
|
|
|
:is(button, toolbarbutton) .button-text {
|
|
|
|
@media (-moz-platform: macos) {
|
|
|
|
margin-block: 1px 0;
|
|
|
|
margin-inline: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
radiogroup {
|
|
|
|
@media (-moz-platform: macos) {
|
|
|
|
margin: 0;
|
|
|
|
column-gap: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
radio, checkbox {
|
|
|
|
@media (-moz-platform: macos) {
|
|
|
|
margin: 0;
|
|
|
|
margin-inline-start: -2px;
|
|
|
|
gap: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
radio :is(.radio-check, .radio-check[checked], .radio-icon, .radio-label),
|
|
|
|
checkbox :is(.checkbox-check, .checkbox-check[checked], .checkbox-icon, .checkbox-label) {
|
|
|
|
@media (-moz-platform: macos) {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
// Can't break this out into a separate rule because of specificity
|
|
|
|
&:is(.checkbox-label) {
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
2023-12-24 05:13:25 +00:00
|
|
|
}
|
|
|
|
}
|