-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_contact.scss
76 lines (74 loc) · 1.79 KB
/
_contact.scss
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
/*=============== CONTACT ===============*/
.contact{
&__container{
row-gap: 3.5rem;
}
&__data{
display: grid;
row-gap: 2rem;
}
&__subtitle{
font-size: var(--normal-font-size);
font-weight: var(--font-medium);
color: var(--text-color);
margin-bottom: var(--mb-0-5);
}
&__description{
display: inline-flex;
align-items: center;
column-gap: .5rem;
color: var(--title-color);
font-weight: var(--font-medium);
}
&__icon{
font-size: 1.25rem;
}
&__inputs{
display: grid;
row-gap: 2rem;
margin-bottom: var(--mb-2-5);
}
&__content{
position: relative;
height: 3rem;
border-bottom: 1px solid var(--text-color-light);
}
&__input{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 1rem 1rem 1rem 0;
background: none;
color: var(--text-color);
border: none;
outline: none;
z-index: 1;
&:focus + .contact__label{
top: -.75rem;
left: 0;
font-size: var(--smaller-font-size);
z-index: 10;
}
&:not(:placeholder-shown).contact__input:not(:focus) + .contact__label{
top: -.75rem;
font-size: var(--smaller-font-size);
z-index: 10;
}
}
&__label{
position: absolute;
top: .75rem;
width: 100%;
font-size: var(--small-font-size);
color: var(--text-color-light);
transition: .3s;
}
&__area{
height: 7rem;
& textarea{
resize: none;
}
}
}