barebones/scss/base/_forms.scss

57 lines
861 B
SCSS
Executable File

button {
cursor: pointer;
}
input,
select,
textarea {
background-color: $base-background-colour;
border: solid 1px $base-colour;
color: $base-colour;
display: inline-block;
font: inherit;
line-height: $base-spacing-unit;
padding: ($base-spacing-unit / 4);
width: 100%;
}
input {
-webkit-appearance: none;
border-radius: 0;
}
input[type="checkbox"],
input[type="radio"] {
background: transparent;
border: 0;
width: auto;
}
label {
display: block;
font-weight: bold;
}
select {
height: ($base-spacing-unit * 1.5);
}
textarea {
min-height: ($base-spacing-unit * 4);
}
.form__group {
margin-bottom: $base-spacing-unit;
.form__group__controls {
@extend .clearfix;
label {
font-weight: normal;
}
&.form__group__controls--inline {
label {
display: inline-block;
}
}
}
}