-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
73 lines (68 loc) · 1.27 KB
/
style.css
File metadata and controls
73 lines (68 loc) · 1.27 KB
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
$primary: #11998e;
$secondary: #38ef7d;
$gray: #9b9b9b;
.form__group {
position: absolute;
width: 40%;
text-align: center;
}
.form__field {
font-family: inherit;
border: 0;
border-bottom: 2px solid $gray;
outline: 0;
font-size: 1.3rem;
color: white;
padding: 7px 0;
background: transparent;
transition: border-color 0.2s;
text-align: center;
margin: auto;
&::placeholder {
color: transparent;
}
&:placeholder-shown ~ .form__label {
font-size: 1.3rem;
cursor: text;
top: 20px;
}
}
.form__label {
position: absolute;
top: 0;
display: block;
transition: 0.2s;
font-size: 1rem;
color: $gray;
}
.form__field:focus {
~ .form__label {
position: absolute;
top: 0;
display: block;
transition: 0.2s;
font-size: 1rem;
color: $primary;
font-weight:700;
}
padding-bottom: 6px;
font-weight: 700;
border-width: 3px;
border-image: linear-gradient(to right, $primary,$secondary);
border-image-slice: 1;
}
/* reset input */
.form__field{
&:required,&:invalid { box-shadow:none; }
}
/* demo */
body {
font-family: 'Poppins', sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 100vh;
font-size: 1.5rem;
background-color:#222222;
text-align: center;
}