/
melbourne.css
212 lines (179 loc) · 3.56 KB
/
melbourne.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
/*Reset default browser CSS. Taken from oxfordstrat.com, in turn based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th {
background: transparent;
border: 0;
margin: 0;
padding: 0;
vertical-align: baseline;
}
body {
line-height: 1;
}
h1, h2, h3, h4, h5, h6 {
clear: both;
font-weight: normal;
}
ol, ul {
list-style: none;
}
blockquote {
quotes: none;
}
blockquote:before, blockquote:after {
content: '';
content: none;
}
del {
text-decoration: line-through;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}
a img {
border: none;
}
html {
height: 100%;
margin-bottom: 1px;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll!important;
}
/*D.A.: End stolen browser reset code*/
a {
text-decoration: none;
}
#masthead {
background-image: url("https://upload.wikimedia.org/wikipedia/commons/7/77/Melbourne_Night_Panorama.jpg");
background-repeat: no-repeat;
background-size: cover;
font-family: "Patua One", cursive;
}
h1 {
text-align: center;
/*font-size: 1.8em;*/
font-size: 7vw;
color: white;
text-shadow: 2px 2px 4px #000;
padding: 1rem;
}
#mainMenu ul {
background-color: #123456;
display: none;
}
#navIcon {
display: block;
background-color: #123456;
}
#navIcon a, #mainMenu a {
display: block;
padding: 1rem;
color: #fff;
text-shadow: 1px 1px 2px #000;
}
#mainMenu ul ul li {
background-color: #122256;
}
#noscript {
background-color: yellow;
font-weight: bold;
text-align: center;
padding: 0.5rem;
max-width: 100%;
}
#mainContent {
max-width: 500px;
padding: 0 3%;
margin: 1em auto;
}
#mainContent p {
text-align: justify;
}
.imageList {
margin: 1em 0;
}
.imageList li {
margin: 1em 0;
}
.imageList img {
max-width: 100%;
}
footer {
clear: both;
background-color: #123456;
color: white;
text-shadow: 1px 1px 2px #000;
}
footer p {
text-align: center;
padding: 1em;
}
/*************************************************************************
Responsive CSS
*************************************************************************/
/*Small tablets*/
@media screen and (min-width: 550px) {
#masthead h1 {
/*font-size: 3.5em;*/
}
}
/*larger tablets*/
@media screen and (min-width: 800px) {
/*Masthead and menu sections*/
#masthead h1 {
font-size: 6vw;
}
#navIcon {
display: none;
}
#mainMenu ul {
display: flex;
display: -webkit-flex;
justify-content: center;
position: relative;
}
#mainMenu ul ul {
display: none;
}
#mainMenu ul ul li {
background-color: #123456;
margin: 0;
}
/* :active as well?*/
#mainMenu ul li:hover {
background-color: #122256;
}
#mainMenu ul li:hover > ul {
display: block;
position: absolute;
}
#mainMenu a {
display: block;
padding: 1rem;
white-space: nowrap;
}
/*End masthead and menu*/
/*Main content styling*/
#mainContent {
max-width: 550px;
}
}
/*Full desktop resolutions*/
@media screen and (min-width: 1024px) {
#masthead h1 {
/*font-size: 6em;*/
padding: 4rem 0;
}
#mainMenu ul li {
margin: 0 2em;
}
}