forked from makingsnippets/Proportional-Grids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
188 lines (150 loc) · 3.62 KB
/
styles.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
/*
Author : Boon
URL : http://builtbyboon.com
Twitter : http://twitter.com/mattberridge
---------------------------------------*/
body {
margin: 0;
font: 1em/1.5 sans-serif; }
.strip {
background: #891434;
color: #fff;
padding: 1em 5%; }
.strip p {
text-align: left;
font-size: 1.2em; }
.container {
width: 90%;
margin: 2em auto; }
p {
text-align: justify;
margin: 0 0 1.5em 0; }
a {
color: #fff; }
h2 {
margin-top: 0; }
img {
display: block;
max-width: 100%; }
/* -- Begin grids
------------------------------------------------------------- */
/* -- Use this wrapper if you want to divide your columns -- */
.divide-bottom {
border-bottom: 1px solid #ccc;
padding-bottom: 1.5em;
margin-bottom: 1.5em; }
/* -- Use this wrapper if you want to block-out a column with padding
Taken from http://csswizardry.com/2011/10/the-island-object/) -- */
.island {
padding: 1.5em;
background-color: #ececec; }
.island :last-child {
margin-bottom: 0; }
/* -- Setup grids with base class -- */
.grid-wrap {
margin-left: -3em;
overflow: hidden;
clear: both; }
.grid-col {
float: left;
padding-left: 3em;
width: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.large-gutter {
margin-left: -6em; }
.large-gutter .grid-col {
padding-left: 6em; }
.half-gutter {
margin-left: -1.5em; }
.half-gutter .grid-col {
padding-left: 1.5em; }
.no-gutter {
margin-left: 0; }
.no-gutter .grid-col {
padding-left: 0; }
.reset-gutter {
margin-left: -3em; }
.reset-gutter .grid-col {
padding-left: 3em; }
ul.grid-wrap,
ol.grid-wrap {
padding-left: 0;
list-style: none; }
li.grid-col {
margin-left: 0;
margin-bottom: 0; }
.col-full,
.col-set-full .grid-col {
width: 100%; }
.col-one-half,
.col-set-one-half .grid-col {
width: 50%; }
.col-one-third,
.col-set-one-third .grid-col {
width: 33.333%; }
.col-one-quarter,
.col-set-one-quarter .grid-col {
width: 25%; }
.col-two-thirds {
width: 66.666%; }
.col-three-quarters {
width: 75%; }
/* -- Breakpoint (.bp1)
------------------------------------------------------------- */
@media only screen and (min-width: 30em) {
.bp1-col-full,
.bp1-col-set-full .grid-col {
width: 100%; }
.bp1-col-one-half,
.bp1-col-set-one-half .grid-col {
width: 50%; }
.bp1-col-one-third,
.bp1-col-set-one-third .grid-col {
width: 33.333%; }
.bp1-col-one-quarter,
.bp1-col-set-one-quarter .grid-col {
width: 25%; }
.bp1-col-two-thirds {
width: 66.666%; }
.bp1-col-three-quarters {
width: 75%; } }
/* -- Breakpoint 2 (.bp2)
------------------------------------------------------------- */
@media only screen and (min-width: 48em) {
.bp2-col-full,
.bp2-col-set-full .grid-col {
width: 100%; }
.bp2-col-one-half,
.bp2-col-set-one-half .grid-col {
width: 50%; }
.bp2-col-one-third,
.bp2-col-set-one-third .grid-col {
width: 33.333%; }
.bp2-col-one-quarter,
.bp2-col-set-one-quarter .grid-col {
width: 25%; }
.bp2-col-two-thirds {
width: 66.666%; }
.bp2-col-three-quarters {
width: 75%; } }
/* -- Breakpoint 3 (.bp3)
------------------------------------------------------------- */
@media only screen and (min-width: 60em) {
.bp3-col-full,
.bp3-col-set-full .grid-col {
width: 100%; }
.bp3-col-one-half,
.bp3-col-set-one-half .grid-col {
width: 50%; }
.bp3-col-one-third,
.bp3-col-set-one-third .grid-col {
width: 33.333%; }
.bp3-col-one-quarter,
.bp3-col-set-one-quarter .grid-col {
width: 25%; }
.bp3-col-two-thirds {
width: 66.666%; }
.bp3-col-three-quarters {
width: 75%; } }