-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.css
More file actions
59 lines (52 loc) · 1.45 KB
/
Copy pathsite.css
File metadata and controls
59 lines (52 loc) · 1.45 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
body {
padding-top: 50px; /* Need to reserve space or the nav bar will always cover the top of the page. */
}
/*
When navigating to a section, reserve space for the fixed header.
http://stackoverflow.com/questions/10732690/offsetting-an-html-anchor-to-adjust-for-fixed-header
*/
a.navanchor {
display: block;
position: relative;
top: -60px;
visibility: hidden;
}
#banner-img {
/* Default height for extra small devices */
height: 100px;
width: 100%;
/* Default non-retina image for lower DPI displays */
background-image: url("banner_img_1x.jpg");
background-repeat: no-repeat;
background-size: cover;
}
/*
Switch to retina image for higher DPI displays
Inspired by http://getbootstrap.com/css/#less-mixins-retina-images
*/
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
#banner-img {
background-image: url("banner_img_2x.jpg");
}
}
/* Adjust height for different devices */
@media (min-width: 768px) {
#banner-img {
height: 130px;
}
}
@media (min-width: 992px) {
#banner-img {
height: 160px;
}
}
@media (min-width: 1200px) {
#banner-img {
height: 200px;
}
}