CSS for forms and messages.
This commit is contained in:
parent
e7af2fc8f5
commit
f8130b1640
2 changed files with 46 additions and 3 deletions
|
|
@ -257,6 +257,32 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Messages */
|
||||||
|
|
||||||
|
.message {
|
||||||
|
padding: 10px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
width: 95%;
|
||||||
|
|
||||||
|
&.status {
|
||||||
|
background-color: color(status-bg);
|
||||||
|
color: color(status);
|
||||||
|
border-color: color(status);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.warning {
|
||||||
|
background-color: color(warning-bg);
|
||||||
|
color: color(warning);
|
||||||
|
border-color: color(warning);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.error {
|
||||||
|
background-color: color(error-bg);
|
||||||
|
color: color(error);
|
||||||
|
border-color: color(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Search */
|
/* Search */
|
||||||
|
|
||||||
|
|
@ -268,14 +294,31 @@ body {
|
||||||
@include type-layout(l, 1);
|
@include type-layout(l, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Form */
|
/* Form */
|
||||||
|
|
||||||
.contact-form {
|
.content {
|
||||||
input,
|
input,
|
||||||
textarea {
|
textarea {
|
||||||
@include margin-bottom(.75);
|
@include margin-bottom(.75);
|
||||||
width: 95%;
|
width: 95%;
|
||||||
|
|
||||||
|
&:required+span::after {
|
||||||
|
content: ' *';
|
||||||
|
color: color('red');
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:valid {
|
||||||
|
background-color: color(status-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:placeholder-shown):invalid {
|
||||||
|
background-color: color(error-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
form.submitted &:invalid {
|
||||||
|
background-color: color(error-bg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue