-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
229 lines (225 loc) · 5 KB
/
style.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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
:root{
/* color variables */
--gray: #606976;
--light-gray: #e5e7eb;
--neutral-dark: #1f2937;
--rich-blue: #3382f6;
--rich-blue-dark: #0853c4;
--white-purple: #d2d2df;
--accented-white: #f9faf8;
/* setting the REM */
font-size: 62.5%;
}
body{
font-family: 'roboto', Arial, Helvetica, sans-serif;
box-sizing: border-box !important;
margin: 0px;
}
/* elements and global classes*/
a{text-decoration: none; color: inherit;}
a:hover, a:active{
color: inherit;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: var(--underline-color);
}
a[role="button"]:is(:hover, :active) {
background-color: var(--rich-blue-dark);
border-color: transparent !important;
}
a[role="button"]{
border-radius: 10px;
border: 2px solid transparent;
padding: 1rem 3rem;
}
img{
width: 100%;
height: 100%;
}
p, a, figcaption, cite, footer{font-size: 2rem;}
.center-block{
margin: 0px auto;
width: 85%;
}
.center-text{text-align: center;}
/* banner section */
.hero{
background-color: var(--neutral-dark);
/* gradient by https://mycolor.space */
background-image: linear-gradient(to right bottom, #1f2937, #222e3f, #253346, #29394e, #2c3e56, #2d435b, #2d4760, #2e4c65, #2d5267, #2f5769, #325c69, #37616a);
}
.hero::after{
content: url("./media/wave.svg");
background-color: white;
box-sizing: border-box;
}
/* navbar start */
nav{
display: flex;
justify-content: space-between;
align-items: baseline;
column-gap: 30px;
font-size: 2.5rem;
}
nav h2 {color: var(--accented-white); margin-bottom: 5px;}
nav ul{
--underline-color: var(--white-purple);
color: var(--white-purple);
display: inline-flex;
flex-flow: row wrap;
list-style: none;
column-gap: 40px;
row-gap: 20px;
}
/* menu icon to display navigation links (this shows up on phone sizes) */
a[href="#nav-links"], #nav-links>#close{display: none; border-bottom: none;}
@media (max-width: 800px) {
a[href="#nav-links"]{
display: inline-block;
justify-self: flex-end;
}
a[href="#nav-links"]>svg {
width: 4rem;
height: 4rem;
}
#nav-links {display: none;}
#nav-links:target{
display: block;
position: absolute;
top: 8rem;
right: 7.5%;
margin: 0px;
list-style: "- " inside;
background-color: black;
padding: 1.5rem;
box-shadow: -5px 10px 10px 6px #29293de1;
}
#nav-links>li{
margin: 1.5rem;
}
#nav-links>#close{
color: maroon;
border-bottom: none;
margin-left: 40px;
display: block;
}
#nav-links>#close:is(:hover, :active){color: red;}
}
/* navbar end & header start*/
.hero-main{
display: flex;
flex-wrap: wrap-reverse;
gap: 20px;
}
.hero-main>*{
flex: 1 1 400px;
max-width: 100%;
}
header h1{
color: var(--accented-white);
font-size: 6rem;
}
header p{
color: var(--white-purple);
padding-bottom: 2rem;
}
header a[role="button"]{
color: var(--accented-white);
background-color: var(--rich-blue);
}
.hero-main figure {
margin-top: 10px;
}
.hero-main img{
min-height: 300px;
object-fit: cover;
object-position: left center;
}
/* header end */
/* photo submissions */
.submissions{
position: relative;
top: -10vw;
}
.submissions h2{
color: var(--neutral-dark);
font-size: clamp(5rem, 5vw, 8rem);
}
.submissions .photos{
display: flex;
flex-wrap: wrap;
justify-items: center;
gap: 30px;
}
.submissions .photos>figure{
flex: 1 1 260px;
}
.submissions .photos img{
border: 4px solid var(--rich-blue-dark);
border-radius: 20px;
height: 260px;
object-fit: cover;
}
.submissions .photos figcaption{
text-align: center;
color: var(--gray);
padding: 10px 0px;
}
.submissions .photos figcaption a{
color: var(--rich-blue-dark);
--underline-color: var(--rich-blue-dark);
}
/* photo submissions end */
/* quote start */
blockquote{
background-color: var(--light-gray);
color: var(--neutral-dark);
padding: 4rem 10%;
display: flow-root;
}
blockquote .text{
font-family: Georgia, 'Times New Roman', Times, serif;
font-size: 3rem;
font-weight: 300;
font-style: italic;
}
blockquote cite{
font-weight: 800;
float: right;
}
/* quote end */
/* Call To Action start */
.cta{
width: 70%;
margin: 40px auto;
border-radius: 20px;
padding: 40px;
background-color: var(--rich-blue);
background-image: linear-gradient(to right, #5495f8, #2a7cf7, #5495f8);
color: var(--accented-white);
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 20px;
}
.cta .text{
margin-top: 10px;
flex: 1 1 80ch;
}
.cta h3{
font-size: 3rem;
}
.cta .button-container{
flex: 1 1 auto;
}
.cta .button{
border-color: var(--accented-white);
}
/* Call To Action end */
/* footer */
footer{
padding: 4rem;
text-align: center;
color: var(--white-purple);
background-color: var(--neutral-dark);
}