2014-04-06 14:14:03 +00:00
|
|
|
/*
|
|
|
|
Forms
|
|
|
|
*/
|
|
|
|
|
|
|
|
form {
|
2014-04-15 22:04:43 +00:00
|
|
|
.inline {
|
|
|
|
float: left;
|
|
|
|
display: inline-block;
|
|
|
|
width: auto;
|
|
|
|
margin-bottom: em(20);
|
|
|
|
|
|
|
|
input {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
.fields {
|
|
|
|
> .field_with_errors:first-child,
|
|
|
|
> label {
|
2014-04-15 09:59:52 +00:00
|
|
|
padding: em(11) 0;
|
|
|
|
line-height: em(16);
|
2014-04-08 23:28:46 +00:00
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
> .field_with_errors {
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-09 00:50:07 +00:00
|
|
|
input,
|
|
|
|
textarea {
|
2014-04-08 23:28:46 +00:00
|
|
|
border: $input-border-width solid $flash-error;
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
border-color: $flash-error;
|
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
&:focus {
|
|
|
|
color: $input-text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-15 09:59:52 +00:00
|
|
|
.select-wrapper {
|
2014-04-18 00:07:07 +00:00
|
|
|
$select-padding: em(7);
|
2014-04-15 09:59:52 +00:00
|
|
|
|
|
|
|
background-color: $input-primary;
|
|
|
|
border: $input-border-colour solid $input-border-width;
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: em(10);
|
2014-04-17 20:26:25 +00:00
|
|
|
float: left;
|
2014-04-15 09:59:52 +00:00
|
|
|
|
|
|
|
select {
|
|
|
|
@include appearance(none);
|
|
|
|
font-size: $input-font-size;
|
|
|
|
font-family: $open-sans;
|
|
|
|
float: left;
|
|
|
|
display: block;
|
|
|
|
width: auto;
|
|
|
|
position: relative;
|
|
|
|
margin-left: 0;
|
|
|
|
border: 0;
|
2014-04-18 00:07:07 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: $select-padding em(50) $select-padding $input-padding;
|
2014-04-15 09:59:52 +00:00
|
|
|
font-size: $input-font-size;
|
|
|
|
|
|
|
|
option {
|
|
|
|
font-size: $input-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
font-family: $fontawesome;
|
|
|
|
pointer-events: none;
|
|
|
|
content: $fa-var-chevron-down;
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
position: absolute;
|
2014-04-18 00:07:07 +00:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
text-align: center;
|
|
|
|
padding-top: em(6);
|
|
|
|
width: em(36);
|
|
|
|
height: em(32);
|
|
|
|
border-left: $input-border-width solid $input-border-colour;
|
|
|
|
color: $input-border-colour;
|
2014-04-15 09:59:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: $input-border-width solid lighten($input-secondary, 20%);
|
2014-04-18 00:07:07 +00:00
|
|
|
|
|
|
|
&:after {
|
|
|
|
border-left: $input-border-width solid $input-secondary;
|
|
|
|
color: $base-font-color;
|
|
|
|
}
|
2014-04-15 09:59:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border: $input-border-width solid $input-secondary;
|
|
|
|
color: $input-secondary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=text],
|
|
|
|
input[type=password],
|
|
|
|
input[type=email],
|
2014-04-09 00:50:07 +00:00
|
|
|
textarea {
|
2014-04-08 23:28:46 +00:00
|
|
|
background-color: $input-primary;
|
|
|
|
color: $input-text;
|
2014-04-15 09:59:52 +00:00
|
|
|
font-size: $input-font-size;
|
2014-04-08 23:28:46 +00:00
|
|
|
padding: $input-padding;
|
|
|
|
height: em(40);
|
2014-04-09 20:44:04 +00:00
|
|
|
border: $input-border-colour solid $input-border-width;
|
2014-04-08 23:28:46 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: $input-border-width solid lighten($input-secondary, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border: $input-border-width solid $input-secondary;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
2014-04-09 20:44:04 +00:00
|
|
|
|
2014-04-15 09:59:52 +00:00
|
|
|
input[type=checkbox] {
|
|
|
|
@include appearance(none);
|
|
|
|
width: em(40);
|
|
|
|
height: em(40);
|
|
|
|
font-size: $input-font-size;
|
|
|
|
padding: $input-padding;
|
|
|
|
background-color: $input-primary;
|
|
|
|
border: $input-border-colour solid $input-border-width;
|
|
|
|
position: relative;
|
|
|
|
margin: 0;
|
|
|
|
float: left;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2014-04-15 22:04:43 +00:00
|
|
|
border: $input-border-width solid lighten($input-secondary, 20%);
|
2014-04-15 09:59:52 +00:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked {
|
2014-04-15 22:04:43 +00:00
|
|
|
border-color: $button-secondary;
|
|
|
|
|
2014-04-15 09:59:52 +00:00
|
|
|
&:after {
|
|
|
|
content: $fa-var-check;
|
|
|
|
pointer-events: none;
|
|
|
|
font-family: $fontawesome;
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
position: absolute;
|
|
|
|
font-size: em(22);
|
|
|
|
top: em(4);
|
|
|
|
left: em(5);
|
2014-04-15 22:04:43 +00:00
|
|
|
color: $button-secondary;
|
2014-04-15 09:59:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-09 20:44:04 +00:00
|
|
|
textarea {
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
}
|
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
.controls {
|
2014-04-09 20:44:04 +00:00
|
|
|
margin-bottom: em(20);
|
2014-04-08 23:28:46 +00:00
|
|
|
|
|
|
|
button,
|
2014-04-15 09:59:52 +00:00
|
|
|
input[type=submit] {
|
2014-04-08 23:28:46 +00:00
|
|
|
@include button($button-secondary);
|
|
|
|
margin-bottom: 0;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
form.dark {
|
|
|
|
.fields {
|
2014-04-06 14:14:03 +00:00
|
|
|
input {
|
2014-04-08 23:28:46 +00:00
|
|
|
color: white;
|
|
|
|
background: $input-dark-background-colour;
|
|
|
|
border: $input-dark-border-colour solid $input-dark-border-width;
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
&:hover {
|
|
|
|
border: $input-dark-border-width solid $input-dark-border-hover-colour;
|
2014-04-06 14:14:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
2014-04-08 23:28:46 +00:00
|
|
|
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;
|
2014-04-06 14:14:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
.controls {
|
|
|
|
margin-bottom: 20px;
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
button,
|
|
|
|
input {
|
2014-04-18 00:07:07 +00:00
|
|
|
background-color: $dark-blue;
|
2014-04-06 14:14:03 +00:00
|
|
|
}
|
|
|
|
}
|
2014-04-08 23:28:46 +00:00
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-08 23:28:46 +00:00
|
|
|
form.square {
|
|
|
|
@include span-columns(12);
|
2014-04-09 23:43:20 +00:00
|
|
|
margin: em(20) 0;
|
2014-04-08 23:28:46 +00:00
|
|
|
|
2014-04-09 23:43:20 +00:00
|
|
|
.horizontal {
|
|
|
|
@include span-columns(12);
|
|
|
|
margin-bottom: em(20);
|
2014-04-08 23:28:46 +00:00
|
|
|
|
2014-04-09 23:43:20 +00:00
|
|
|
&.small {
|
|
|
|
@include span-columns(6);
|
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-09 23:43:20 +00:00
|
|
|
&.medium {
|
|
|
|
@include span-columns(9);
|
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
|
2014-04-09 23:43:20 +00:00
|
|
|
&.large {
|
|
|
|
@include span-columns(12);
|
|
|
|
}
|
2014-04-08 23:28:46 +00:00
|
|
|
|
2014-04-09 23:43:20 +00:00
|
|
|
> .field_with_errors:first-child,
|
|
|
|
> label,
|
|
|
|
> .label {
|
|
|
|
@include span-columns(3);
|
|
|
|
padding: em(11) 0;
|
|
|
|
line-height: em(16);
|
|
|
|
}
|
|
|
|
|
2014-04-15 09:59:52 +00:00
|
|
|
input[type=text],
|
|
|
|
input[type=password],
|
|
|
|
input[type=email],
|
2014-04-12 01:35:42 +00:00
|
|
|
textarea {
|
2014-04-09 23:43:20 +00:00
|
|
|
@include span-columns(9);
|
|
|
|
}
|
2014-04-17 20:26:25 +00:00
|
|
|
|
|
|
|
.inputs {
|
|
|
|
@include span-columns(9);
|
|
|
|
|
|
|
|
input[type=text],
|
|
|
|
input[type=password],
|
|
|
|
input[type=email] {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2014-04-08 23:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.controls {
|
|
|
|
@include span-columns(9);
|
|
|
|
@include shift(3);
|
2014-04-17 20:26:25 +00:00
|
|
|
|
|
|
|
&.inline {
|
|
|
|
margin-left: 0;
|
|
|
|
width: auto;
|
|
|
|
}
|
2014-04-06 14:14:03 +00:00
|
|
|
}
|
|
|
|
}
|
2014-04-13 11:16:51 +00:00
|
|
|
|
|
|
|
form.search {
|
|
|
|
|
|
|
|
.query {
|
2014-04-17 07:55:19 +00:00
|
|
|
@include span-columns(7 of 9);
|
2014-04-13 11:16:51 +00:00
|
|
|
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.controls {
|
2014-04-17 07:55:19 +00:00
|
|
|
@include span-columns(2 of 9);
|
2014-04-13 11:16:51 +00:00
|
|
|
@include shift(0);
|
|
|
|
@include omega;
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2014-04-15 09:59:52 +00:00
|
|
|
}
|