-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTYLES.css
More file actions
197 lines (197 loc) · 4.18 KB
/
STYLES.css
File metadata and controls
197 lines (197 loc) · 4.18 KB
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
186
187
188
189
190
191
192
193
194
195
196
197
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
body, header h1, header h2, article, article section, footer, nav{
width: 100%;
margin: auto;
padding: 0;
font-family: "Segoe UI", roboto, sans-serif;
color: #232323;
text-align: center;
font-size: 1rem;
}
a{
text-decoration: none;
}
header h1, header h2, article section, section div img, section div p, footer, nav ul li, article form{
box-sizing: border-box;
}
header h1, article section, footer, nav{
box-shadow: 0 0 4px #232323;
}
b{
font-family: pacifico, cursive;
font-weight: lighter;
font-size: 1.5rem;
}
header h1{
padding: 0.5em !important;
color: white;
background-color: #232323;
font-size: 1.5em;
font-weight: 300;
border-radius: 0 0 1em 1em;
position: fixed;
top: 0;
transform: translateY(-100%);
animation: transform 15s 2.5s forwards ease;
}
header h2{
padding: 0.5em !important;
font-size: 5em;
}
header h2 span:nth-child(2){
color: #407BFF;
font-family: pacifico, cursive;
}
nav{
background-color: #232323;
border-radius: 1em;
margin: 2em auto;
}
nav ul{
padding: 0;
margin: 0;
list-style: none;
display: flex;
flex-flow: column wrap;
}
nav ul li{
flex: 1 1 calc(100% / 7);
padding: 1em;
border-bottom: 1.5px solid #2c2c2c;
}
nav ul li:last-child{
border: none !important;
}
nav ul li a{
text-align: center;
}
nav li:nth-child(odd) a{
color: #FFC100;
}
nav li:nth-child(even) a{
color: #407BFF;
}
article, nav{
width: 90%;
}
article section{
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
margin: 2em auto;
border-radius: 1em;
padding: 1em;
}
article section img{
flex: 1 1 45%;
min-width: 280px;
max-width: 560px;
}
article section p{
flex: 1 1 45%;
line-height: 1.5em;
font-size: 1.2rem;
padding: 1em;
}
article section:nth-child(even) p span, article section:nth-child(even) p span a{
color: #407BFF;
font-weight: bold;
}
article section:nth-child(odd) p span, article section:nth-child(odd) p span a{
color: #FFC100;
font-weight: bold;
}
article form{
box-shadow: 0 0 4px #232323;
border-radius: 1em;
padding: 1em;
margin: 2em auto;
}
article form *{
border-radius: 1rem;
border: none;
width: 100%;
box-sizing: border-box;
margin: 0.5em auto;
}
article form legend, article form input[type="submit"]{
outline: none;
background-color: #232323;
color: white;
font-family: 'Segoe UI', sans-serif;
font-size: 1rem;
padding: 1em 0;
border-radius: 1rem;
}
article form input, form textarea{
border-radius: 0.75em;
padding: 0.75em;
font-size: 1rem;
font-family: 'Segoe UI', sans-serif;
box-shadow: 0 0 2px #232323;
}
article form textarea{
resize: vertical;
}
article form input:focus, article form textarea:focus{
outline: none;
}
footer{
border-radius: 1em 1em 0 0 ;
padding: 1em !important;
background-color: #232323;
color: white;
}
footer p{
padding: 1em;
}
footer p:first-child{
margin: 1em 0 5em 0;
}
footer span{
font-family: pacifico, cursive;
font-size: 1.5rem;
}
footer span:nth-child(1){
color: #FFC100;
}
footer span:nth-child(3){
color: #407BFF;
}
footer p a{
color: #407BFF;
font-family: pacifico, cursive;
}
@keyframes transform {
0%, 100%{
transform: translateY(-100%);
box-shadow: 0 0 0 #232323;
}
25%, 75%{
transform: translateY(0);
box-shadow: 0 0 4px #232323;
}
}
@media all and (min-width: 600px){
section div:nth-child(even) p{
order: -1;
}
nav ul{
flex-flow: row wrap;
}
nav ul li{
border: none !important;
}
}
@media all and (min-width: 750px){
article form div.container{
display: flex;
justify-content: center;
align-items: center;
}
article form div.content{
flex: 1 1 50%;
margin: 0.5em;
}
}