aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/imports/_forms.css
blob: 12ee7c6a1402b4419484171251c096f84e6d14df (plain)
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
70
71
72
73
74
75
76
77
78
79
80
/*

   FORMS

*/

fieldset
{
  position: relative;
}

.input-reset {
  -webkit-appearance: none;
  -moz-appearance: none;
}

.button-reset::-moz-focus-inner,
.input-reset::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input, textarea {
  background-color: var(--grey-2);
  border-radius: var(--border-radius);
  padding: 12px 16px 10px;
  font-size: 1rem;
  line-height: 1.25;
  position: relative;
  z-index: 2;
  &:focus {
    background-color: var(--white);
  }
  &:focus + label {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-120%);
  }
}

::-webkit-input-placeholder {
   color: var(--black);
   font-size: 1rem;
   line-height: normal;
}

:-moz-placeholder {
   color: var(--black);
   font-size: 1rem;
   line-height: normal;
}

::-moz-placeholder {
   color: var(--black);
   font-size: 1rem;
   line-height: normal;
}

:-ms-input-placeholder {
   color: var(--black);
   font-size: 1rem;
   line-height: normal;
}

label
{
  font-size: .875rem;
  font-weight: 800;
  color: var(--primary);
  background-color: var(--grey-2);
  border-radius: .25rem;
  padding: .25rem .5rem;
  position: absolute;
  left: 0;
  pointer-events: none;
  opacity: 0;
  line-height: 1;
  transition: var(--hover-transition);
  z-index: 2;
}