popov.link/_scss/components/theme/_form.scss
Valentin Popov 131e332a03
Correct renaming of functions
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-04-24 17:48:36 +04:00

70 lines
1.1 KiB
SCSS

@import 'utilities/appearance';
@import 'utilities/borderradius';
@import 'utilities/boxshadow';
@import 'utilities/boxsizing';
input:not([type]),
input[type='color'],
input[type='date'],
input[type='datetime'],
input[type='datetime-local'],
input[type='email'],
input[type='month'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='url'],
input[type='week'],
select,
textarea {
background-color: transparent;
border: .1rem solid $color-quaternary;
height: 3.8rem;
padding: .6rem 1rem;
width: 100%;
@include appearance(none);
@include border-radius(.4rem);
@include box-shadow(none);
@include box-sizing(inherit);
&:focus {
border-color: $color-primary;
outline: 0;
}
}
select {
padding-right: 3rem;
}
textarea {
min-height: 6.5rem;
}
label,
legend {
display: block;
font-size: 1.6rem;
font-weight: 700;
margin-bottom: .5rem;
}
fieldset {
border-width: 0;
padding: 0;
}
input[type='checkbox'],
input[type='radio'] {
display: inline;
}
.label-inline {
display: inline-block;
font-weight: normal;
margin-left: .5rem;
}