Skip to content

Commit

Permalink
refactor: add background color to state mod and remove transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebnitu committed May 25, 2021
1 parent dcb86ee commit 458549d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion docs/dist/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/dist/styles.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/styles.min.css.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/input/src/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ $_b: var.$prefix-block;
max-width: 100%;
min-height: var.$min-size;
padding: var.$padding;
transition: box-shadow core.$transition-duration core.$transition-timing-function;
border: var.$border;
border-radius: var.$border-radius;
background: var.$background;
Expand Down
4 changes: 4 additions & 0 deletions packages/input/src/_input_state.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ $_v: var.$prefix-modifier-value;

.#{$_b}input#{$_m}state#{$_v}info {
@include mix.box-shadow("default", rgba(core.$info, 1));
background-color: core.$info-lighter;

&:hover {
@include mix.box-shadow("hover", rgba(core.$info, 1));
Expand All @@ -20,6 +21,7 @@ $_v: var.$prefix-modifier-value;

.#{$_b}input#{$_m}state#{$_v}success {
@include mix.box-shadow("default", rgba(core.$success, 1));
background-color: core.$success-lighter;

&:hover {
@include mix.box-shadow("hover", rgba(core.$success, 1));
Expand All @@ -32,6 +34,7 @@ $_v: var.$prefix-modifier-value;

.#{$_b}input#{$_m}state#{$_v}caution {
@include mix.box-shadow("default", rgba(core.$caution, 1));
background-color: core.$caution-lighter;

&:hover {
@include mix.box-shadow("hover", rgba(core.$caution, 1));
Expand All @@ -44,6 +47,7 @@ $_v: var.$prefix-modifier-value;

.#{$_b}input#{$_m}state#{$_v}danger {
@include mix.box-shadow("default", rgba(core.$danger, 1));
background-color: core.$danger-lighter;

&:hover {
@include mix.box-shadow("hover", rgba(core.$danger, 1));
Expand Down

0 comments on commit 458549d

Please sign in to comment.