forked from guevaraia/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
108 lines (89 loc) · 1.71 KB
/
style.css
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@import url("https://fonts.googleapis.com/css?family=Roboto");
:root {
--primary: #007FFF;
--secondary: #6F7E8C;
--text: #212121;
}
body {
font-family: 'Roboto', sans-serif;
font-size: 16px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.box {
background-color: white;
padding: 1.5rem;
max-width: fit-content;
width: 100%;
padding-top: 0.75rem;
border-radius: 1rem;
}
.box h2 {
margin: 0;
font-family: Roboto, sans-serif;
font-weight: 400;
font-size: 1.5rem;
}
.centering {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
background: var(--primary);
}
.input__wrapper {
position: relative;
padding: 1rem 0 0;
}
.input__field {
border: 1px solid var(--secondary);
font-size: 1rem;
border-radius: 0.5rem;
color: var(--text);
padding: 0.5rem;
padding-right: 2rem;
background: transparent;
transition: border-color 0.2s;
}
.input__field::placeholder {
color: transparent;
}
.input__field:placeholder-shown ~ .input__label {
font-size: 1rem;
cursor: text;
color: var(--secondary);
top: 1.5rem;
}
label,
.input__field:focus ~ .input__label {
position: absolute;
top: 0.375rem;
padding: 0 0.25rem;
background-color: white;
display: block;
font-size: 0.875rem;
left: 0.5rem;
color: var(--secondary);
transition: 0.3s;
}
.input__field:focus ~ .input__label {
color: var(--primary);
}
.input__field:focus {
border: 1px solid var(--primary);
outline: 1px solid var(--primary);
}
.input__icon {
position: absolute;
right: -0.625rem;
bottom: -0.625rem;
width: 1.75rem;
height: 1.75rem;
transform: translate(-50%,-50%);
transform-origin: center;
cursor: pointer;
}