at path:
ROOT
/
wp-admin
/
css
/
colors
/
_mixins.scss
run:
R
W
Run
blue
DIR
2026-01-24 15:10:17
R
W
Run
coffee
DIR
2024-06-24 17:16:38
R
W
Run
ectoplasm
DIR
2024-06-24 17:16:38
R
W
Run
light
DIR
2024-06-24 17:16:38
R
W
Run
midnight
DIR
2024-06-24 17:16:38
R
W
Run
modern
DIR
2024-06-24 17:16:38
R
W
Run
ocean
DIR
2024-06-24 17:16:38
R
W
Run
sunrise
DIR
2024-06-24 17:16:38
R
W
Run
_admin.scss
22.49 KB
2026-02-04 01:01:35
R
W
Run
Delete
Rename
_mixins.scss
945 By
2025-04-16 02:33:33
R
W
Run
Delete
Rename
_variables.scss
2.51 KB
2025-04-16 02:33:33
R
W
Run
Delete
Rename
error_log
up
📄
_mixins.scss
Save
@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%); } }