at path:
ROOT
/
wp-admin
/
css
/
colors
/
_mixins.scss
run:
R
W
Run
blue
DIR
2022-11-10 17:09:20
R
W
Run
coffee
DIR
2022-11-10 17:09:20
R
W
Run
ectoplasm
DIR
2022-11-10 17:09:20
R
W
Run
light
DIR
2022-11-10 17:09:20
R
W
Run
midnight
DIR
2022-11-10 17:09:20
R
W
Run
modern
DIR
2022-11-10 17:09:20
R
W
Run
ocean
DIR
2022-11-10 17:09:20
R
W
Run
sunrise
DIR
2022-11-10 17:09:20
R
W
Run
_admin.scss
19.84 KB
2024-02-06 14:00:13
R
W
Run
Delete
Rename
_mixins.scss
825 By
2020-07-07 04:21:06
R
W
Run
Delete
Rename
_variables.scss
2.36 KB
2023-07-06 17:58:08
R
W
Run
Delete
Rename
error_log
up
📄
_mixins.scss
Save
/* * 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: lighten( $button-color, 3% ); border-color: darken( $button-color, 3% ); color: $button-text-color; } &:focus { box-shadow: 0 0 0 1px #fff, 0 0 0 3px $button-color; } &:active { background: darken( $button-color, 5% ); border-color: darken( $button-color, 5% ); color: $button-text-color; } &.active, &.active:focus, &.active:hover { background: $button-color; color: $button-text-color; border-color: darken( $button-color, 15% ); box-shadow: inset 0 2px 5px -3px darken( $button-color, 50% ); } }