Skip to content

Commit 1093c51

Browse files
committed
add desktop media query
1 parent c1c77e7 commit 1093c51

File tree

1 file changed

+54
-11
lines changed

1 file changed

+54
-11
lines changed

formapi/css/style.css

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ label {
133133
}
134134

135135
/*Format form inputs*/
136-
136+
input {
137+
margin-bottom: 15px;
138+
}
137139

138140
/*Format select*/
139141
select {
@@ -149,13 +151,15 @@ select {
149151
option {
150152
font-size: 20px;
151153
}
154+
152155
/*text inputs*/
153156
input[type="text"]{
154157
margin-top: 15px;
155158
width: 100%;
156159
font-size: 4em;
157160
border-radius: 8px;
158161
border: 2px solid black;
162+
padding-left: 15px;
159163
}
160164

161165
/*Email inputs*/
@@ -165,6 +169,7 @@ input[type="email"]{
165169
font-size: 4em;
166170
border-radius: 8px;
167171
border: 2px solid black;
172+
padding-left: 15px;
168173
}
169174

170175
/*Phone number inputs*/
@@ -174,6 +179,7 @@ input[type="tel"]{
174179
font-size: 4em;
175180
border-radius: 8px;
176181
border: 2px solid black;
182+
padding-left: 15px;
177183
}
178184

179185
/*Format radio input*/
@@ -186,21 +192,13 @@ input[type="radio"] {
186192

187193
/*Textarea inputs*/
188194
textarea {
189-
margin-top: 15px;
190-
margin-bottom: 15px;
191-
width: 100%;
192-
font-size: 10em;
193-
border-radius: 8px;
194-
border: 2px solid black;
195-
}
196-
197-
/*File inputs*/
198-
input[type="file"] {
199195
margin-top: 15px;
200196
margin-bottom: 15px;
201197
width: 100%;
202198
font-size: 3em;
203199
border-radius: 8px;
200+
border: 2px solid black;
201+
padding-left: 15px;
204202
}
205203

206204
/*Format button container*/
@@ -237,3 +235,48 @@ footer {
237235

238236

239237

238+
/************Media Query Formatting************/
239+
240+
/**Desktop View**/
241+
@media screen and (min-width: 1300px) {
242+
243+
/*Format form tag*/
244+
form {
245+
width: 45%;
246+
}
247+
248+
249+
/*Format form labels*/
250+
label {
251+
font-size: 2em;
252+
}
253+
254+
/*Format input sizes*/
255+
input[type="text"],
256+
input[type="email"],
257+
input[type="tel"],
258+
select,
259+
textarea {
260+
font-size: 2em;
261+
}
262+
263+
/*Format radio container*/
264+
.radioContainer {
265+
margin-bottom: 15px;
266+
}
267+
/*Format submit button*/
268+
input[type="submit"] {
269+
font-size: 3em;
270+
transition: 0.5s ease-in;/*Create hover transition*/
271+
}
272+
273+
/*Format submit button on hover*/
274+
input[type="submit"]:hover {
275+
background: transparent;
276+
border: 2px solid #dd7973;
277+
color: #dd7973;
278+
box-shadow: 0 0 10px black;
279+
}
280+
}
281+
/************End of Media Query Formatting************/
282+

0 commit comments

Comments
 (0)