barebones/css/objects/_forms.scss

47 lines
779 B
SCSS
Raw Normal View History

2014-02-03 16:33:44 +01:00
input, select, textarea {
2014-01-30 12:20:51 +01:00
display: inline-block;
2014-02-03 16:33:44 +01:00
font: inherit;
2014-01-30 12:20:51 +01:00
line-height: $base-margin-bottom + px;
padding: 4px 8px;
color: $base-colour;
background: $input-background;
border: $input-border;
width: 208px;
}
textarea {
min-height: ($base-margin-bottom * 4) + px;
}
2014-02-03 16:33:44 +01:00
.form__group {
2014-01-30 12:20:51 +01:00
margin-bottom: $base-margin-bottom + px;
}
2014-02-03 16:33:44 +01:00
.form__label {
2014-01-30 12:20:51 +01:00
float: left;
width: 140px;
}
2014-02-03 16:33:44 +01:00
.form__controls {
2014-01-30 12:20:51 +01:00
margin-left: 160px;
@extend .clearfix;
}
.checkbox input {
width: auto;
}
.btn {
background: $btn-background;
border: $btn-border;
color: $btn-color;
cursor: pointer;
display: inline-block;
2014-02-03 16:33:44 +01:00
line-height: ($base-margin-bottom * 2) + px;
height: ($base-margin-bottom * 2) + px;
padding: 0 20px;
2014-01-30 12:20:51 +01:00
width: auto;
&:hover {
background: $btn-background-hover;
}
}