Skip to content

Commit a8a4142

Browse files
committed
Sans-serif backup, input placeholder fades onclick
1 parent 51f0e21 commit a8a4142

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/index.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ a:hover{
88
}
99
body{
1010
margin: 0;
11-
font-family: Poppins;
11+
font-family: Poppins, sans-serif;
1212
}
1313
html, body, #root, #app, .full-height{
1414
height: 100%;
@@ -142,6 +142,14 @@ html, body, #root, #app, .full-height{
142142
font-family: inherit;
143143
font-size: 14px;
144144
font-weight: 500;
145+
146+
&::placeholder{ /* this refers to the input placeholder text (enter your email...)*/
147+
color: $blue;
148+
transition: color 0.4s;
149+
}
150+
&:focus::placeholder{
151+
color: transparent;
152+
}
145153
}
146154
.mailchimp-button{
147155
height: 30px;
@@ -162,10 +170,6 @@ html, body, #root, #app, .full-height{
162170

163171
outline: none;
164172
transition: 0.1s; /* see: min-width: media query */
165-
}
166-
167-
::placeholder{ /* this refers to the input placeholder text (enter your email...)*/
168-
color: $blue;
169173
}
170174

171175
/*desktop only*/
@@ -298,4 +302,4 @@ mobile has scaling widths and font sizes
298302
font-weight: 500;
299303
color: $blue;
300304
}
301-
}
305+
}

0 commit comments

Comments
 (0)