mongoid_scribe 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.
- checksums.yaml +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +53 -0
- data/app/controllers/mongoid/scribe/application_controller.rb +10 -0
- data/app/controllers/mongoid/scribe/documents_controller.rb +50 -0
- data/app/helpers/mongoid/scribe/documents_helper.rb +19 -0
- data/app/views/mongoid/scribe/documents/all.html.erb +22 -0
- data/app/views/mongoid/scribe/documents/edit.html.erb +22 -0
- data/app/views/mongoid/scribe/documents/index.html.erb +34 -0
- data/app/views/mongoid/scribe/documents/show.html.erb +25 -0
- data/app/views/mongoid/scribe/layouts/application.html.erb +14 -0
- data/config/routes.rb +10 -0
- data/lib/generators/mongoid_scribe/install_generator.rb +16 -0
- data/lib/generators/mongoid_scribe/templates/config/initializers/mongoid_scribe.rb +23 -0
- data/lib/mongoid/scribe/builders/field.rb +85 -0
- data/lib/mongoid/scribe/builders/relation.rb +40 -0
- data/lib/mongoid/scribe/builders/table.rb +26 -0
- data/lib/mongoid/scribe/configuration/form_configuration.rb +11 -0
- data/lib/mongoid/scribe/configuration/index_configuration.rb +11 -0
- data/lib/mongoid/scribe/configuration.rb +21 -0
- data/lib/mongoid/scribe/engine.rb +18 -0
- data/lib/mongoid/scribe/version.rb +5 -0
- data/lib/mongoid/scribe.rb +82 -0
- data/lib/mongoid_scribe.rb +1 -0
- data/mongoid_scribe.gemspec +33 -0
- data/vendor/assets/stylesheets/base/custom.css +22 -0
- data/vendor/assets/stylesheets/base/doc.css +170 -0
- data/vendor/assets/stylesheets/base/style.css +854 -0
- metadata +169 -0
@@ -0,0 +1,854 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
|
3
|
+
Base Stylesheet - http://git.io/base
|
4
|
+
Author: Matthew Hartman - http://www.matthewhartman.com.au/
|
5
|
+
Version: 1.5 - Last Updated: 21st June, 2013
|
6
|
+
|
7
|
+
========================================================================== */
|
8
|
+
/* General Resets */
|
9
|
+
* {
|
10
|
+
-webkit-box-sizing: border-box;
|
11
|
+
-moz-box-sizing: border-box;
|
12
|
+
box-sizing: border-box;
|
13
|
+
}
|
14
|
+
article,
|
15
|
+
aside,
|
16
|
+
details,
|
17
|
+
figcaption,
|
18
|
+
figure,
|
19
|
+
footer,
|
20
|
+
header,
|
21
|
+
hgroup,
|
22
|
+
main,
|
23
|
+
nav,
|
24
|
+
section,
|
25
|
+
summary {
|
26
|
+
display: block;
|
27
|
+
}
|
28
|
+
html,
|
29
|
+
button,
|
30
|
+
input,
|
31
|
+
select,
|
32
|
+
textarea {
|
33
|
+
font-family: sans-serif;
|
34
|
+
}
|
35
|
+
body,
|
36
|
+
form,
|
37
|
+
fieldset,
|
38
|
+
legend,
|
39
|
+
input,
|
40
|
+
select,
|
41
|
+
textarea,
|
42
|
+
button {
|
43
|
+
margin: 0;
|
44
|
+
}
|
45
|
+
html {
|
46
|
+
font-size: 100%;
|
47
|
+
}
|
48
|
+
/* ==========================================================================
|
49
|
+
/* -- Micro Clearfix and Helpers
|
50
|
+
========================================================================== */
|
51
|
+
/* Micro Clearfix */
|
52
|
+
.clear:before,
|
53
|
+
.clear:after {
|
54
|
+
content: "";
|
55
|
+
display: table;
|
56
|
+
}
|
57
|
+
.clear:after {
|
58
|
+
clear: both;
|
59
|
+
}
|
60
|
+
.clear {
|
61
|
+
zoom: 1;
|
62
|
+
}
|
63
|
+
.section:before,
|
64
|
+
.section:after {
|
65
|
+
content: "";
|
66
|
+
display: table;
|
67
|
+
}
|
68
|
+
.section:after {
|
69
|
+
clear: both;
|
70
|
+
}
|
71
|
+
.section {
|
72
|
+
zoom: 1;
|
73
|
+
}
|
74
|
+
.checkbox:before,
|
75
|
+
.checkbox:after {
|
76
|
+
content: "";
|
77
|
+
display: table;
|
78
|
+
}
|
79
|
+
.checkbox:after {
|
80
|
+
clear: both;
|
81
|
+
}
|
82
|
+
.checkbox {
|
83
|
+
zoom: 1;
|
84
|
+
}
|
85
|
+
/* Helpers */
|
86
|
+
.left {
|
87
|
+
float: left;
|
88
|
+
}
|
89
|
+
.right {
|
90
|
+
float: right;
|
91
|
+
}
|
92
|
+
.block {
|
93
|
+
display: block;
|
94
|
+
}
|
95
|
+
.inline-block {
|
96
|
+
display: inline-block;
|
97
|
+
*zoom: 1;
|
98
|
+
*display: inline;
|
99
|
+
}
|
100
|
+
.inline {
|
101
|
+
display: inline;
|
102
|
+
}
|
103
|
+
.strong {
|
104
|
+
font-weight: bold;
|
105
|
+
}
|
106
|
+
.italic {
|
107
|
+
font-style: italic;
|
108
|
+
}
|
109
|
+
.center-text {
|
110
|
+
text-align: center;
|
111
|
+
}
|
112
|
+
.none,
|
113
|
+
[hidden] {
|
114
|
+
display: none;
|
115
|
+
}
|
116
|
+
.visuallyhidden {
|
117
|
+
border: 0;
|
118
|
+
clip: rect(0 0 0 0);
|
119
|
+
height: 1px;
|
120
|
+
overflow: hidden;
|
121
|
+
padding: 0;
|
122
|
+
position: absolute;
|
123
|
+
width: 1px;
|
124
|
+
left: -9999em;
|
125
|
+
}
|
126
|
+
.visuallyvisible {
|
127
|
+
clip: auto;
|
128
|
+
width: auto;
|
129
|
+
height: auto;
|
130
|
+
overflow: visible;
|
131
|
+
left: 0;
|
132
|
+
}
|
133
|
+
/* Alert */
|
134
|
+
.alert {
|
135
|
+
background-color: #ffc;
|
136
|
+
display: block;
|
137
|
+
padding: 8px;
|
138
|
+
-webkit-border-radius: 5px;
|
139
|
+
-moz-border-radius: 5px;
|
140
|
+
border-radius: 5px;
|
141
|
+
}
|
142
|
+
.no-desktop {
|
143
|
+
display: none;
|
144
|
+
}
|
145
|
+
/* ==========================================================================
|
146
|
+
/* 1.0 - Document Setup (typography, links, paragraph, etc)
|
147
|
+
========================================================================== */
|
148
|
+
/* Body */
|
149
|
+
body {
|
150
|
+
font-size: 14px;
|
151
|
+
font-size: 0.875rem;
|
152
|
+
color: #555;
|
153
|
+
background-color: #fff;
|
154
|
+
-webkit-text-size-adjust: 100%;
|
155
|
+
-ms-text-size-adjust: 100%;
|
156
|
+
}
|
157
|
+
/* Strong and Italic */
|
158
|
+
b,
|
159
|
+
strong {
|
160
|
+
font-weight: bold;
|
161
|
+
}
|
162
|
+
/* Links */
|
163
|
+
a {
|
164
|
+
color: #f30;
|
165
|
+
}
|
166
|
+
a:hover {
|
167
|
+
text-decoration: none;
|
168
|
+
}
|
169
|
+
a:focus {
|
170
|
+
outline: thin dotted;
|
171
|
+
}
|
172
|
+
a:active,
|
173
|
+
a:hover {
|
174
|
+
outline: 0;
|
175
|
+
}
|
176
|
+
/* Paragraph and Small */
|
177
|
+
p,
|
178
|
+
pre {
|
179
|
+
margin: 1em 0;
|
180
|
+
}
|
181
|
+
small {
|
182
|
+
font-size: 80%;
|
183
|
+
}
|
184
|
+
/* Abbreviations */
|
185
|
+
abbr[title] {
|
186
|
+
border-bottom: 1px dotted;
|
187
|
+
}
|
188
|
+
/* Audio */
|
189
|
+
audio,
|
190
|
+
canvas,
|
191
|
+
video {
|
192
|
+
display: inline-block;
|
193
|
+
*zoom: 1;
|
194
|
+
*display: inline;
|
195
|
+
}
|
196
|
+
audio:not([controls]) {
|
197
|
+
display: none;
|
198
|
+
height: 0;
|
199
|
+
}
|
200
|
+
/* Small,
|
201
|
+
Sub and Sup */
|
202
|
+
small {
|
203
|
+
font-size: 80%;
|
204
|
+
}
|
205
|
+
sub,
|
206
|
+
sup {
|
207
|
+
font-size: 75%;
|
208
|
+
line-height: 0;
|
209
|
+
position: relative;
|
210
|
+
vertical-align: baseline;
|
211
|
+
}
|
212
|
+
sup {
|
213
|
+
top: -0.5em;
|
214
|
+
}
|
215
|
+
sub {
|
216
|
+
bottom: -0.25em;
|
217
|
+
}
|
218
|
+
/* Definition */
|
219
|
+
dfn {
|
220
|
+
font-style: italic;
|
221
|
+
}
|
222
|
+
/* Images */
|
223
|
+
img {
|
224
|
+
border: 0;
|
225
|
+
-ms-interpolation-mode: bicubic;
|
226
|
+
}
|
227
|
+
svg:not(:root) {
|
228
|
+
overflow: hidden;
|
229
|
+
}
|
230
|
+
figure {
|
231
|
+
margin: 0;
|
232
|
+
}
|
233
|
+
.image-left {
|
234
|
+
margin-right: 20px;
|
235
|
+
}
|
236
|
+
.image-right {
|
237
|
+
margin-left: 20px;
|
238
|
+
}
|
239
|
+
/* 1.1 Headings - h1, h2, h3, h4, h5, h6 & other (if any)
|
240
|
+
========================================================================== */
|
241
|
+
h1,
|
242
|
+
h2,
|
243
|
+
h3,
|
244
|
+
h4,
|
245
|
+
h5,
|
246
|
+
h6 {
|
247
|
+
margin: 0;
|
248
|
+
font-weight: normal;
|
249
|
+
}
|
250
|
+
h1,
|
251
|
+
.h1 {
|
252
|
+
font-size: 40px;
|
253
|
+
font-size: 2.5rem;
|
254
|
+
margin-bottom: .2em;
|
255
|
+
}
|
256
|
+
h2,
|
257
|
+
.h2 {
|
258
|
+
font-size: 32px;
|
259
|
+
font-size: 2rem;
|
260
|
+
margin-bottom: .33em;
|
261
|
+
}
|
262
|
+
h3,
|
263
|
+
.h3 {
|
264
|
+
font-size: 26px;
|
265
|
+
font-size: 1.625rem;
|
266
|
+
margin-bottom: .5em;
|
267
|
+
}
|
268
|
+
h4,
|
269
|
+
.h4 {
|
270
|
+
font-size: 20px;
|
271
|
+
font-size: 1.25rem;
|
272
|
+
margin-bottom: .5em;
|
273
|
+
}
|
274
|
+
h5,
|
275
|
+
.h5 {
|
276
|
+
font-size: 18px;
|
277
|
+
font-size: 1.125rem;
|
278
|
+
margin-bottom: .5em;
|
279
|
+
}
|
280
|
+
h6,
|
281
|
+
.h6 {
|
282
|
+
font-size: 16px;
|
283
|
+
font-size: 1rem;
|
284
|
+
margin-bottom: .5em;
|
285
|
+
}
|
286
|
+
/* Reset Heading */
|
287
|
+
.no-style-heading {
|
288
|
+
margin: 0;
|
289
|
+
font-size: 100%;
|
290
|
+
}
|
291
|
+
/* Horizontal Rule */
|
292
|
+
hr {
|
293
|
+
border: 0;
|
294
|
+
background: none;
|
295
|
+
outline: 0;
|
296
|
+
background-color: #ddd;
|
297
|
+
margin: 2em 0;
|
298
|
+
*margin: 1em 0;
|
299
|
+
-moz-box-sizing: content-box;
|
300
|
+
box-sizing: content-box;
|
301
|
+
height: 1px;
|
302
|
+
}
|
303
|
+
/* 1.2 Quotes and Code - block quotes, quotes, code, pre, etc
|
304
|
+
========================================================================== */
|
305
|
+
/* Block Quotes and Quotes */
|
306
|
+
blockquote {
|
307
|
+
font-family: "Georgia", "Times" serif;
|
308
|
+
font-size: 20px;
|
309
|
+
font-size: 1.25rem;
|
310
|
+
color: #777;
|
311
|
+
margin: 1em 0;
|
312
|
+
font-style: italic;
|
313
|
+
}
|
314
|
+
cite {
|
315
|
+
color: #222;
|
316
|
+
font-style: normal;
|
317
|
+
}
|
318
|
+
q {
|
319
|
+
quotes: none;
|
320
|
+
}
|
321
|
+
q:before,
|
322
|
+
q:after {
|
323
|
+
content: '';
|
324
|
+
content: none;
|
325
|
+
}
|
326
|
+
/* Mark */
|
327
|
+
mark {
|
328
|
+
background: #ff0;
|
329
|
+
color: #111;
|
330
|
+
}
|
331
|
+
/* Code */
|
332
|
+
code,
|
333
|
+
kbd,
|
334
|
+
pre,
|
335
|
+
samp {
|
336
|
+
font-family: monospace, serif;
|
337
|
+
_font-family: 'courier new', monospace;
|
338
|
+
font-size: 1em;
|
339
|
+
}
|
340
|
+
code {
|
341
|
+
color: #111;
|
342
|
+
padding: 2px 5px;
|
343
|
+
background-color: #f1f1f1;
|
344
|
+
-webkit-border-radius: 3px;
|
345
|
+
-moz-border-radius: 3px;
|
346
|
+
border-radius: 3px;
|
347
|
+
}
|
348
|
+
/* 1.3 Lists
|
349
|
+
========================================================================== */
|
350
|
+
dl,
|
351
|
+
menu,
|
352
|
+
ol,
|
353
|
+
ul {
|
354
|
+
margin: 1em 0;
|
355
|
+
}
|
356
|
+
ul ul,
|
357
|
+
ol ol,
|
358
|
+
ul ol,
|
359
|
+
ol ul {
|
360
|
+
margin: 0;
|
361
|
+
}
|
362
|
+
dd {
|
363
|
+
margin: 0 0 0 40px;
|
364
|
+
}
|
365
|
+
dt {
|
366
|
+
font-weight: bold;
|
367
|
+
}
|
368
|
+
menu,
|
369
|
+
ol,
|
370
|
+
ul {
|
371
|
+
padding: 0 0 0 40px;
|
372
|
+
}
|
373
|
+
nav ul,
|
374
|
+
nav ol {
|
375
|
+
list-style: none;
|
376
|
+
list-style-image: none;
|
377
|
+
}
|
378
|
+
/* Remove Styling from List */
|
379
|
+
.no-style-list {
|
380
|
+
list-style: none;
|
381
|
+
padding: 0;
|
382
|
+
margin: 0;
|
383
|
+
}
|
384
|
+
/* 1.4 Tables
|
385
|
+
========================================================================== */
|
386
|
+
table {
|
387
|
+
width: 100%;
|
388
|
+
table-layout: fixed;
|
389
|
+
border-collapse: collapse;
|
390
|
+
border-spacing: 0;
|
391
|
+
border-right: 1px solid #eee;
|
392
|
+
border-bottom: 1px solid #eee;
|
393
|
+
word-wrap: break-word;
|
394
|
+
-ms-word-wrap: break-word;
|
395
|
+
*white-space: normal;
|
396
|
+
}
|
397
|
+
table th,
|
398
|
+
table td {
|
399
|
+
padding: 8px;
|
400
|
+
text-align: left;
|
401
|
+
vertical-align: top;
|
402
|
+
border-top: 1px solid #eee;
|
403
|
+
border-left: 1px solid #eee;
|
404
|
+
}
|
405
|
+
table thead th {
|
406
|
+
vertical-align: bottom;
|
407
|
+
font-weight: bold;
|
408
|
+
background-color: #e1e1e1;
|
409
|
+
color: #333;
|
410
|
+
}
|
411
|
+
table tfoot td {
|
412
|
+
font-weight: bold;
|
413
|
+
}
|
414
|
+
table caption {
|
415
|
+
padding: 0.5em;
|
416
|
+
font-style: italic;
|
417
|
+
background-color: #eee;
|
418
|
+
border-bottom: 0;
|
419
|
+
font-weight: bold;
|
420
|
+
}
|
421
|
+
/* 1.5 Forms, Labels and Inputs
|
422
|
+
========================================================================== */
|
423
|
+
fieldset {
|
424
|
+
border: 0;
|
425
|
+
padding: 0;
|
426
|
+
}
|
427
|
+
legend {
|
428
|
+
border: 0;
|
429
|
+
padding: 0;
|
430
|
+
white-space: normal;
|
431
|
+
*margin-left: -7px;
|
432
|
+
font-weight: bold;
|
433
|
+
}
|
434
|
+
label {
|
435
|
+
cursor: pointer;
|
436
|
+
}
|
437
|
+
button,
|
438
|
+
input,
|
439
|
+
select,
|
440
|
+
textarea {
|
441
|
+
font-size: 100%;
|
442
|
+
vertical-align: baseline;
|
443
|
+
*vertical-align: middle;
|
444
|
+
}
|
445
|
+
input[type=text],
|
446
|
+
input[type=password],
|
447
|
+
input[type=email],
|
448
|
+
input[type=search],
|
449
|
+
input[type=tel],
|
450
|
+
textarea {
|
451
|
+
padding: 5px 7px;
|
452
|
+
-webkit-appearance: none;
|
453
|
+
-moz-appearance: none;
|
454
|
+
font-weight: bold;
|
455
|
+
background-color: #fff;
|
456
|
+
color: #777;
|
457
|
+
border: 1px solid #ddd;
|
458
|
+
border-top: 1px solid #999;
|
459
|
+
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
460
|
+
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
461
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
462
|
+
}
|
463
|
+
input[type=checkbox],
|
464
|
+
input[type=radio] {
|
465
|
+
cursor: pointer;
|
466
|
+
box-sizing: border-box;
|
467
|
+
padding: 0;
|
468
|
+
*height: 13px;
|
469
|
+
*width: 13px;
|
470
|
+
}
|
471
|
+
.checkbox {
|
472
|
+
display: block;
|
473
|
+
margin: .2em 0;
|
474
|
+
}
|
475
|
+
.checkbox input[type=checkbox],
|
476
|
+
.checkbox input[type=radio] {
|
477
|
+
float: left;
|
478
|
+
}
|
479
|
+
.checkbox label {
|
480
|
+
padding-left: 5px;
|
481
|
+
overflow: hidden;
|
482
|
+
display: table;
|
483
|
+
*zoom: 1;
|
484
|
+
}
|
485
|
+
button,
|
486
|
+
input {
|
487
|
+
line-height: normal;
|
488
|
+
}
|
489
|
+
button,
|
490
|
+
select {
|
491
|
+
text-transform: none;
|
492
|
+
}
|
493
|
+
/* Buttons */
|
494
|
+
button,
|
495
|
+
html input[type="button"],
|
496
|
+
input[type="reset"],
|
497
|
+
input[type="submit"] {
|
498
|
+
-webkit-appearance: button;
|
499
|
+
cursor: pointer;
|
500
|
+
*overflow: visible;
|
501
|
+
}
|
502
|
+
button[disabled],
|
503
|
+
html input[disabled] {
|
504
|
+
cursor: default;
|
505
|
+
}
|
506
|
+
input[type="search"] {
|
507
|
+
-webkit-appearance: textfield;
|
508
|
+
-moz-box-sizing: content-box;
|
509
|
+
-webkit-box-sizing: content-box;
|
510
|
+
box-sizing: content-box;
|
511
|
+
}
|
512
|
+
input[type="search"]::-webkit-search-cancel-button,
|
513
|
+
input[type="search"]::-webkit-search-decoration {
|
514
|
+
-webkit-appearance: none;
|
515
|
+
}
|
516
|
+
button::-moz-focus-inner,
|
517
|
+
input::-moz-focus-inner {
|
518
|
+
border: 0;
|
519
|
+
padding: 0;
|
520
|
+
}
|
521
|
+
textarea {
|
522
|
+
overflow: auto;
|
523
|
+
vertical-align: top;
|
524
|
+
resize: none;
|
525
|
+
}
|
526
|
+
/* Custom Buttons */
|
527
|
+
.button {
|
528
|
+
-webkit-border-radius: 5px;
|
529
|
+
-moz-border-radius: 5px;
|
530
|
+
border-radius: 5px;
|
531
|
+
border: 0;
|
532
|
+
padding: 1em 3em;
|
533
|
+
color: #333;
|
534
|
+
text-decoration: none;
|
535
|
+
text-align: center;
|
536
|
+
display: inline-block;
|
537
|
+
*zoom: 1;
|
538
|
+
*display: inline;
|
539
|
+
}
|
540
|
+
.orange-button {
|
541
|
+
background-color: #fee9cc;
|
542
|
+
}
|
543
|
+
.orange-button:hover {
|
544
|
+
background-color: #ffe0b5;
|
545
|
+
-webkit-tap-highlight-color: #fdeed8;
|
546
|
+
}
|
547
|
+
.orange-button:active {
|
548
|
+
background-color: #fdeed8;
|
549
|
+
}
|
550
|
+
.button[disabled],
|
551
|
+
.button.disabled {
|
552
|
+
color: #999;
|
553
|
+
background-color: #f1f1f1;
|
554
|
+
}
|
555
|
+
.no-style-button {
|
556
|
+
font-size: 13px;
|
557
|
+
font-size: 0.8125rem;
|
558
|
+
color: #f30;
|
559
|
+
text-decoration: underline;
|
560
|
+
border: 0;
|
561
|
+
background: transparent;
|
562
|
+
height: auto;
|
563
|
+
padding: 0;
|
564
|
+
cursor: pointer;
|
565
|
+
outline: 0;
|
566
|
+
}
|
567
|
+
.no-style-button:hover {
|
568
|
+
text-decoration: none;
|
569
|
+
}
|
570
|
+
.no-style-button[disabled],
|
571
|
+
.no-style-button.disabled {
|
572
|
+
text-decoration: none;
|
573
|
+
color: #999;
|
574
|
+
}
|
575
|
+
/* ==========================================================================
|
576
|
+
/* 2.0 - Grid Layout (Responsive)
|
577
|
+
========================================================================== */
|
578
|
+
/* Sections & Content Blocks */
|
579
|
+
.section {
|
580
|
+
position: relative;
|
581
|
+
}
|
582
|
+
/* Rows */
|
583
|
+
.row {
|
584
|
+
margin: .5em 0;
|
585
|
+
}
|
586
|
+
.row-one {
|
587
|
+
margin: 1em 0;
|
588
|
+
}
|
589
|
+
.row-two {
|
590
|
+
margin: 2em 0;
|
591
|
+
}
|
592
|
+
.row-three {
|
593
|
+
margin: 3em 0;
|
594
|
+
}
|
595
|
+
.center {
|
596
|
+
margin-left: auto;
|
597
|
+
margin-right: auto;
|
598
|
+
}
|
599
|
+
.container {
|
600
|
+
max-width: 960px;
|
601
|
+
margin-left: auto;
|
602
|
+
margin-right: auto;
|
603
|
+
padding-left: 10px;
|
604
|
+
padding-right: 10px;
|
605
|
+
}
|
606
|
+
.container-full {
|
607
|
+
max-width: 980px;
|
608
|
+
margin-left: auto;
|
609
|
+
margin-right: auto;
|
610
|
+
}
|
611
|
+
/* Fluid Grid */
|
612
|
+
.col {
|
613
|
+
margin-left: 2%;
|
614
|
+
float: left;
|
615
|
+
}
|
616
|
+
.col:first-child {
|
617
|
+
margin-left: 0;
|
618
|
+
}
|
619
|
+
/* Columns */
|
620
|
+
.one {
|
621
|
+
width: 6.5%;
|
622
|
+
*width: expression(Math.floor(0.065 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
623
|
+
}
|
624
|
+
.two {
|
625
|
+
width: 15%;
|
626
|
+
*width: expression(Math.floor(0.15 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
627
|
+
}
|
628
|
+
.three {
|
629
|
+
width: 23.5%;
|
630
|
+
*width: expression(Math.floor(0.235 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
631
|
+
}
|
632
|
+
.four {
|
633
|
+
width: 32%;
|
634
|
+
*width: expression(Math.floor(0.32 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
635
|
+
}
|
636
|
+
.five {
|
637
|
+
width: 40.5%;
|
638
|
+
*width: expression(Math.floor(0.40.5 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
639
|
+
}
|
640
|
+
.six {
|
641
|
+
width: 49.0%;
|
642
|
+
*width: expression(Math.floor(0.49 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
643
|
+
}
|
644
|
+
.seven {
|
645
|
+
width: 57.5%;
|
646
|
+
*width: expression(Math.floor(0.575 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
647
|
+
}
|
648
|
+
.eight {
|
649
|
+
width: 66%;
|
650
|
+
*width: expression(Math.floor(0.66 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
651
|
+
}
|
652
|
+
.nine {
|
653
|
+
width: 74.5%;
|
654
|
+
*width: expression(Math.floor(0.745 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
655
|
+
}
|
656
|
+
.ten {
|
657
|
+
width: 83%;
|
658
|
+
*width: expression(Math.floor(0.83 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
659
|
+
}
|
660
|
+
.eleven {
|
661
|
+
width: 91.5%;
|
662
|
+
*width: expression(Math.floor(0.915 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
663
|
+
}
|
664
|
+
.twelve {
|
665
|
+
width: 100%;
|
666
|
+
}
|
667
|
+
.quarter {
|
668
|
+
width: 23.5%;
|
669
|
+
*width: expression(Math.floor(0.235 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
670
|
+
}
|
671
|
+
.half {
|
672
|
+
width: 49.0%;
|
673
|
+
*width: expression(Math.floor(0.49 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
674
|
+
}
|
675
|
+
.one-third {
|
676
|
+
width: 32%;
|
677
|
+
*width: expression(Math.floor(0.32 * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px");
|
678
|
+
}
|
679
|
+
/* ==========================================================================
|
680
|
+
/* -- Tablet Devices (Layout, Modifications, etc)
|
681
|
+
========================================================================== */
|
682
|
+
@media only screen and (min-width: 740px) and (max-width: 999px) {
|
683
|
+
.container,
|
684
|
+
.tablet-container {
|
685
|
+
width: 720px;
|
686
|
+
padding-left: 10px;
|
687
|
+
padding-right: 10px;
|
688
|
+
}
|
689
|
+
/* Tablet Grid
|
690
|
+
* For stacking full width columns, please use the new class .tablet-full */
|
691
|
+
.tablet-one {
|
692
|
+
width: 6.5%;
|
693
|
+
}
|
694
|
+
.tablet-two {
|
695
|
+
width: 15%;
|
696
|
+
}
|
697
|
+
.tablet-three {
|
698
|
+
width: 23.5%;
|
699
|
+
}
|
700
|
+
.tablet-four {
|
701
|
+
width: 32%;
|
702
|
+
}
|
703
|
+
.tablet-five {
|
704
|
+
width: 40.5%;
|
705
|
+
}
|
706
|
+
.tablet-six {
|
707
|
+
width: 49.0%;
|
708
|
+
}
|
709
|
+
.tablet-seven {
|
710
|
+
width: 57.5%;
|
711
|
+
}
|
712
|
+
.tablet-eight {
|
713
|
+
width: 66%;
|
714
|
+
}
|
715
|
+
.tablet-nine {
|
716
|
+
width: 74.5%;
|
717
|
+
}
|
718
|
+
.tablet-ten {
|
719
|
+
width: 83%;
|
720
|
+
}
|
721
|
+
.tablet-eleven {
|
722
|
+
width: 91.5%;
|
723
|
+
}
|
724
|
+
.tablet-twelve {
|
725
|
+
width: 100%;
|
726
|
+
}
|
727
|
+
.tablet-full {
|
728
|
+
clear: both;
|
729
|
+
float: none;
|
730
|
+
width: 100%;
|
731
|
+
margin: 10px 0 0 0;
|
732
|
+
display: block;
|
733
|
+
}
|
734
|
+
.tablet-full:first-child {
|
735
|
+
margin-top: 0;
|
736
|
+
}
|
737
|
+
.tablet-center {
|
738
|
+
margin-left: auto;
|
739
|
+
margin-right: auto;
|
740
|
+
float: none;
|
741
|
+
}
|
742
|
+
.tablet-center:first-child {
|
743
|
+
margin-left: auto;
|
744
|
+
}
|
745
|
+
.tablet-center-text {
|
746
|
+
text-align: center;
|
747
|
+
}
|
748
|
+
.tablet-left {
|
749
|
+
float: left;
|
750
|
+
}
|
751
|
+
.tablet-right {
|
752
|
+
float: right;
|
753
|
+
}
|
754
|
+
.tablet-no-float {
|
755
|
+
float: none;
|
756
|
+
}
|
757
|
+
.no-tablet {
|
758
|
+
display: none;
|
759
|
+
}
|
760
|
+
.show-tablet {
|
761
|
+
display: block;
|
762
|
+
}
|
763
|
+
}
|
764
|
+
/* End Tablet Media Query */
|
765
|
+
/* ==========================================================================
|
766
|
+
/* -- Mobile Devices (Layout, Modifications, etc)
|
767
|
+
========================================================================== */
|
768
|
+
@media only screen and (max-width: 739px) {
|
769
|
+
/* Mobile Grid
|
770
|
+
* For stacking full width columns, please use the new class .mobile-full */
|
771
|
+
.mobile-one {
|
772
|
+
width: 6.5%;
|
773
|
+
}
|
774
|
+
.mobile-two {
|
775
|
+
width: 15%;
|
776
|
+
}
|
777
|
+
.mobile-three {
|
778
|
+
width: 23.5%;
|
779
|
+
}
|
780
|
+
.mobile-four {
|
781
|
+
width: 32%;
|
782
|
+
}
|
783
|
+
.mobile-five {
|
784
|
+
width: 40.5%;
|
785
|
+
}
|
786
|
+
.mobile-six {
|
787
|
+
width: 49.0%;
|
788
|
+
}
|
789
|
+
.mobile-seven {
|
790
|
+
width: 57.5%;
|
791
|
+
}
|
792
|
+
.mobile-eight {
|
793
|
+
width: 66%;
|
794
|
+
}
|
795
|
+
.mobile-nine {
|
796
|
+
width: 74.5%;
|
797
|
+
}
|
798
|
+
.mobile-ten {
|
799
|
+
width: 83%;
|
800
|
+
}
|
801
|
+
.mobile-eleven {
|
802
|
+
width: 91.5%;
|
803
|
+
}
|
804
|
+
.mobile-twelve {
|
805
|
+
width: 100%;
|
806
|
+
}
|
807
|
+
.mobile-full {
|
808
|
+
clear: both;
|
809
|
+
float: none;
|
810
|
+
width: 100%;
|
811
|
+
margin: 10px 0 0 0;
|
812
|
+
display: block;
|
813
|
+
}
|
814
|
+
.mobile-full:first-child {
|
815
|
+
margin-top: 0;
|
816
|
+
}
|
817
|
+
.mobile-center {
|
818
|
+
margin-left: auto;
|
819
|
+
margin-right: auto;
|
820
|
+
float: none;
|
821
|
+
}
|
822
|
+
.mobile-center:first-child {
|
823
|
+
margin-left: auto;
|
824
|
+
}
|
825
|
+
.mobile-center-text {
|
826
|
+
text-align: center;
|
827
|
+
}
|
828
|
+
.mobile-left {
|
829
|
+
float: left;
|
830
|
+
}
|
831
|
+
.mobile-right {
|
832
|
+
float: right;
|
833
|
+
}
|
834
|
+
.mobile-no-float {
|
835
|
+
float: none;
|
836
|
+
}
|
837
|
+
.container,
|
838
|
+
.mobile-container {
|
839
|
+
padding-left: 20px;
|
840
|
+
padding-right: 20px;
|
841
|
+
}
|
842
|
+
/* Mobile Tables */
|
843
|
+
table th,
|
844
|
+
table td {
|
845
|
+
padding: 4px;
|
846
|
+
}
|
847
|
+
.no-mobile {
|
848
|
+
display: none;
|
849
|
+
}
|
850
|
+
.show-mobile {
|
851
|
+
display: block;
|
852
|
+
}
|
853
|
+
}
|
854
|
+
/* End Mobile Media Query */
|