-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
173 lines (160 loc) · 4.42 KB
/
index.html
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
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Tells browsers not to scale by default so media queries can be applied -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Carbon Brief's Interactive Charts'</title>
<link href="https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700|PT+Serif:400,400italic" rel="stylesheet" type="text/css">
<style type="text/css">
body {
margin: 0;
padding: 0;
background: #EEE;
font: 14px 'PT Sans', sans-serif;
}
h1 {
font-family: "PT Sans Narrow", Arial;
font-weight: normal;
font-size: 40px;
}
header {
margin-left: 20px;
}
#wrap {
overflow: hidden;
margin: 10px;
}
.box {
float: left;
position: relative;
width: 20%;
padding-bottom: 20%;
transition: all .2s ease-in-out;
}
.box:hover { transform: scale(1.1); }
.boxInner {
position: absolute;
left: 10px;
right: 10px;
top: 10px;
bottom: 10px;
overflow: hidden;
}
.boxInner img {
width: 100%;
}
@media only screen and (max-width : 350px) {
/* Smartphone view: 1 tile */
.box {
width: 100%;
padding-bottom: 100%;
}
}
@media only screen and (max-width : 500px) and (min-width : 351px) {
/* Tablet view: 2 tiles */
.box {
width: 50%;
padding-bottom: 50%;
}
}
@media only screen and (max-width : 800px) and (min-width : 501px) {
/* Small desktop / ipad view: 3 tiles */
.box {
width: 33.3%;
padding-bottom: 33.3%;
}
}
@media only screen and (max-width : 1090px) and (min-width : 801px) {
/* Medium desktop: 4 tiles */
.box {
width: 25%;
padding-bottom: 25%;
}
}
</style>
<!-- Enable media queries for old IE -->
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
</head>
<body>
<header>
<h1>A library of Carbon Brief's interactive charts</h1>
</header>
<section>
<div id="wrap">
<div class="box">
<div class="boxInner">
<a href="line-charts.html"><img src="icons/line-chart.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="column-charts.html"><img src="icons/column-chart.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="grouped-column.html"><img src="icons/grouped-column-chart.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="stacked-column.html"><img src="icons/stacked-column-chart.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="stacked-bar.html"><img src="icons/stacked-bar-chart.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="stacked-area.html"><img src="icons/stacked-area-chart.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="line-and-column.html"><img src="icons/line-and-column.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="scatter-and-column.html"><img src="icons/scatter-and-column.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="line-and-stacked-area.html"><img src="icons/line-and-stacked-area.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="small-multiples-column.html"><img src="icons/small-multiples-stacked-column.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="treemaps.html"><img src="icons/treemap.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="maps.html"><img src="icons/map.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="column-drilldown.html"><img src="icons/column-drilldown.jpg" /></a>
</div>
</div>
<div class="box">
<div class="boxInner">
<a href="pie-drilldown.html"><img src="icons/pie-drilldown.jpg" /></a>
</div>
</div>
</div>
</section>
</body>
</html>