mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-01 07:11:41 +00:00
775f5682a4
Improved articles styling Improved bbcode to html formatting HTML and CSS refactorings Moved Extra into concerns Changed repo URL to read-only for deploys Fixes quotes in comments
140 lines
2.4 KiB
SCSS
140 lines
2.4 KiB
SCSS
/*
|
|
Forms
|
|
*/
|
|
|
|
form {
|
|
.fields {
|
|
> .field_with_errors:first-child,
|
|
> label {
|
|
padding: 11px 0;
|
|
line-height: 16px;
|
|
}
|
|
|
|
> .field_with_errors {
|
|
|
|
input,
|
|
textarea {
|
|
border: $input-border-width solid $flash-error;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
border-color: $flash-error;
|
|
}
|
|
|
|
&:focus {
|
|
color: $input-text;
|
|
}
|
|
}
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
background-color: $input-primary;
|
|
color: $input-text;
|
|
font-size: em(16);
|
|
padding: $input-padding;
|
|
height: em(40);
|
|
border: $input-border-colour solid $input-border-width;
|
|
|
|
&:hover {
|
|
border: $input-border-width solid lighten($input-secondary, 20%);
|
|
}
|
|
|
|
&:focus {
|
|
border: $input-border-width solid $input-secondary;
|
|
color: $input-secondary;
|
|
outline: none;
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
textarea {
|
|
height: auto;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.controls {
|
|
margin-bottom: em(20);
|
|
|
|
button,
|
|
input {
|
|
@include button($button-secondary);
|
|
margin-bottom: 0;
|
|
outline: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
form.dark {
|
|
.fields {
|
|
input {
|
|
color: white;
|
|
background: $input-dark-background-colour;
|
|
border: $input-dark-border-colour solid $input-dark-border-width;
|
|
|
|
&:hover {
|
|
border: $input-dark-border-width solid $input-dark-border-hover-colour;
|
|
}
|
|
|
|
&:focus {
|
|
border: $input-dark-border-width solid $input-dark-border-focus-colour;
|
|
}
|
|
|
|
&:-webkit-autofill {
|
|
-webkit-text-fill-color: white !important;
|
|
-webkit-box-shadow: 0 0 0px 1000px $input-dark-background-colour inset;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.controls {
|
|
margin-bottom: 20px;
|
|
|
|
button,
|
|
input {
|
|
background-color: $purple;
|
|
}
|
|
}
|
|
}
|
|
|
|
form.square {
|
|
@include span-columns(12);
|
|
margin: em(20) 0;
|
|
|
|
.horizontal {
|
|
@include span-columns(12);
|
|
margin-bottom: em(20);
|
|
|
|
&.small {
|
|
@include span-columns(6);
|
|
}
|
|
|
|
&.medium {
|
|
@include span-columns(9);
|
|
}
|
|
|
|
&.large {
|
|
@include span-columns(12);
|
|
}
|
|
|
|
> .field_with_errors:first-child,
|
|
> label,
|
|
> .label {
|
|
@include span-columns(3);
|
|
padding: em(11) 0;
|
|
line-height: em(16);
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
@include span-columns(9);
|
|
}
|
|
}
|
|
|
|
.controls {
|
|
@include span-columns(9);
|
|
@include shift(3);
|
|
}
|
|
}
|