1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-29 16:59:58 +02:00

👍 inputフィールドを追加

This commit is contained in:
BcRikko
2018-09-29 16:51:11 +09:00
parent 831ede46b6
commit f399767f52
7 changed files with 144 additions and 3 deletions

3
scss/form/_index.scss Normal file
View File

@@ -0,0 +1,3 @@
@charset "utf-8";
@import "input.scss";

47
scss/form/input.scss Normal file
View File

@@ -0,0 +1,47 @@
.field {
margin-bottom: 1rem;
.label {
display: block;
margin-bottom: 0.5rem;
}
.input {
position: relative;
width: 100%;
padding: 1rem 1rem 0.5rem;
background-color: $background-color;
border: 4px solid $black;
&::placeholder {
font-weight: lighter;
color: rgba($black, 0.3);
}
&.-success {
border-color: $success-background-color;
}
&.-warning {
color: $warning-shadow-color;
border-color: $warning-background-color;
}
&.-error {
color: $error-background-color;
border-color: $error-background-color;
}
}
&.-inline {
display: flex;
align-items: baseline;
.label {
width: 20rem;
margin: 0;
margin-right: 1rem;
text-align: right;
}
}
}

View File

@@ -6,4 +6,5 @@
@import "base/_index.scss";
@import "elements/_index.scss";
@import "form/_index.scss";
@import "icons/_index.scss";