barebones/css/_forms.scss

48 lines
875 B
SCSS
Raw Normal View History

2014-02-03 23:10:54 +01:00
input,
select,
textarea {
2014-03-31 17:19:42 +02:00
background-color: $base-background-colour;
border: solid 1px $base-colour;
color: $base-colour;
display: inline-block;
font: inherit;
line-height: $base-margin-bottom;
padding: ($base-margin-bottom / 4) ($base-margin-bottom / 2);
width: 300px;
2014-01-30 12:20:51 +01:00
}
2014-02-03 23:10:54 +01:00
input[type="checkbox"],
input[type="radio"] {
2014-03-31 17:19:42 +02:00
background: transparent;
border: 0;
width: auto;
2014-02-03 23:10:54 +01:00
}
2014-01-30 12:20:51 +01:00
textarea {
2014-03-31 17:19:42 +02: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-03-31 17:19:42 +02: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-03-31 17:19:42 +02:00
font-weight: bold;
2014-01-30 12:20:51 +01:00
}
2014-02-03 16:33:44 +01:00
.form__controls {
2014-03-31 17:19:42 +02:00
@extend .clearfix;
2014-01-30 12:20:51 +01:00
}
.btn {
2014-03-31 17:19:42 +02:00
background-color: $base-colour;
border: 0;
color: $base-background-colour;
cursor: pointer;
display: inline-block;
height: ($base-margin-bottom * 1.5);
line-height: ($base-margin-bottom * 1.5);
padding: 0 $base-margin-bottom;
2014-04-15 18:35:29 +02:00
text-align: center;
2014-03-31 17:19:42 +02:00
width: auto;
2014-05-08 12:24:17 +02:00
}