atlas_assets 0.0.17 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/docs/_layouts/default.html +14 -0
- data/docs/_posts/2013-05-17-grid.md +0 -18
- data/lib/assets/stylesheets/atlas_assets/_boxes.scss +21 -0
- data/lib/assets/stylesheets/{buttons.css.scss → atlas_assets/_buttons.scss} +8 -7
- data/lib/assets/stylesheets/atlas_assets/_code.scss +7 -0
- data/lib/assets/stylesheets/{flash.css.scss → atlas_assets/_flash.scss} +10 -6
- data/lib/assets/stylesheets/{fonts.css.scss → atlas_assets/_fonts.scss} +8 -12
- data/lib/assets/stylesheets/atlas_assets/_forms.scss +546 -0
- data/lib/assets/stylesheets/atlas_assets/_grid.scss +30 -0
- data/lib/assets/stylesheets/{icons.css.scss → atlas_assets/_icons.scss} +0 -0
- data/lib/assets/stylesheets/{lists.css.scss → atlas_assets/_lists.scss} +6 -14
- data/lib/assets/stylesheets/atlas_assets/_mixins.scss +356 -0
- data/lib/assets/stylesheets/{navbar.css.scss → atlas_assets/_navbar.scss} +8 -8
- data/lib/assets/stylesheets/atlas_assets/_reset.scss +213 -0
- data/lib/assets/stylesheets/atlas_assets/_responsive-767.scss +74 -0
- data/lib/assets/stylesheets/atlas_assets/_responsive-768-979.scss +5 -0
- data/lib/assets/stylesheets/atlas_assets/_responsive-utilities.scss +49 -0
- data/lib/assets/stylesheets/{helpers.css.scss → atlas_assets/_utilities.scss} +52 -10
- data/lib/assets/stylesheets/atlas_assets/_variables.scss +70 -0
- data/lib/assets/stylesheets/atlas_assets.scss +18 -0
- data/lib/atlas_assets/version.rb +1 -1
- metadata +19 -13
- data/lib/assets/stylesheets/atlas_assets.css +0 -11
- data/lib/assets/stylesheets/boxes.css.scss +0 -23
- data/lib/assets/stylesheets/forms.css.scss +0 -861
- data/lib/assets/stylesheets/grid.css.scss +0 -762
- data/lib/assets/stylesheets/pre.css.scss +0 -7
@@ -0,0 +1,356 @@
|
|
1
|
+
/* Fonts
|
2
|
+
------------------------------------------------- */
|
3
|
+
|
4
|
+
@mixin menu-font() {
|
5
|
+
font-family: $menuFontFamily;
|
6
|
+
font-weight: 700;
|
7
|
+
font-size: 15px;
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin smooth() {
|
11
|
+
-webkit-font-smoothing: antialiased;
|
12
|
+
}
|
13
|
+
|
14
|
+
/* Helpers
|
15
|
+
------------------------------------------------- */
|
16
|
+
|
17
|
+
@mixin clearfix {
|
18
|
+
*zoom: 1;
|
19
|
+
&:before,
|
20
|
+
&:after {
|
21
|
+
display: table;
|
22
|
+
content: "";
|
23
|
+
// Fixes Opera/contenteditable bug:
|
24
|
+
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
|
25
|
+
line-height: 0;
|
26
|
+
}
|
27
|
+
&:after {
|
28
|
+
clear: both;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin size($height, $width) {
|
33
|
+
width: $width;
|
34
|
+
height: $height;
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin square($size) {
|
38
|
+
@include size($size, $size);
|
39
|
+
}
|
40
|
+
|
41
|
+
@mixin placeholder($color: $placeholderColor) {
|
42
|
+
&:-moz-placeholder {
|
43
|
+
color: $color;
|
44
|
+
}
|
45
|
+
&:-ms-input-placeholder {
|
46
|
+
color: $color;
|
47
|
+
}
|
48
|
+
&::-webkit-input-placeholder {
|
49
|
+
color: $color;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
@mixin hide-text {
|
54
|
+
font: 0/0 a;
|
55
|
+
color: transparent;
|
56
|
+
text-shadow: none;
|
57
|
+
background-color: transparent;
|
58
|
+
border: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
@mixin input-block-level {
|
62
|
+
display: block;
|
63
|
+
width: 100%;
|
64
|
+
min-height: $inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
|
65
|
+
@include box-sizing(border-box); // Makes inputs behave like true block-level elements
|
66
|
+
}
|
67
|
+
|
68
|
+
@mixin box-sizing($boxmodel) {
|
69
|
+
-webkit-box-sizing: $boxmodel;
|
70
|
+
-moz-box-sizing: $boxmodel;
|
71
|
+
box-sizing: $boxmodel;
|
72
|
+
}
|
73
|
+
|
74
|
+
@mixin resizable($direction) {
|
75
|
+
resize: $direction; // Options: horizontal, vertical, both
|
76
|
+
overflow: auto; // Safari fix
|
77
|
+
}
|
78
|
+
|
79
|
+
@mixin ie7-inline-block() {
|
80
|
+
*display: inline; /* IE7 inline-block hack */
|
81
|
+
*zoom: 1;
|
82
|
+
}
|
83
|
+
|
84
|
+
/* Border Radius
|
85
|
+
------------------------------------------------- */
|
86
|
+
|
87
|
+
// all
|
88
|
+
|
89
|
+
@mixin border-radius($radius) {
|
90
|
+
-webkit-border-radius: $radius;
|
91
|
+
-moz-border-radius: $radius;
|
92
|
+
border-radius: $radius;
|
93
|
+
}
|
94
|
+
|
95
|
+
// corner
|
96
|
+
|
97
|
+
@mixin border-top-left-radius($radius) {
|
98
|
+
-webkit-border-top-left-radius: $radius;
|
99
|
+
-moz-border-radius-topleft: $radius;
|
100
|
+
border-top-left-radius: $radius;
|
101
|
+
}
|
102
|
+
|
103
|
+
@mixin border-top-right-radius($radius) {
|
104
|
+
-webkit-border-top-right-radius: $radius;
|
105
|
+
-moz-border-radius-topright: $radius;
|
106
|
+
border-top-right-radius: $radius;
|
107
|
+
}
|
108
|
+
|
109
|
+
@mixin border-bottom-right-radius($radius) {
|
110
|
+
-webkit-border-bottom-right-radius: $radius;
|
111
|
+
-moz-border-radius-bottomright: $radius;
|
112
|
+
border-bottom-right-radius: $radius;
|
113
|
+
}
|
114
|
+
|
115
|
+
@mixin border-bottom-left-radius($radius) {
|
116
|
+
-webkit-border-bottom-left-radius: $radius;
|
117
|
+
-moz-border-radius-bottomleft: $radius;
|
118
|
+
border-bottom-left-radius: $radius;
|
119
|
+
}
|
120
|
+
|
121
|
+
// side
|
122
|
+
|
123
|
+
@mixin border-top-radius($radius) {
|
124
|
+
@include border-top-right-radius($radius);
|
125
|
+
@include border-top-left-radius($radius);
|
126
|
+
}
|
127
|
+
|
128
|
+
@mixin border-right-radius($radius) {
|
129
|
+
@include border-top-right-radius($radius);
|
130
|
+
@include border-bottom-right-radius($radius);
|
131
|
+
}
|
132
|
+
|
133
|
+
@mixin border-bottom-radius($radius) {
|
134
|
+
@include border-bottom-right-radius($radius);
|
135
|
+
@include border-bottom-left-radius($radius);
|
136
|
+
}
|
137
|
+
|
138
|
+
@mixin border-left-radius($radius) {
|
139
|
+
@include border-top-left-radius($radius);
|
140
|
+
@include border-bottom-left-radius($radius);
|
141
|
+
}
|
142
|
+
|
143
|
+
/* Transition
|
144
|
+
------------------------------------------------- */
|
145
|
+
|
146
|
+
@mixin transition($transition...) {
|
147
|
+
-webkit-transition: $transition;
|
148
|
+
-moz-transition: $transition;
|
149
|
+
-o-transition: $transition;
|
150
|
+
transition: $transition;
|
151
|
+
}
|
152
|
+
@mixin transition-delay($transition-delay) {
|
153
|
+
-webkit-transition-delay: $transition-delay;
|
154
|
+
-moz-transition-delay: $transition-delay;
|
155
|
+
-o-transition-delay: $transition-delay;
|
156
|
+
transition-delay: $transition-delay;
|
157
|
+
}
|
158
|
+
@mixin transition-duration($transition-duration) {
|
159
|
+
-webkit-transition-duration: $transition-duration;
|
160
|
+
-moz-transition-duration: $transition-duration;
|
161
|
+
-o-transition-duration: $transition-duration;
|
162
|
+
transition-duration: $transition-duration;
|
163
|
+
}
|
164
|
+
|
165
|
+
/* Transformation
|
166
|
+
------------------------------------------------- */
|
167
|
+
|
168
|
+
@mixin rotate($degrees) {
|
169
|
+
-webkit-transform: rotate($degrees);
|
170
|
+
-moz-transform: rotate($degrees);
|
171
|
+
-ms-transform: rotate($degrees);
|
172
|
+
-o-transform: rotate($degrees);
|
173
|
+
transform: rotate($degrees);
|
174
|
+
}
|
175
|
+
|
176
|
+
@mixin scale($ratio) {
|
177
|
+
-webkit-transform: scale($ratio);
|
178
|
+
-moz-transform: scale($ratio);
|
179
|
+
-ms-transform: scale($ratio);
|
180
|
+
-o-transform: scale($ratio);
|
181
|
+
transform: scale($ratio);
|
182
|
+
}
|
183
|
+
|
184
|
+
@mixin translate($x, $y) {
|
185
|
+
-webkit-transform: translate($x, $y);
|
186
|
+
-moz-transform: translate($x, $y);
|
187
|
+
-ms-transform: translate($x, $y);
|
188
|
+
-o-transform: translate($x, $y);
|
189
|
+
transform: translate($x, $y);
|
190
|
+
}
|
191
|
+
|
192
|
+
@mixin skew($x, $y) {
|
193
|
+
-webkit-transform: skew($x, $y);
|
194
|
+
-moz-transform: skew($x, $y);
|
195
|
+
-ms-transform: skewX($x) skewY($y); // See https://github.com/twitter/bootstrap/issues/4885
|
196
|
+
-o-transform: skew($x, $y);
|
197
|
+
transform: skew($x, $y);
|
198
|
+
-webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319
|
199
|
+
}
|
200
|
+
|
201
|
+
/* Grid
|
202
|
+
------------------------------------------------- */
|
203
|
+
|
204
|
+
@mixin container-fixed() {
|
205
|
+
margin-right: auto;
|
206
|
+
margin-left: auto;
|
207
|
+
@include clearfix();
|
208
|
+
}
|
209
|
+
|
210
|
+
@mixin makeRow() {
|
211
|
+
margin-left: $gridGutterWidth * -1;
|
212
|
+
@include clearfix();
|
213
|
+
}
|
214
|
+
|
215
|
+
@mixin makeColumn($columns: 1, $offset: 0) {
|
216
|
+
float: left;
|
217
|
+
margin-left: ($gridColumnWidth * $offset) + ($gridGutterWidth * ($offset - 1)) + ($gridGutterWidth * 2);
|
218
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
219
|
+
}
|
220
|
+
|
221
|
+
@mixin grid-core($gridColumnWidth, $gridGutterWidth) {
|
222
|
+
.row {
|
223
|
+
margin-left: $gridGutterWidth * -1;
|
224
|
+
@include clearfix();
|
225
|
+
}
|
226
|
+
|
227
|
+
[class*="span"] {
|
228
|
+
float: left;
|
229
|
+
min-height: 1px; // prevent collapsing columns
|
230
|
+
margin-left: $gridGutterWidth;
|
231
|
+
}
|
232
|
+
|
233
|
+
// Set the container width, and override it for fixed navbars in media queries
|
234
|
+
.container,
|
235
|
+
.navbar-static-top .container,
|
236
|
+
.navbar-fixed-top .container,
|
237
|
+
.navbar-fixed-bottom .container {
|
238
|
+
@include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
239
|
+
}
|
240
|
+
|
241
|
+
// generate .spanX and .offsetX
|
242
|
+
@include grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
243
|
+
@include grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
244
|
+
}
|
245
|
+
|
246
|
+
@mixin grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
247
|
+
@while $gridColumns > 0 {
|
248
|
+
.span#{$gridColumns} { @include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth)}
|
249
|
+
$gridColumns: $gridColumns - 1;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
@mixin grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
254
|
+
@while $gridColumns > 0 {
|
255
|
+
.offset#{$gridColumns} { @include grid-core-offset($gridColumns, $gridColumnWidth, $gridGutterWidth); }
|
256
|
+
$gridColumns: $gridColumns - 1;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
|
260
|
+
@mixin grid-core-span($columns, $gridColumnWidth, $gridGutterWidth) {
|
261
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
262
|
+
}
|
263
|
+
|
264
|
+
@mixin grid-core-offset($columns, $gridColumnWidth, $gridGutterWidth) {
|
265
|
+
margin-left: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns + 1));
|
266
|
+
}
|
267
|
+
|
268
|
+
|
269
|
+
/* Fluid Grid
|
270
|
+
------------------------------------------------- */
|
271
|
+
|
272
|
+
@mixin grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth) {
|
273
|
+
.row-fluid {
|
274
|
+
width: 100%;
|
275
|
+
@include clearfix();
|
276
|
+
[class*="span"] {
|
277
|
+
@include input-block-level();
|
278
|
+
float: left;
|
279
|
+
margin-left: $fluidGridGutterWidth;
|
280
|
+
*margin-left: $fluidGridGutterWidth - (.5 / $gridRowWidth * 100px * 1%);
|
281
|
+
}
|
282
|
+
[class*="span"]:first-child {
|
283
|
+
margin-left: 0;
|
284
|
+
}
|
285
|
+
|
286
|
+
// Space grid-sized controls properly if multiple per line
|
287
|
+
.controls-row [class*="span"] + [class*="span"] {
|
288
|
+
margin-left: $fluidGridGutterWidth;
|
289
|
+
}
|
290
|
+
|
291
|
+
// generate .spanX and .offsetX
|
292
|
+
@include grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
|
293
|
+
@include grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
@mixin grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
298
|
+
@while $gridColumns > 0 {
|
299
|
+
.span#{$gridColumns} { @include grid-fluid-span($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
|
300
|
+
$gridColumns: $gridColumns - 1;
|
301
|
+
}
|
302
|
+
}
|
303
|
+
|
304
|
+
@mixin grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
305
|
+
@while $gridColumns > 0 {
|
306
|
+
.offset#{$gridColumns} { @include grid-fluid-offset($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
|
307
|
+
.offset#{$gridColumns}:first-child { @include grid-fluid-offset-first-child($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
|
308
|
+
$gridColumns: $gridColumns - 1;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
@mixin grid-fluid-span($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
313
|
+
width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1));
|
314
|
+
*width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%);
|
315
|
+
}
|
316
|
+
|
317
|
+
@mixin grid-fluid-offset($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
318
|
+
margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) + ($fluidGridGutterWidth * 2);
|
319
|
+
*margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%) + ($fluidGridGutterWidth * 2) - (.5 / $gridRowWidth * 100px * 1%);
|
320
|
+
}
|
321
|
+
|
322
|
+
@mixin grid-fluid-offset-first-child($columns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
323
|
+
margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) + ($fluidGridGutterWidth);
|
324
|
+
*margin-left: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1)) - (.5 / $gridRowWidth * 100px * 1%) + $fluidGridGutterWidth - (.5 / $gridRowWidth * 100px * 1%);
|
325
|
+
}
|
326
|
+
|
327
|
+
@mixin grid-input($gridColumnWidth, $gridGutterWidth) {
|
328
|
+
input,
|
329
|
+
textarea,
|
330
|
+
.uneditable-input {
|
331
|
+
margin-left: 0; // override margin-left from core grid system
|
332
|
+
}
|
333
|
+
|
334
|
+
// Space grid-sized controls properly if multiple per line
|
335
|
+
.controls-row [class*="span"] + [class*="span"] {
|
336
|
+
margin-left: $gridGutterWidth;
|
337
|
+
}
|
338
|
+
|
339
|
+
// generate .spanX
|
340
|
+
@include grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
341
|
+
}
|
342
|
+
|
343
|
+
@mixin grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
344
|
+
@while $gridColumns > 0 {
|
345
|
+
input.span#{$gridColumns},
|
346
|
+
textarea.span#{$gridColumns},
|
347
|
+
.uneditable-input.span#{$gridColumns} {
|
348
|
+
@include grid-input-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
349
|
+
}
|
350
|
+
$gridColumns: $gridColumns - 1;
|
351
|
+
}
|
352
|
+
}
|
353
|
+
|
354
|
+
@mixin grid-input-span($columns, $gridColumnWidth, $gridGutterWidth) {
|
355
|
+
width: (($gridColumnWidth) * $columns) + ($gridGutterWidth * ($columns - 1)) - 14;
|
356
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.navbar {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
background-color: $red;
|
3
|
+
color: $white;
|
4
|
+
font-family: Lato, Helvetica, sans-serif;
|
5
|
+
font-weight: 700;
|
6
|
+
font-size: 15px;
|
7
|
+
-webkit-font-smoothing: antialiased;
|
8
8
|
}
|
9
9
|
|
10
10
|
.navbar:after {
|
@@ -12,8 +12,8 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
.navbar a {
|
15
|
-
|
16
|
-
|
15
|
+
color: #FFF;
|
16
|
+
text-decoration: none;
|
17
17
|
}
|
18
18
|
|
19
19
|
.navbar-inner:before,
|
@@ -0,0 +1,213 @@
|
|
1
|
+
//
|
2
|
+
// Reset CSS
|
3
|
+
// Adapted from http://github.com/necolas/normalize.css
|
4
|
+
// --------------------------------------------------
|
5
|
+
|
6
|
+
|
7
|
+
// Display in IE6-9 and FF3
|
8
|
+
// -------------------------
|
9
|
+
|
10
|
+
article,
|
11
|
+
aside,
|
12
|
+
details,
|
13
|
+
figcaption,
|
14
|
+
figure,
|
15
|
+
footer,
|
16
|
+
header,
|
17
|
+
hgroup,
|
18
|
+
nav,
|
19
|
+
section {
|
20
|
+
display: block;
|
21
|
+
}
|
22
|
+
|
23
|
+
// Display block in IE6-9 and FF3
|
24
|
+
// -------------------------
|
25
|
+
|
26
|
+
audio,
|
27
|
+
canvas,
|
28
|
+
video {
|
29
|
+
display: inline-block;
|
30
|
+
*display: inline;
|
31
|
+
*zoom: 1;
|
32
|
+
}
|
33
|
+
|
34
|
+
// Prevents modern browsers from displaying 'audio' without controls
|
35
|
+
// -------------------------
|
36
|
+
|
37
|
+
audio:not([controls]) {
|
38
|
+
display: none;
|
39
|
+
}
|
40
|
+
|
41
|
+
// Base settings
|
42
|
+
// -------------------------
|
43
|
+
|
44
|
+
html {
|
45
|
+
font-size: 100%;
|
46
|
+
-webkit-text-size-adjust: 100%;
|
47
|
+
-ms-text-size-adjust: 100%;
|
48
|
+
}
|
49
|
+
|
50
|
+
// Hover & Active
|
51
|
+
a:hover,
|
52
|
+
a:active {
|
53
|
+
outline: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
// Prevents sub and sup affecting line-height in all browsers
|
57
|
+
// -------------------------
|
58
|
+
|
59
|
+
sub,
|
60
|
+
sup {
|
61
|
+
position: relative;
|
62
|
+
font-size: 75%;
|
63
|
+
line-height: 0;
|
64
|
+
vertical-align: baseline;
|
65
|
+
}
|
66
|
+
sup {
|
67
|
+
top: -0.5em;
|
68
|
+
}
|
69
|
+
sub {
|
70
|
+
bottom: -0.25em;
|
71
|
+
}
|
72
|
+
|
73
|
+
// Img border in a's and image quality
|
74
|
+
// -------------------------
|
75
|
+
|
76
|
+
img {
|
77
|
+
/* Responsive images (ensure images don't scale beyond their parents) */
|
78
|
+
max-width: 100%; /* Part 1: Set a maxium relative to the parent */
|
79
|
+
width: auto\9; /* IE7-8 need help adjusting responsive images */
|
80
|
+
height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */
|
81
|
+
|
82
|
+
vertical-align: middle;
|
83
|
+
border: 0;
|
84
|
+
-ms-interpolation-mode: bicubic;
|
85
|
+
}
|
86
|
+
|
87
|
+
// Prevent max-width from affecting Google Maps
|
88
|
+
#map_canvas img,
|
89
|
+
.google-maps img {
|
90
|
+
max-width: none;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Forms
|
94
|
+
// -------------------------
|
95
|
+
|
96
|
+
// Font size in all browsers, margin changes, misc consistency
|
97
|
+
button,
|
98
|
+
input,
|
99
|
+
select,
|
100
|
+
textarea {
|
101
|
+
margin: 0;
|
102
|
+
font-size: 100%;
|
103
|
+
vertical-align: middle;
|
104
|
+
}
|
105
|
+
button,
|
106
|
+
input {
|
107
|
+
*overflow: visible; // Inner spacing ie IE6/7
|
108
|
+
line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
|
109
|
+
}
|
110
|
+
button::-moz-focus-inner,
|
111
|
+
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
|
112
|
+
padding: 0;
|
113
|
+
border: 0;
|
114
|
+
}
|
115
|
+
button,
|
116
|
+
html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
|
117
|
+
input[type="reset"],
|
118
|
+
input[type="submit"] {
|
119
|
+
-webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS.
|
120
|
+
cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
|
121
|
+
}
|
122
|
+
label,
|
123
|
+
select,
|
124
|
+
button,
|
125
|
+
input[type="button"],
|
126
|
+
input[type="reset"],
|
127
|
+
input[type="submit"],
|
128
|
+
input[type="radio"],
|
129
|
+
input[type="checkbox"] {
|
130
|
+
cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
|
131
|
+
}
|
132
|
+
input[type="search"] { // Appearance in Safari/Chrome
|
133
|
+
@include box-sizing(content-box);
|
134
|
+
-webkit-appearance: textfield;
|
135
|
+
}
|
136
|
+
input[type="search"]::-webkit-search-decoration,
|
137
|
+
input[type="search"]::-webkit-search-cancel-button {
|
138
|
+
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
|
139
|
+
}
|
140
|
+
textarea {
|
141
|
+
overflow: auto; // Remove vertical scrollbar in IE6-9
|
142
|
+
vertical-align: top; // Readability and alignment cross-browser
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
// Printing
|
147
|
+
// -------------------------
|
148
|
+
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
|
149
|
+
|
150
|
+
@media print {
|
151
|
+
|
152
|
+
* {
|
153
|
+
text-shadow: none !important;
|
154
|
+
color: #000 !important; // Black prints faster: h5bp.com/s
|
155
|
+
background: transparent !important;
|
156
|
+
box-shadow: none !important;
|
157
|
+
}
|
158
|
+
|
159
|
+
a,
|
160
|
+
a:visited {
|
161
|
+
text-decoration: underline;
|
162
|
+
}
|
163
|
+
|
164
|
+
a[href]:after {
|
165
|
+
content: " (" attr(href) ")";
|
166
|
+
}
|
167
|
+
|
168
|
+
abbr[title]:after {
|
169
|
+
content: " (" attr(title) ")";
|
170
|
+
}
|
171
|
+
|
172
|
+
// Don't show links for images, or javascript/internal links
|
173
|
+
.ir a:after,
|
174
|
+
a[href^="javascript:"]:after,
|
175
|
+
a[href^="#"]:after {
|
176
|
+
content: "";
|
177
|
+
}
|
178
|
+
|
179
|
+
pre,
|
180
|
+
blockquote {
|
181
|
+
border: 1px solid #999;
|
182
|
+
page-break-inside: avoid;
|
183
|
+
}
|
184
|
+
|
185
|
+
thead {
|
186
|
+
display: table-header-group; // h5bp.com/t
|
187
|
+
}
|
188
|
+
|
189
|
+
tr,
|
190
|
+
img {
|
191
|
+
page-break-inside: avoid;
|
192
|
+
}
|
193
|
+
|
194
|
+
img {
|
195
|
+
max-width: 100% !important;
|
196
|
+
}
|
197
|
+
|
198
|
+
@page {
|
199
|
+
margin: 0.5cm;
|
200
|
+
}
|
201
|
+
|
202
|
+
p,
|
203
|
+
h2,
|
204
|
+
h3 {
|
205
|
+
orphans: 3;
|
206
|
+
widows: 3;
|
207
|
+
}
|
208
|
+
|
209
|
+
h2,
|
210
|
+
h3 {
|
211
|
+
page-break-after: avoid;
|
212
|
+
}
|
213
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
@media (max-width: 767px) {
|
2
|
+
|
3
|
+
body {
|
4
|
+
padding-left: 20px;
|
5
|
+
padding-right: 20px;
|
6
|
+
}
|
7
|
+
|
8
|
+
.container-fluid {
|
9
|
+
padding: 0;
|
10
|
+
}
|
11
|
+
|
12
|
+
.container {
|
13
|
+
width: auto;
|
14
|
+
}
|
15
|
+
|
16
|
+
.row-fluid {
|
17
|
+
width: 100%;
|
18
|
+
}
|
19
|
+
|
20
|
+
.row {
|
21
|
+
margin-left: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
// Make all grid-sized elements block level again
|
25
|
+
[class*="span"],
|
26
|
+
.uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
|
27
|
+
.row-fluid [class*="span"] {
|
28
|
+
float: none;
|
29
|
+
display: block;
|
30
|
+
width: 100%;
|
31
|
+
margin-left: 0;
|
32
|
+
@include box-sizing(border-box);
|
33
|
+
}
|
34
|
+
|
35
|
+
.span12,
|
36
|
+
.row-fluid .span12 {
|
37
|
+
width: 100%;
|
38
|
+
@include box-sizing(border-box);
|
39
|
+
}
|
40
|
+
|
41
|
+
.row-fluid [class*="offset"]:first-child {
|
42
|
+
margin-left: 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Make span* classes full width
|
46
|
+
.input-large,
|
47
|
+
.input-xlarge,
|
48
|
+
.input-xxlarge,
|
49
|
+
input[class*="span"],
|
50
|
+
select[class*="span"],
|
51
|
+
textarea[class*="span"],
|
52
|
+
.uneditable-input {
|
53
|
+
@include input-block-level();
|
54
|
+
}
|
55
|
+
|
56
|
+
// But don't let it screw up prepend/append inputs
|
57
|
+
.input-prepend input,
|
58
|
+
.input-append input,
|
59
|
+
.input-prepend input[class*="span"],
|
60
|
+
.input-append input[class*="span"] {
|
61
|
+
display: inline-block; // redeclare so they don't wrap to new lines
|
62
|
+
width: auto;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
@media (max-width: 480px) {
|
67
|
+
|
68
|
+
// Update checkboxes for iOS
|
69
|
+
input[type="checkbox"],
|
70
|
+
input[type="radio"] {
|
71
|
+
border: 1px solid #ccc;
|
72
|
+
}
|
73
|
+
|
74
|
+
}
|