-
Notifications
You must be signed in to change notification settings - Fork 84
/
style.css
181 lines (150 loc) · 3.2 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
/*------------------------------------------------------------
Style.css
Created by: Dave Rupert
Contact: http://github.com/davatron5000/foldy960
Copyright 2012
License: WTFPL + "Not going to maintain this because
the rent is too damn high licence."
--------------------------------------------------------------*/
/* Responsive Resets
-------------------------------------------------------------- */
@-o-viewport {
width: device-width;
}
@-ms-viewport {
width: device-width;
}
@viewport {
width: device-width;
}
html {
overflow-y: auto;
}
img,
audio,
video,
canvas {
max-width: 100%;
}
/* Grid > 6 Column Mobile First
-------------------------------------------------------------- */
.container {
/*
The `max-width` property is the width governer. I dare you to experiment
with setting this larger, something like 1280px.
*/
max-width: 1280px;
width:92%;
margin:0px auto;
position: relative;
}
.row {
clear: both;
}
@media screen and (min-width: 480px) {
.container {
width: 98%;
}
.grid-1,
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.grid-6,
.grid-half,
.grid-full,
.grid-unit {
float: left;
width:96.969696969697%;
margin:0 1.515151515152% 1em;
}
.gallery .grid-unit,
.grid-half {
width:46.969696969697%;
margin: 0 1.515151515152% 1em;
}
.grid-flow-opposite{
float:right
}
}
@media screen and (min-width: 640px) {
.grid-1 { width: 13.636363636364%; }
.grid-2 { width: 30.30303030303%; }
.grid-3,
.grid-half { width: 46.969696969697%; }
.grid-4 { width: 63.636363636364%; }
.grid-5 { width: 80.30303030303%; }
.grid-6,
.grid-full { width: 96.969696969697%; }
.gallery .grid-unit {
width: 30.30303030303%;
}
.content-pad-right {
padding-right: 4%; /* Use (or don't) as necessary. */
}
.content-pad-left {
padding-left: 4%;
}
}
/* Micro Clearfix - http://nicolasgallagher.com/micro-clearfix-hack/
For best results, use your favorite clearfix here.
-------------------------------------------------------------- */
.cf:before, .cf:after { content:""; display:table; }
.cf:after { clear:both; }
.cf { zoom:1; } /* For IE 6/7 (trigger hasLayout) */
/* Layout
-------------------------------------------------------------- */
body {
font: 100%/1.5 sans-serif;
}
section {
margin-bottom: 2em;
}
footer {
font-size: 0.9em;
border-top: 1px solid #ccc;
padding: 0.5em 0 2.5em;
}
/* Typography
-------------------------------------------------------------- */
.heading {
font-size: 3em;
margin: 0;
}
.sub-heading {
font-size: 2em;
margin-bottom: 0.5em;
}
a {
color: #0066cc;
}
a:focus,
a:hover {
color: #003399;
}
/* Elements
-------------------------------------------------------------- */
figure {
margin: 0;
background: #f8f8f8;
}
figcaption {
padding: 0.5em 1em 1em;
font-size: 0.875em;
}
code {
padding: 0.5em;
background: #efefef;
}
/* Helpers
-------------------------------------------------------------- */
.show-grid div[class*='grid-'] {
background-color: #eee;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: block;
padding: 0.5em 1em;
margin-bottom: 1em;
text-align: center;
}