-
Notifications
You must be signed in to change notification settings - Fork 1
/
voltran.css
185 lines (185 loc) · 3.1 KB
/
voltran.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
body, ul, li, h1, h2, a{
margin: 0;
padding: 0;
font-family: tahoma;
}
p{
font-size: 18px;
}
header{
background-color: #F63232;
padding: 20px 0;
text-align: center;
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 1;
}
header h1{
color: white;
border: 8px solid white;
display: inline-block;
padding: 6px 12px;
border-radius: 36px;
}
.banner{
position: relative;
}
.banner img{
max-width: 100%;
}
nav{
background: #F4F4F4;
padding: 20px;
position: sticky;
top: 106px;
z-index: 1;
}
nav ul{
white-space: nowrap;
max-width: 1200px;
margin: 0 auto;
text-align: center;
}
nav li{
width: 25%;
display: inline-block;
font-size: 24px;
}
nav li a{
text-decoration: none;
color: #4B4B4B;
}
nav li a:hover{
text-decoration: underline;
}
nav li a.join{
color: #F63232;
}
main{
max-width: 100%;
width: 1200px;
margin: 80px auto;
padding: 0 40px;
box-sizing: border-box;
}
article h2{
color: #F63232;
font-size: 48px;
}
article p{
line-height: 2em;
color: #4B4B4B;
}
article p::first-line{
font-weight: bold;
font-size: 1.2em;
}
.images{
text-align: center;
margin: 80px 0;
white-space: nowrap;
}
.images li{
display: inline-block;
list-style-type: none;
width: 40%;
margin: 20px 5%;
position: relative;
}
.images li:hover{
top: -4px;
}
.images li img{
max-width: 100%;
}
section.join{
background: #F4F4F4;
text-align: center;
padding: 60px 20px;
color: #4B4B4B;
}
section.join h2{
font-size: 36px;
}
form input{
margin: 20px 0;
padding: 10px 20px;
font-size: 24px;
border-radius: 28px;
border: 4px solid white;
}
form input:focus{
border: 4px dashed #4B4B4B;
outline: none;
}
form input:valid{
border: 4px solid #71D300;
}
footer{
background: #F63232;
color: white;
padding: 10px;
text-align: center;
}
/* responsive styles */
@media screen and (max-width: 1400px){
.banner .welcome{
font-size: 40px;
}
}
@media screen and (max-width: 960px){
.banner .welcome{
font-size: 28px;
}
nav li{
font-size: 18px;
}
}
@media screen and (max-width: 700px){
.banner .welcome{
font-size: 20px;
position: relative;
text-align: center;
}
.banner .welcome br{
display: none;
}
.banner .welcome span{
font-size: 1em;
}
nav li{
font-size: 18px;
}
.images li{
width: 100%;
display: block;
margin: 20px auto;
}
}
@media screen and (max-width: 560px){
.banner .welcome{
font-size: 20px;
position: relative;
text-align: center;
}
.banner .welcome br{
display: none;
}
.banner .welcome span{
font-size: 1em;
}
nav li{
display: block;
width: 100%;
margin: 12px 0;
}
article h2{
font-size: 36px;
}
header, nav{
position: relative;
top: 0;
}
}