@use 'sass:color';
/*
* Button mixin- creates a button effect with correct
* highlights/shadows, based on a base color.
*/
@mixin button( $button-color, $button-text-color: #fff ) {
background: $button-color;
border-color: $button-color;
color: $button-text-color;
&:hover,
&:focus {
background: color.adjust($button-color, $lightness: 3%);
border-color: color.adjust($button-color, $lightness: -3%);
color: $button-text-color;
}
&:focus {
box-shadow:
0 0 0 1px #fff,
0 0 0 3px $button-color;
}
&:active {
background: color.adjust($button-color, $lightness: -5%);
border-color: color.adjust($button-color, $lightness: -5%);
color: $button-text-color;
}
&.active,
&.active:focus,
&.active:hover {
background: $button-color;
color: $button-text-color;
border-color: color.adjust($button-color, $lightness: -15%);
box-shadow: inset 0 2px 5px -3px color.adjust($button-color, $lightness: -50%);
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| blue/ | 2026-02-23 19:41 | 81.6 KB | 76129f60960:kunden | dxwrx-rx-r | |
| coffee/ | 2026-02-23 19:41 | 79.56 KB | 76129f60960:kunden | dxwrx-rx-r | |
| ectoplasm/ | 2026-02-23 19:41 | 83.01 KB | 76129f60960:kunden | dxwrx-rx-r | |
| light/ | 2026-02-23 19:41 | 82.41 KB | 76129f60960:kunden | dxwrx-rx-r | |
| midnight/ | 2026-02-23 19:41 | 83.77 KB | 76129f60960:kunden | dxwrx-rx-r | |
| modern/ | 2026-02-23 19:41 | 82.65 KB | 76129f60960:kunden | dxwrx-rx-r | |
| ocean/ | 2026-02-23 19:41 | 78.69 KB | 76129f60960:kunden | dxwrx-rx-r | |
| sunrise/ | 2026-02-23 19:41 | 85.19 KB | 76129f60960:kunden | dxwrx-rx-r | |
| _admin.scss | 2026-02-23 19:41 | 22.49 KB | 76129f60960:kunden | -xw-x----- | |
| _mixins.scss | 2026-02-23 19:41 | 945 B | 76129f60960:kunden | -xw-x----- | |
| _variables.scss | 2026-02-23 19:41 | 2.51 KB | 76129f60960:kunden | -xw-x----- | |