Better division of code, color dynamacy

This commit is contained in:
oitsjustjose 2020-03-03 14:17:21 -05:00
commit cfeb62458e
15 changed files with 616 additions and 587 deletions

View file

@ -1,10 +1,8 @@
@import "colors";
button {
padding: 0.75rem 1rem;
border: none;
outline: none;
background-color: map-get($dark, "button");
background-color: map-get($components, "button");
color: $foreground;
user-select: none;
cursor: pointer;
@ -16,11 +14,11 @@ button {
font-size: 14px;
&:hover {
background-color: lighten(map-get($dark, "buttonActive"), 10%);
background-color: lighten($background, 10%);
}
&:active {
background-color: map-get($dark, "buttonActive");
background-color: lighten($background, 5%);
}
&.small {
@ -30,46 +28,46 @@ button {
&.outlined {
background-color: transparent;
border: 2px solid map-get($dark, "button");
border: 2px solid map-get($components, "button");
&:hover {
background-color: transparent;
border: 2px solid lighten(map-get($dark, "buttonActive"), 10%);
border: 2px solid lighten($background, 10%);
transition: all 150ms ease-in-out;
}
&:active {
background-color: transparent;
border: 2px solid map-get($dark, "buttonActive");
border: 2px solid lighten($background, 5%);
}
}
&.white {
background-color: $foreground;
color: $background;
box-shadow: 0px 0px 10px 0px rgba($foreground, 0.5);
&.inverted {
background-color: invert($background);
color: invert($foreground);
box-shadow: 0px 0px 10px 0px rgba(invert($background), 0.5);
&:hover {
background-color: lighten($foreground, 10%);
background-color: lighten(invert($background), 10%);
}
&:active {
background-color: lighten($foreground, 2%);
background-color: lighten(invert($background), 5%);
}
&.outlined {
background-color: transparent;
color: $foreground;
border: 2px solid $foreground;
color: invert($background);
border: 2px solid invert($background);
&:hover {
color: lighten($foreground, 10%);
border: 2px solid lighten($foreground, 10%);
color: lighten(invert($background), 10%);
border: 2px solid lighten(invert($background), 10%);
}
&:active {
color: lighten($foreground, 2%);
border: 2px solid lighten($foreground, 2%);
color: lighten($foreground, 5%);
border: 2px solid lighten(invert($background), 5%);
}
}
}