Messing around with box-shadow

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
main
Claire 4 years ago
parent e71f4d468b
commit 2bb573d021

@ -502,7 +502,8 @@
font-size: inherit; font-size: inherit;
flex: auto; flex: auto;
background-color: $ui-base-color; background-color: $ui-base-color;
transition: background-color 0.2s ease; transition-property: background-color, box-shadow;
transition: all 0.2s ease;
&[disabled] { &[disabled] {
cursor: not-allowed; cursor: not-allowed;
@ -524,17 +525,21 @@
&.active { &.active {
background-color: $ui-highlight-color; background-color: $ui-highlight-color;
box-shadow: inset 0 5px darken($ui-highlight-color, 20%);
&:hover { &:hover {
background-color: lighten($ui-highlight-color, 10%); background-color: lighten($ui-highlight-color, 10%);
box-shadow: inset 0 5px darken($ui-highlight-color, 10%);
} }
&:focus { &:focus {
background-color: lighten($ui-highlight-color, 15%); background-color: lighten($ui-highlight-color, 15%);
box-shadow: inset 0 5px darken($ui-highlight-color, 5%);
} }
&:active { &:active {
background-color: lighten($ui-highlight-color, 20%); background-color: lighten($ui-highlight-color, 20%);
box-shadow: inset 0 5px $ui-highlight-color;
} }
} }
} }

Loading…
Cancel
Save