1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-30 01:10:07 +02:00

👍 inputのooutlineの色をスタイルに合わせて調整

This commit is contained in:
BcRikko
2018-11-28 18:33:43 +09:00
parent da57a19a9c
commit b735f29340
5 changed files with 18 additions and 12 deletions

View File

@@ -1,26 +1,28 @@
.input {
@mixin border-style($color) {
@mixin border-style($border, $outline) {
outline-color: $outline;
// prettier-ignore
box-shadow:
0 4px $color,
0 -4px $color,
4px 0 $color,
-4px 0 $color;
0 4px $border,
0 -4px $border,
4px 0 $border,
-4px 0 $border;
}
padding: 0.5rem 1rem;
margin: 4px;
border: none;
@include border-style($base-color);
@include border-style($base-color, #e7e7e7);
&.is-success {
@include border-style(#209cee);
@include border-style(#209cee, #108de0);
}
&.is-warning {
@include border-style(#f7d51d);
@include border-style(#f7d51d, #f2c409);
}
&.is-error {
@include border-style(#e76e55);
@include border-style(#e76e55, #ce372b);
}
}