mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-08-30 09:20:02 +02:00
👍 inputのooutlineの色をスタイルに合わせて調整
This commit is contained in:
@@ -702,18 +702,22 @@ button,
|
||||
padding: 0.5rem 1rem;
|
||||
margin: 4px;
|
||||
border: none;
|
||||
outline-color: #e7e7e7;
|
||||
box-shadow: 0 4px #212529, 0 -4px #212529, 4px 0 #212529, -4px 0 #212529;
|
||||
}
|
||||
|
||||
.input.is-success {
|
||||
outline-color: #108de0;
|
||||
box-shadow: 0 4px #209cee, 0 -4px #209cee, 4px 0 #209cee, -4px 0 #209cee;
|
||||
}
|
||||
|
||||
.input.is-warning {
|
||||
outline-color: #f2c409;
|
||||
box-shadow: 0 4px #f7d51d, 0 -4px #f7d51d, 4px 0 #f7d51d, -4px 0 #f7d51d;
|
||||
}
|
||||
|
||||
.input.is-error {
|
||||
outline-color: #ce372b;
|
||||
box-shadow: 0 4px #e76e55, 0 -4px #e76e55, 4px 0 #e76e55, -4px 0 #e76e55;
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
2
css/nes.min.css
vendored
2
css/nes.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@
|
||||
|
||||
<title>NES.css - NES-style CSS Framework</title>
|
||||
|
||||
<link href="./css/nes.min.css" rel="stylesheet" />
|
||||
<link href="./css/nes.css" rel="stylesheet" />
|
||||
<link href="./style.css" rel="stylesheet" />
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user