ensl.org/app/assets/stylesheets/components/_forms.scss
Luke Barratt 12ed7c90ae Start to cleanup old assets
Added new ISO country code flag icons to asset pipeline
Lots and lots of new style changes
Began converting to JS to coffeescript
2014-04-09 00:28:53 +01:00

123 lines
2 KiB
SCSS

/*
Forms
*/
form {
.fields {
> .field_with_errors:first-child,
> label {
padding: 11px 0;
line-height: 16px;
}
> .field_with_errors {
input {
border: $input-border-width solid $flash-error;
&:hover,
&:focus {
border-color: $flash-error;
}
&:focus {
color: $input-text;
}
}
}
input {
background-color: $input-primary;
color: $input-text;
font-size: em(16);
padding: $input-padding;
height: em(40);
border: none;
&: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;
}
}
}
.controls {
margin-bottom: 20px;
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);
&.small {
@include span-columns(6);
}
&.medium {
@include span-columns(9);
}
&.large {
@include span-columns(12);
}
> .field_with_errors:first-child,
> label {
@include span-columns(3);
}
input {
@include span-columns(9);
}
.controls {
@include span-columns(9);
@include shift(3);
}
}