barebones/scss/base/_forms.scss

47 lines
770 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;
2014-12-01 13:26:25 +01:00
line-height: $base-spacing-unit;
padding: ($base-spacing-unit / 4);
2014-05-09 13:19:28 +02:00
width: 100%;
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-05-09 13:19:28 +02:00
label {
display: block;
font-weight: bold;
2014-01-30 12:20:51 +01:00
}
2014-05-09 13:19:28 +02:00
select {
2014-12-01 13:26:25 +01:00
height: ($base-spacing-unit * 1.5);
2014-01-30 12:20:51 +01:00
}
2014-05-09 13:19:28 +02:00
textarea {
2014-12-01 13:26:25 +01:00
min-height: ($base-spacing-unit * 4);
2014-01-30 12:20:51 +01:00
}
2014-05-09 13:19:28 +02:00
.form__group {
2014-12-01 13:26:25 +01:00
margin-bottom: $base-spacing-unit;
2014-05-09 13:19:28 +02:00
.form__group__controls {
@extend .clearfix;
label {
font-weight: normal;
}
&.form__group__controls--inline {
label {
display: inline-block;
}
}
}
2014-05-08 12:24:17 +02:00
}