aboutsummaryrefslogtreecommitdiff
path: root/_scss/components/theme/_form.scss
blob: 2a69de55736dd38bed5387c0e7d584e2d651fce2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@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 borderradius(.4rem);
  @include boxshadow(none);
  @include boxsizing(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;
}