-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
247 lines (182 loc) · 5.53 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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
/* ========================================================================= */
/* ================================ GENERAL ================================ */
/* ========================================================================= */
/* set default font to Open Sans, embeded from Google Fonts */
* { font-family: 'Open Sans', sans; }
content a { font-family: inherit; color: #00705e; text-decoration: none}
/* set body to full width and height, instead of content's */
html, body { width: 100%; height: 100%; }
body
{
/* hide overflow-x and overflow-y */
overflow: hidden;
/* remove body margin */
margin: 0;
/* set responsive background image (all browsers), that will appear when the video is not loaded */
background: url(img/background.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
/* Background Video */
#bg_video
{
/* set position to fixed, preventing scroll */
position: fixed;
/* set index to -1, ensuring it'll be behind other elements */
z-index: -1;
/* set default dimensions to auto, allowing it to resize the video if needed */
width: auto;
height: auto;
/* set minimum dimensions, allowing it to occupy full width and height even when the viewport is bigger than video's dimension */
min-height: 100%;
min-width: 100%;
/* set the position to start cropping the video (i think 25% is more appropriate than 50%, thanks to video's content)*/
top: 25%;
left: 25%;
transform: translate(-25%,-25%);
}
/* ======================================================================== */
/* ================================ HEADER ================================ */
/* ======================================================================== */
#header
{
/* set fixed position */
position: fixed;
/* set index to 2, ensuring it'll be in front of other elements */
z-index: 2;
/* set width and height */
width: 100%;
/* apply a 10px space from top */
margin-top: 10px;
/* set a 10px padding */
padding: 10px;
color: white; /* set font color to white */
transition: all 0.75s ease-in;
}
/* set .nav_left and .nav_right widths, and apply a 110px (55*2) space for the logo image */
#header div { width: calc(50% - 55px); }
/* set position to relative and display to inline-block, to prevent line breaking */
.nav_left, .nav_right
{
position: relative;
display: inline-block;
}
/* set font styles for header links */
#header a, #logo
{
position: relative;
display: inline-block;
cursor: pointer;
text-decoration: none; /* removes underline */
outline: none; /* removes outline when clicked */
margin: 5px 40px 5px 0; /* apply top (5px), bottom (5px) and right (40px) padding */
text-transform: uppercase; /* transform text to UPPERCASE */
margin-bottom: -2px;
font-family: 'Orbitron';
font-size: 1.05em;
}
#header a:before {
content: "";
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: #00E2BF;
visibility: hidden;
-webkit-transform: scaleX(0);
transform: scaleX(0);
-webkit-transition: all 0.3s ease-in-out 0s;
transition: all 0.3s ease-in-out 0s;
margin-bottom: -2px;
}
#header a:hover:before {
visibility: visible;
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
#header .nav_left { text-align: right; } /* align .nav_left text to right */
#header .nav_right { text-align: left; } /* align .nav_right to left (confusing, huh?) */
#header #logo
{
vertical-align: middle;
width: 60px;
height: 60px;
fill: white;
transition: all 0.75s ease-in;
}
/* ========================================================================= */
/* ================================ CONTENT ================================ */
/* ========================================================================= */
#content
{
/* set display to inline-block, so we can use margin properties */
display: inline-block;
/* set width to full and height to (full minus header height) */
width: 100%;
height: calc(100% - 70px);
/* start content after header element, preventing overlap */
margin-top: 70px;
/* fix weird bug (???) i think it's caused by 'height: calc()' */
margin-bottom: -5px;
}
#content .index_logo
{
/* set position to relative, allowing using top attribute */
position: relative;
/* centering horizontally */
display: block;
margin: auto;
/* centering vertically */
top: 50%;
transform: translateY(-50%);
/* set width */
width: 50vmax;
max-width: 100%; /* prevents overflow-y in small devices */
}
/* ======================================================================= */
/* ================================ PAGES ================================ */
/* ======================================================================= */
.link_active
{
border-bottom: 2px solid #00E2BF;
}
.page_active
{
top: 0 !important;
}
.whitespace { height: 110px; }
h1, h2, h3 {font-family: 'Orbitron';}
.title
{
font-size: 2em;
font-family: 'Orbitron';
text-transform: uppercase;
}
#page_about, #page_news, #page_contact, #page_projects, #page_schedule, #page_wiki
{
top: 100%;
transition: all 0.75s ease-in;
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
background-color: #ddd;
background: url(img/whiteBackground.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
color: #333;
}
content
{
display: inline-block;
width: calc(100% - 20px);
height: calc(100% - 120px);
padding: 0 10px;
overflow-y: auto;
}
th { font-weight: normal; }