barebones/css/_forms.scss

47 lines
829 B
SCSS
Raw Normal View History

2014-02-03 23:10:54 +01:00
input,
select,
textarea {
2014-02-06 16:16:07 +01:00
background-color: $base-background-colour;
border: solid 1px $base-colour;
2014-02-03 23:10:54 +01:00
color: $base-colour;
display: inline-block;
font: inherit;
2014-02-18 12:43:14 +01:00
line-height: $base-margin-bottom;
2014-02-03 23:10:54 +01:00
padding: ($base-margin-bottom / 4) ($base-margin-bottom / 2);
2014-03-31 17:15:18 +02:00
width: 300px;
2014-01-30 12:20:51 +01:00
}
2014-02-03 23:10:54 +01:00
input[type="checkbox"],
input[type="radio"] {
background: transparent;
border: 0;
width: auto;
}
2014-01-30 12:20:51 +01:00
textarea {
2014-02-18 12:43:14 +01:00
min-height: ($base-margin-bottom * 4);
2014-01-30 12:20:51 +01:00
}
2014-02-03 16:33:44 +01:00
.form__group {
2014-02-18 12:43:14 +01:00
margin-bottom: $base-margin-bottom;
2014-01-30 12:20:51 +01:00
}
2014-02-03 16:33:44 +01:00
.form__label {
2014-02-03 23:10:54 +01:00
font-weight: bold;
2014-01-30 12:20:51 +01:00
}
2014-02-03 16:33:44 +01:00
.form__controls {
2014-01-30 12:20:51 +01:00
@extend .clearfix;
}
.btn {
2014-02-21 11:44:42 +01:00
background-color: $base-colour;
border: 0;
color: $base-background-colour;
2014-01-30 12:20:51 +01:00
cursor: pointer;
display: inline-block;
2014-02-21 11:44:42 +01:00
height: ($base-margin-bottom * 1.5);
line-height: ($base-margin-bottom * 1.5);
2014-02-03 23:10:54 +01:00
padding: 0 $base-margin-bottom;
2014-01-30 12:20:51 +01:00
width: auto;
2014-02-21 11:44:42 +01:00
}