2015-01-20 21:25:57 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
Forms
|
|
|
|
========================================================================== */
|
|
|
|
|
2015-04-17 12:43:36 +02:00
|
|
|
btnform {
|
2013-05-24 16:25:31 +02:00
|
|
|
margin: 0 0 5px 0;
|
2015-04-17 12:43:36 +02:00
|
|
|
fieldset {
|
|
|
|
margin-bottom: 5px;
|
|
|
|
padding: 0;
|
|
|
|
border-width: 0;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
2015-04-17 12:43:36 +02:00
|
|
|
legend {
|
2013-05-24 16:25:31 +02:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 5px * 2;
|
2015-04-17 12:43:36 +02:00
|
|
|
*margin-left: -7px;
|
2013-05-24 16:25:31 +02:00
|
|
|
padding: 0;
|
2014-07-31 19:09:32 +02:00
|
|
|
color: $textcolor;
|
2013-05-24 16:25:31 +02:00
|
|
|
border: 0;
|
2014-07-31 19:09:32 +02:00
|
|
|
border-bottom: 1px solid lighten($black, 80);
|
2015-04-17 12:43:36 +02:00
|
|
|
white-space: normal;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
p {
|
2015-04-17 12:43:36 +02:00
|
|
|
margin-bottom: 5px / 2;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
ul {
|
2015-04-17 12:43:36 +02:00
|
|
|
list-style-type: none;
|
2013-05-24 16:25:31 +02:00
|
|
|
margin: 0 0 5px 0;
|
2015-04-17 12:43:36 +02:00
|
|
|
padding: 0;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
br {
|
2015-04-17 12:43:36 +02:00
|
|
|
display: none;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
label,
|
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
textarea {
|
2015-04-17 12:43:36 +02:00
|
|
|
vertical-align: baseline;
|
|
|
|
*vertical-align: middle;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
input,
|
|
|
|
button,
|
|
|
|
select,
|
|
|
|
textarea {
|
2015-04-17 12:43:36 +02:00
|
|
|
font-family: $base-font;
|
|
|
|
@include box-sizing(border-box);
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
label {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 10px / 8;
|
|
|
|
font-weight: bold;
|
2014-07-31 19:09:32 +02:00
|
|
|
color: $textcolor;
|
2015-04-17 12:43:36 +02:00
|
|
|
cursor: pointer;
|
2013-05-24 16:25:31 +02:00
|
|
|
input,
|
|
|
|
textarea,
|
|
|
|
select {
|
2015-04-17 12:43:36 +02:00
|
|
|
display: block;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
input,
|
|
|
|
textarea,
|
|
|
|
select {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 4px;
|
|
|
|
margin-bottom: 5px / 4;
|
2014-07-31 19:09:32 +02:00
|
|
|
background-color: $white;
|
|
|
|
border: 1px solid lighten($black, 80);
|
2015-04-17 12:43:36 +02:00
|
|
|
color: $textcolor;
|
2013-05-24 16:25:31 +02:00
|
|
|
&:hover {
|
2015-04-17 12:43:36 +02:00
|
|
|
border-color: lighten($accentcolor, 50);
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
}
|
2015-04-17 12:43:36 +02:00
|
|
|
.input-mini {
|
|
|
|
width: 60px;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
2015-04-17 12:43:36 +02:00
|
|
|
.input-small {
|
|
|
|
width: 90px;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
input[type="image"],
|
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
padding: 0;
|
|
|
|
margin: 3px 0;
|
|
|
|
*margin-top: 0;
|
|
|
|
line-height: normal;
|
|
|
|
cursor: pointer;
|
2014-07-31 19:09:32 +02:00
|
|
|
@include rounded(0);
|
2015-04-17 12:43:36 +02:00
|
|
|
border: 0 \9;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
2015-04-17 12:43:36 +02:00
|
|
|
input[type="checkbox"],
|
|
|
|
input[type="radio"] {
|
2014-07-31 19:09:32 +02:00
|
|
|
@include box-sizing(border-box);
|
2015-04-17 12:43:36 +02:00
|
|
|
padding: 0;
|
|
|
|
*width: 13px;
|
|
|
|
*height: 13px;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
input[type="image"] {
|
2015-04-17 12:43:36 +02:00
|
|
|
border: 0;
|
|
|
|
@include box-shadow(none);
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
input[type="file"] {
|
|
|
|
width: auto;
|
|
|
|
padding: initial;
|
|
|
|
line-height: initial;
|
|
|
|
border: initial;
|
|
|
|
background-color: transparent;
|
|
|
|
background-color: initial;
|
2015-04-17 12:43:36 +02:00
|
|
|
@include box-shadow(none);
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
input[type="button"],
|
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"] {
|
|
|
|
width : auto;
|
|
|
|
height : auto;
|
|
|
|
cursor : pointer;
|
2015-04-17 12:43:36 +02:00
|
|
|
*overflow : visible;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
select,
|
|
|
|
input[type="file"] {
|
2015-04-17 12:43:36 +02:00
|
|
|
*margin-top : 4px;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
select {
|
|
|
|
width : auto;
|
2014-07-31 19:09:32 +02:00
|
|
|
background-color : $white;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
select[multiple],
|
|
|
|
select[size] {
|
2015-04-17 12:43:36 +02:00
|
|
|
height : auto;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
textarea {
|
2014-07-31 19:09:32 +02:00
|
|
|
@include resize(vertical);
|
2013-05-24 16:25:31 +02:00
|
|
|
height : auto;
|
2015-04-17 12:43:36 +02:00
|
|
|
overflow : auto;
|
|
|
|
vertical-align : top;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
input[type="hidden"] {
|
2015-04-17 12:43:36 +02:00
|
|
|
display : none;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.radio,
|
|
|
|
.checkbox {
|
2015-04-17 12:43:36 +02:00
|
|
|
padding-left : 18px;
|
|
|
|
font-weight : normal;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.radio input[type="radio"],
|
|
|
|
.checkbox input[type="checkbox"] {
|
|
|
|
float : left;
|
2015-04-17 12:43:36 +02:00
|
|
|
margin-left : -18px;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.radio.inline,
|
|
|
|
.checkbox.inline {
|
|
|
|
display : inline-block;
|
|
|
|
padding-top : 5px;
|
|
|
|
margin-bottom : 0;
|
2015-04-17 12:43:36 +02:00
|
|
|
vertical-align : middle;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.radio.inline + .radio.inline,
|
|
|
|
.checkbox.inline + .checkbox.inline {
|
2015-04-17 12:43:36 +02:00
|
|
|
margin-left : 10px;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
2015-01-20 21:25:57 +01:00
|
|
|
|
2015-04-17 12:43:36 +02:00
|
|
|
/*
|
2015-01-20 21:25:57 +01:00
|
|
|
Disabled state
|
|
|
|
========================================================================== */
|
|
|
|
|
2013-05-24 16:25:31 +02:00
|
|
|
input[disabled],
|
|
|
|
select[disabled],
|
|
|
|
textarea[disabled],
|
|
|
|
input[readonly],
|
|
|
|
select[readonly],
|
|
|
|
textarea[readonly] {
|
2014-07-31 19:09:32 +02:00
|
|
|
@include opacity(.5);
|
2015-04-17 12:43:36 +02:00
|
|
|
cursor : not-allowed;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
2015-01-20 21:25:57 +01:00
|
|
|
|
2015-04-17 12:43:36 +02:00
|
|
|
/*
|
2015-01-20 21:25:57 +01:00
|
|
|
Focus & active state
|
|
|
|
========================================================================== */
|
|
|
|
|
2013-05-24 16:25:31 +02:00
|
|
|
input:focus,
|
|
|
|
textarea:focus {
|
2014-07-31 19:09:32 +02:00
|
|
|
border-color : $accentcolor;
|
2013-05-24 16:25:31 +02:00
|
|
|
outline : 0;
|
2015-04-17 12:43:36 +02:00
|
|
|
outline : thin dotted \9;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
input[type="file"]:focus,
|
|
|
|
input[type="radio"]:focus,
|
|
|
|
input[type="checkbox"]:focus,
|
|
|
|
select:focus {
|
2015-04-17 12:43:36 +02:00
|
|
|
@include box-shadow(none);
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
2015-01-20 21:25:57 +01:00
|
|
|
|
2015-04-17 12:43:36 +02:00
|
|
|
/*
|
2015-01-20 21:25:57 +01:00
|
|
|
Help text
|
|
|
|
========================================================================== */
|
|
|
|
|
2013-05-24 16:25:31 +02:00
|
|
|
.help-block,
|
|
|
|
.help-inline {
|
2015-04-17 12:43:36 +02:00
|
|
|
color : lighten($black, 50);
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.help-block {
|
2015-04-17 12:43:36 +02:00
|
|
|
display : block;
|
|
|
|
margin-bottom : 1em;
|
2013-05-24 16:25:31 +02:00
|
|
|
line-height : 1em;
|
|
|
|
}
|
|
|
|
.help-inline {
|
|
|
|
display : inline-block;
|
|
|
|
vertical-align : middle;
|
2015-04-17 12:43:36 +02:00
|
|
|
padding-left : 5px;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
2015-01-20 21:25:57 +01:00
|
|
|
|
2015-04-17 12:43:36 +02:00
|
|
|
/*
|
2015-01-20 21:25:57 +01:00
|
|
|
.form-inline
|
|
|
|
========================================================================== */
|
|
|
|
|
2013-05-24 16:25:31 +02:00
|
|
|
.form-inline input,
|
|
|
|
.form-inline textarea,
|
|
|
|
.form-inline select {
|
|
|
|
display : inline-block;
|
2015-04-17 12:43:36 +02:00
|
|
|
margin-bottom : 0;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.form-inline label {
|
2015-04-17 12:43:36 +02:00
|
|
|
display : inline-block;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.form-inline .radio,
|
|
|
|
.form-inline .checkbox,
|
|
|
|
.form-inline .radio {
|
|
|
|
padding-left : 0;
|
|
|
|
margin-bottom : 0;
|
2015-04-17 12:43:36 +02:00
|
|
|
vertical-align : middle;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.form-inline .radio input[type="radio"],
|
|
|
|
.form-inline .checkbox input[type="checkbox"] {
|
|
|
|
float : left;
|
|
|
|
margin-left : 0;
|
|
|
|
margin-right : 3px; }
|
2015-01-20 21:25:57 +01:00
|
|
|
|
2015-04-17 12:43:36 +02:00
|
|
|
/*
|
2015-01-20 21:25:57 +01:00
|
|
|
.form-search
|
|
|
|
========================================================================== */
|
|
|
|
|
2013-05-24 16:25:31 +02:00
|
|
|
.form-search input,
|
|
|
|
.form-search textarea,
|
|
|
|
.form-search select {
|
|
|
|
display : inline-block;
|
2015-04-17 12:43:36 +02:00
|
|
|
margin-bottom : 0;
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.form-search .search-query {
|
|
|
|
padding-left : 14px;
|
|
|
|
padding-right : 14px;
|
2015-04-17 12:43:36 +02:00
|
|
|
margin-bottom : 0;
|
|
|
|
@include rounded(14px);
|
2013-05-24 16:25:31 +02:00
|
|
|
}
|
|
|
|
.form-search label {
|
|
|
|
display : inline-block;
|
|
|
|
}
|
|
|
|
.form-search .radio,
|
|
|
|
.form-search .checkbox,
|
|
|
|
.form-inline .radio {
|
|
|
|
padding-left : 0;
|
|
|
|
margin-bottom : 0;
|
|
|
|
vertical-align : middle;
|
|
|
|
}
|
|
|
|
.form-search .radio input[type="radio"],
|
|
|
|
.form-search .checkbox input[type="checkbox"] {
|
|
|
|
float : left;
|
|
|
|
margin-left : 0;
|
|
|
|
margin-right : 3px;
|
2015-01-20 21:25:57 +01:00
|
|
|
}
|