Skip to content

Commit 1b67211

Browse files
committed
Change form border color, move label below line
1 parent c8c1872 commit 1b67211

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
.ContactUs {
22
margin-top: 10rem;
33
margin-bottom: 10rem;
4-
5-
p {
6-
margin-bottom: 2rem;
7-
}
84
}

src/components/form/index.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
.Form {
2+
--input-label-active-position: 1.3rem;
3+
24
label {
35
display: block;
4-
margin-top: 1rem;
6+
margin: 3rem 0;
57
font-family: var(--font-name--paragraph);
68

79
&:after {
@@ -11,20 +13,22 @@
1113

1214
width: 100%;
1315
height: 1px;
14-
background: #ccc;
16+
background: #e8e8e8;
17+
18+
margin-top: -1rem;
1519
}
1620
}
1721

1822
input:focus,
1923
textarea:focus {
2024
~ span {
21-
transform: translateY(0);
25+
transform: translateY(var(--input-label-active-position));
2226
}
2327
}
2428

2529
label.has-input {
2630
span {
27-
transform: translateY(0);
31+
transform: translateY(var(--input-label-active-position));
2832
}
2933
}
3034

@@ -35,7 +39,7 @@
3539
font-weight: bold;
3640
font-size: 1.2rem;
3741

38-
transform: translateY(-1rem);
42+
transform: translateY(-1.5rem);
3943
transition: transform 0.3s;
4044
}
4145

0 commit comments

Comments
 (0)