-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact_us.css
91 lines (90 loc) · 1.73 KB
/
contact_us.css
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#contact-form {
max-width: 1208px;
max-width: 75.5rem;
margin: 0 auto;
}
#contact, label, input[name="submit"] {
position: relative;
}
label > span, input, textarea, button {
box-sizing: border-box;
}
label {
display: block;
}
label > span {
display: none;
}
input, textarea, button {
width: 100%;
padding: 0.5em;
border: none;
font: 300 100%/1.2 Ubuntu, sans-serif;
}
input[type="text"], input[type="email"], textarea {
margin: 0 0 1em;
border: 1px solid #ccc;
outline: none;
}
input.invalid, textarea.invalid {
border-color: #d5144d;
}
textarea {
height: 6em;
}
input[type="submit"], button {
background: #a7cd80;
color: #333;
}
input[type="submit"]:hover, button:hover {
background: #91b36f;
}
@media screen and (min-width: 30em) {
#contact-form h2 {
margin-left: 26.3736%;
font-size: 2em;
line-height: 1.5;
}
label > span {
vertical-align: top;
display: inline-block;
width: 26.3736%;
padding: 0.5em;
border: 1px solid transparent;
text-align: right;
}
input, textarea, button {
width: 73.6263%;
line-height: 1.5;
}
textarea {
height: 10em;
}
input[type="submit"], button {
margin-left: 26.3736%;
}
}
@media screen and (min-width: 48em) {
#contact-form {
text-align: justify;
line-height: 0;
}
#contact-form:after {
content: '';
display: inline-block;
width: 100%;
}
#contact-form h2 {
margin-left: 17.2661%;
}
#contact-form form, #contact-form aside {
vertical-align: top;
display: inline-block;
width: 65.4676%;
text-align: left;
line-height: 1.5;
}
#contact-form aside {
width: 30.9353%;
}
}