agnostic-frontend 0.0.1.rc3 → 0.0.1.rc4

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.
Files changed (49) hide show
  1. data/.DS_Store +0 -0
  2. data/agnostic-frontend.gemspec +2 -2
  3. data/lib/.DS_Store +0 -0
  4. data/lib/agnostic-frontend.rb +1 -1
  5. data/lib/agnostic/frontend/engine.rb +8 -0
  6. data/lib/agnostic/frontend/version.rb +5 -0
  7. data/vendor/.DS_Store +0 -0
  8. data/vendor/assets/.DS_Store +0 -0
  9. data/vendor/assets/javascripts/adapt.js +145 -0
  10. data/vendor/assets/javascripts/bootstrap.js +2027 -0
  11. data/vendor/assets/javascripts/bootstrap.min.js +6 -0
  12. data/vendor/assets/javascripts/jquery.cookie.js +72 -0
  13. data/vendor/assets/javascripts/modernizr.js +1384 -0
  14. data/vendor/assets/stylesheets/.DS_Store +0 -0
  15. data/vendor/assets/stylesheets/grid/.DS_Store +0 -0
  16. data/vendor/assets/stylesheets/grid/960.css +653 -0
  17. data/vendor/assets/stylesheets/grid/960_12_col.css +357 -0
  18. data/vendor/assets/stylesheets/grid/960_12_col_rtl.css +357 -0
  19. data/vendor/assets/stylesheets/grid/960_16_col.css +446 -0
  20. data/vendor/assets/stylesheets/grid/960_16_col_rtl.css +446 -0
  21. data/vendor/assets/stylesheets/grid/960_24_col.css +621 -0
  22. data/vendor/assets/stylesheets/grid/960_24_col_rtl.css +621 -0
  23. data/vendor/assets/stylesheets/grid/960_rtl.css +653 -0
  24. data/vendor/assets/stylesheets/grid/blueprint.css +7 -0
  25. data/vendor/assets/stylesheets/grid/blueprint/.DS_Store +0 -0
  26. data/vendor/assets/stylesheets/grid/blueprint/forms.css +82 -0
  27. data/vendor/assets/stylesheets/grid/blueprint/grid.css +280 -0
  28. data/vendor/assets/stylesheets/grid/blueprint/ie.css +79 -0
  29. data/vendor/assets/stylesheets/grid/blueprint/print.css +92 -0
  30. data/vendor/assets/stylesheets/grid/blueprint/typography.css +123 -0
  31. data/vendor/assets/stylesheets/grid/bootstrap.css +338 -0
  32. data/vendor/assets/stylesheets/grid/bootstrap.min.css +87 -0
  33. data/vendor/assets/stylesheets/grid/fluid_960.css +491 -0
  34. data/vendor/assets/stylesheets/grid/intuit.css +927 -0
  35. data/vendor/assets/stylesheets/reset/blueprint.css +65 -0
  36. data/vendor/assets/stylesheets/reset/bootstrap.css +134 -0
  37. data/vendor/assets/stylesheets/reset/bootstrap.min.css +31 -0
  38. data/vendor/assets/stylesheets/reset/eric-meyer.css +1 -0
  39. data/vendor/assets/stylesheets/reset/eric-meyer.min.css +47 -0
  40. data/vendor/assets/stylesheets/reset/html5-doctor.css +86 -0
  41. data/vendor/assets/stylesheets/reset/html5-doctor.min.css +2 -0
  42. data/vendor/assets/stylesheets/reset/normalize.css +500 -0
  43. data/vendor/assets/stylesheets/reset/normalize.min.css +2 -0
  44. data/vendor/assets/stylesheets/reset/universal-selector.css +4 -0
  45. data/vendor/assets/stylesheets/reset/universal-selector.min.css +2 -0
  46. data/vendor/assets/stylesheets/reset/yui3.css +126 -0
  47. data/vendor/assets/stylesheets/reset/yui3.min.css +2 -0
  48. metadata +52 -8
  49. data/lib/agnostic-frontend/version.rb +0 -3
@@ -0,0 +1,927 @@
1
+ @charset "UTF-8";
2
+ /*------------------------------------*\
3
+ INUIT.CSS
4
+ \*------------------------------------*/
5
+ /*
6
+ Author: Harry Roberts
7
+ Twitter: @inuitcss
8
+ Author URL: csswizardry.com
9
+ Project URL: inuitcss.com
10
+ Version: 3.2
11
+ Date: 24 November 2011
12
+
13
+ Copyright 2011 Harry Roberts
14
+
15
+ Licensed under the Apache License, Version 2.0 (the "License");
16
+ you may not use this file except in compliance with the License.
17
+ You may obtain a copy of the License at
18
+
19
+ http://apache.org/licenses/LICENSE-2.0
20
+
21
+ Unless required by applicable law or agreed to in writing, software
22
+ distributed under the License is distributed on an "AS IS" BASIS,
23
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ See the License for the specific language governing permissions and
25
+ limitations under the License.
26
+
27
+ */
28
+
29
+
30
+
31
+
32
+
33
+ /*------------------------------------*\
34
+ CONTENTS
35
+ \*------------------------------------*/
36
+ /*
37
+ RESET
38
+ SHARED
39
+ MAIN
40
+ GRIDS
41
+ CLEARFIX
42
+ ISLAND
43
+ MEDIA
44
+ LOGO
45
+ NAV
46
+ TYPE
47
+ IMAGES
48
+ FORMS
49
+ TABLES
50
+ MESSAGES
51
+ MISC
52
+ CLASSES
53
+ DIAGNOSTICS
54
+ NARROW
55
+ MOBILE
56
+ PRINT
57
+ */
58
+
59
+
60
+
61
+
62
+
63
+ /*------------------------------------*\
64
+ $RESET
65
+ \*------------------------------------*/
66
+ /*
67
+ A more considered reset; more of a restart... csswizardry.com/2011/10/reset-restarted
68
+ */
69
+ html,body,div,span,applet,object,iframe,
70
+ h1,h2,h3,h4,h5,h6,p,blockquote,pre,hr,
71
+ a,abbr,address,cite,code,
72
+ del,dfn,em,img,ins,kbd,q,s,samp,
73
+ small,strong,sub,sup,tt,var,
74
+ b,u,i,
75
+ dl,dt,dd,ol,ul,li,
76
+ fieldset,form,label,legend,
77
+ table,caption,tbody,tfoot,thead,tr,th,td,
78
+ article,aside,canvas,details,figcaption,figure,
79
+ footer,header,hgroup,menu,nav,section,summary,
80
+ time,mark,audio,video{
81
+ margin:0;
82
+ padding:0;
83
+ }
84
+ article,aside,details,figcaption,figure,footer,
85
+ header,hgroup,menu,nav,section{
86
+ display:block;
87
+ }
88
+ h1,h2,h3,h4,h5,h6{
89
+ font-size:1em;
90
+ }
91
+ table{
92
+ border-collapse:collapse;
93
+ border-spacing:0;
94
+ }
95
+ strong,b,mark{
96
+ font-weight:bold;
97
+ font-style:inherit;
98
+ }
99
+ em,i,cite,q,address,dfn,var{
100
+ font-style:italic;
101
+ font-weight:inherit;
102
+ }
103
+ abbr[title],dfn[title]{
104
+ cursor:help;
105
+ border-bottom:1px dotted;
106
+ }
107
+ ins{
108
+ border-bottom:1px solid;
109
+ }
110
+ a,u,ins{
111
+ text-decoration:none;
112
+ }
113
+ del,s{
114
+ text-decoration:line-through;
115
+ }
116
+ pre,code,samp,kbd{
117
+ font-family:monospace;
118
+ }
119
+ small{
120
+ font-size:0.75em;
121
+ }
122
+ img{
123
+ border:none;
124
+ font-style:italic;
125
+ }
126
+ input,
127
+ select,option,optgroup,
128
+ textarea{
129
+ font:inherit;
130
+ }
131
+
132
+
133
+
134
+
135
+
136
+ /*------------------------------------*\
137
+ $SHARED
138
+ \*------------------------------------*/
139
+ /*
140
+ Rather than repeating declarations over and over, let’s make a shared section.
141
+ */
142
+ h1,h2,h3,h4,h5,h6,
143
+ ul,ol,dl,p,address,figure,pre,fieldset,table,hr,
144
+ .nav,.island,.media{
145
+ margin-bottom:24px;
146
+ margin-bottom:1.5rem;
147
+ }
148
+ figcaption,small{
149
+ font-size:12px;
150
+ font-size:0.75rem;
151
+ }
152
+ ul,ol,dd{
153
+ margin-left:3em;
154
+ }
155
+ small,code{
156
+ line-height:1;
157
+ }
158
+ pre,code,
159
+ input,textarea{
160
+ font:inherit;
161
+ }
162
+
163
+
164
+
165
+
166
+
167
+ /*------------------------------------*\
168
+ $MAIN
169
+ \*------------------------------------*/
170
+ html{
171
+ overflow-y:scroll; /* Force scrollbars 100% of the time */
172
+ font-size:100%; /* Use 16px as per informationarchitects.jp/en/100e2r/ and wilsonminer.com/posts/2008/oct/20/relative-readability/ */
173
+ line-height:1.5; /* A safe default for type of any size. */
174
+ /* You should always specify a colour and background, override these in your own stylesheet if desired. */
175
+ background-color:#fff;
176
+ color:#333;
177
+ }
178
+ body{
179
+ min-height:100%;
180
+ }
181
+
182
+
183
+
184
+
185
+
186
+ /*------------------------------------*\
187
+ $GRIDS
188
+ \*------------------------------------*/
189
+ /*
190
+ Build a custom grid-system igloo at inuitcss.com
191
+ Include this igloo in igloos.css
192
+ */
193
+
194
+
195
+
196
+
197
+
198
+ /*------------------------------------*\
199
+ $CLEARFIX
200
+ \*------------------------------------*/
201
+ /*
202
+ Fix clearing issues as per: nicolasgallagher.com/micro-clearfix-hack/
203
+ */
204
+ .cf,
205
+ .grids,
206
+ .media{
207
+ zoom:1;
208
+ }
209
+ .cf:before,
210
+ .grids:before,
211
+ .media:before,
212
+
213
+ .cf:after,
214
+ .grids:after,
215
+ .media:after{
216
+ content:"";
217
+ display:table;
218
+ }
219
+ .cf:after,
220
+ .grids:after,
221
+ .media:after{
222
+ clear:both;
223
+ }
224
+
225
+
226
+
227
+
228
+
229
+ /*------------------------------------*\
230
+ $ISLAND
231
+ \*------------------------------------*/
232
+ /*
233
+ Use a class of .island whenever you want to box off an area of content as per: csswizardry.com/2011/10/the-island-object/
234
+ Extend with classes like .promo to apply different colours etc to draw attention.
235
+ */
236
+ .island{
237
+ padding:1.5em;
238
+ }
239
+ .island > :last-child{
240
+ margin-bottom:0;
241
+ }
242
+
243
+
244
+
245
+
246
+
247
+ /*------------------------------------*\
248
+ $MEDIA
249
+ \*------------------------------------*/
250
+ /*
251
+ Based on @stubbornella’s media object: stubbornella.org/content/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code/
252
+ <a class="media promo">
253
+ <img src=product.jpg alt="" class=img>
254
+ <p class=body>Get Product for half price!</p>
255
+ </a>
256
+ */
257
+ .media{
258
+ display:block;
259
+ }
260
+ .media .img{
261
+ float:left;
262
+ margin-right:10px;
263
+ }
264
+ .media .body{
265
+ overflow:hidden;
266
+ margin-bottom:0;
267
+ }
268
+
269
+
270
+
271
+
272
+
273
+ /*------------------------------------*\
274
+ $LOGO
275
+ \*------------------------------------*/
276
+ /*
277
+ Your logo is an image, not a h1: csswizardry.com/2010/10/your-logo-is-an-image-not-a-h1/
278
+ */
279
+ .logo,
280
+ .logo img{
281
+ display:block;
282
+ width:auto; /* Width of your logo in pixels (ideally a round grid-number) */
283
+ height:auto; /* Height of your logo in pixels */
284
+ }
285
+ /* Based on the fact that we need to use an <img /> in our markup, let’s hide the actual image and use a background on the <a>--this gives us semantically sound markup and the ability to use sprites for hover effects! */
286
+ .logo{
287
+ background:url(/path/to/logo);
288
+ }
289
+ .logo:hover{
290
+ /* Hover states */
291
+ background-position:0 -00px;
292
+ }
293
+ .logo img{
294
+ position:absolute;
295
+ left:-99999px;
296
+ }
297
+
298
+
299
+
300
+
301
+
302
+ /*------------------------------------*\
303
+ $NAV
304
+ \*------------------------------------*/
305
+ /*
306
+ Create an abstraction, as per: csswizardry.com/2011/09/the-nav-abstraction/
307
+ */
308
+ .nav{
309
+ list-style:none;
310
+ }
311
+ .nav li{
312
+ display:inline;
313
+ }
314
+ .nav a{
315
+ display:inline-block;
316
+ }
317
+
318
+
319
+
320
+
321
+
322
+ /*------------------------------------*\
323
+ $TYPE
324
+ \*------------------------------------*/
325
+ /*--- HEADINGS ---*/
326
+ h1,.alpha{
327
+ font-size:2em; /* 32px */
328
+ line-height:1.5; /* 48px */
329
+ }
330
+ h2,.beta{
331
+ font-size:1.5em; /* 24px */
332
+ line-height:1; /* 24px */
333
+ }
334
+ h3,.gamma{
335
+ font-size:1.25em; /* 20px */
336
+ line-height:1.2; /* 24px */
337
+ }
338
+ h4,.delta{
339
+ font-size:1.125em; /* 18px */
340
+ line-height:1.333; /* 24px */
341
+ }
342
+ h5,.epsilon{
343
+ font-weight:bold;
344
+ }
345
+ h5,.epsilon,
346
+ h6,.zeta{
347
+ font-size:1em; /* 16px */
348
+ line-height:1.5; /* 24px */
349
+ }
350
+
351
+ /*--- PARAGRAPHS ---*/
352
+ /*
353
+ Mo’ robust paragraph indenting: csswizardry.com/2010/12/mo-robust-paragraph-indenting/
354
+ Uncomment to activate
355
+ p+p{
356
+ text-indent:2em;
357
+ margin-top:-1.5em;
358
+ }
359
+ */
360
+
361
+ /*--- FIGURES ---*/
362
+ figure img{
363
+ display:block;
364
+ margin-bottom:0;
365
+ }
366
+
367
+ /*--- LINKS ---*/
368
+ /*
369
+ Say no to negative hovers: csswizardry.com/2011/05/on-negative-hovers/
370
+ A negative hover is one whose appearance is subtracted from on hover rather than added to.
371
+ */
372
+ a:visited{
373
+ opacity:0.8; /* A bit basic, but it’s a bare minumum... */
374
+ }
375
+ a:hover{
376
+ text-decoration:underline;
377
+ }
378
+ a:active,
379
+ a:focus{
380
+ /* Give clicked links a depressed effect. */
381
+ position:relative;
382
+ top:1px;
383
+ }
384
+
385
+ /*--- LISTS ---*/
386
+ li > ul,
387
+ li > ol{
388
+ /* Let’s take care of lists in lists */
389
+ margin-bottom:0;
390
+ }
391
+
392
+ /*
393
+ A numbered list is NOT the same as an ordered one: csswizardry.com/2011/09/ordered-and-numbered-lists-the-differences/
394
+ Use this class when you want a list to be numbered but it has no order.
395
+ */
396
+ ul.numbered{
397
+ list-style:decimal outside;
398
+ }
399
+ dt{
400
+ font-weight:bold;
401
+ }
402
+
403
+ /*--- QUOTES ---*/
404
+ /*
405
+ Big up @boblet: html5doctor.com/blockquote-q-cite/
406
+ */
407
+ q{ quotes:"‘" "’" "“" "”"; }
408
+
409
+ q:before{ content:"‘"; content:open-quote; }
410
+ q:after{ content:"’"; content:close-quote; }
411
+
412
+ q q:before{ content: "“"; content: open-quote; }
413
+ q q:after{ content: "”"; content: close-quote; }
414
+
415
+ blockquote{ quotes: "“" "”"; }
416
+ blockquote p:before{ content: "“"; content: open-quote; }
417
+ blockquote p:after{ content: ""; content: no-close-quote; }
418
+ blockquote p:last-of-type:after{ content: "”"; content: close-quote; }
419
+
420
+ blockquote{
421
+ text-indent:-0.4em;
422
+ }
423
+
424
+ /*
425
+ Mark up the source of a quote with .source:
426
+ <blockquote>
427
+ <p>Lorem ipsum dolor sit amet. <b class=source>Joe Bloggs</b></p>
428
+ </blockquote>
429
+ */
430
+ .source{
431
+ display:block;
432
+ text-indent:0;
433
+ margin-top:-24px;
434
+ margin-top:-1.5rem;
435
+ }
436
+ .source:before{
437
+ content:"—";
438
+ }
439
+
440
+ /*--- GENERAL ---*/
441
+ mark{
442
+ background-color:#ffc;
443
+ color:#333;
444
+ }
445
+
446
+ /*--- CODE ---*/
447
+ pre,
448
+ code{
449
+ font-family:"Inconsolata", "Monaco", "Consolas", "Courier New", Courier, monospace;
450
+ }
451
+ pre{
452
+ overflow:auto;
453
+ line-height:24px; /* Having to define explicit pixel values :( */
454
+ }
455
+
456
+
457
+
458
+
459
+
460
+ /*------------------------------------*\
461
+ $IMAGES
462
+ \*------------------------------------*/
463
+ img{
464
+ max-width:100%;
465
+ height:auto;
466
+ /* Give it some text styles to offset alt text */
467
+ color:#c00;
468
+ }
469
+ img.left { margin:0 1.5em 0 0; }
470
+ img.right { margin:0 0 0 1.5em; }
471
+
472
+ /*--- FLASH/VIDEO ---*/
473
+ object,
474
+ embed,
475
+ video{
476
+ max-width:100%;
477
+ height:auto;
478
+ }
479
+
480
+
481
+
482
+
483
+
484
+ /*------------------------------------*\
485
+ $FORMS
486
+ \*------------------------------------*/
487
+ /*
488
+ Unfortunately, and somewhat obviously, forms don’t fit the baseline all too well. Perhaps in a later version...
489
+ */
490
+ fieldset{
491
+ padding:1.5em;
492
+ border:1px solid #ccc;
493
+ }
494
+ label{
495
+ display:block;
496
+ }
497
+ .text-input{
498
+ /* With the advent of various HTML5 input types (email, url, etc) input[type=text] is no longer suitable for for styling non-textearea text-inputs. Use .text-input instead. */
499
+ }
500
+ label,
501
+ .text-input,
502
+ textarea,
503
+ .btn{
504
+ cursor:pointer;
505
+ }
506
+ .text-input:active,
507
+ .text-input:focus,
508
+ textarea:active,
509
+ textarea:focus{
510
+ cursor:text;
511
+ }
512
+
513
+ /* A class of .check-list can be added to a <ul> to create a multi-column list of inputs. */
514
+ .check-list{
515
+ width:100%;
516
+ overflow:hidden;
517
+ list-style:none;
518
+ margin-left:0;
519
+ }
520
+ .check-list li{
521
+ width:25%;
522
+ float:left;
523
+ }
524
+ .check-label{
525
+ display:inline;
526
+ }
527
+ fieldset > :last-child{
528
+ /* Remove the margin from the last element in the fieldset--this makes our padding more consistent. */
529
+ margin-bottom:0;
530
+ }
531
+
532
+
533
+
534
+
535
+
536
+ /*------------------------------------*\
537
+ $TABLES
538
+ \*------------------------------------*/
539
+ /*
540
+ Unfortunately, and somewhat obviously, tables don’t fit the baseline all too well. Perhaps in a later version...
541
+ */
542
+ table{
543
+ width:100%;
544
+ max-width:100%;
545
+ }
546
+ thead tr:last-of-type th{
547
+ /* Thicker border on the table-headers of the last row in the table head. */
548
+ border-bottom-width:2px;
549
+ }
550
+ tbody th{
551
+ /* Thicker right border on table-headers in the table body. */
552
+ border-right-width:2px;
553
+ }
554
+ th:empty{
555
+ /* Hide the borders on any empty table-headers. */
556
+ border:none;
557
+ }
558
+ th,td{
559
+ vertical-align:top;
560
+ padding:0.75em;
561
+ border:1px solid #ccc;
562
+ }
563
+ th{
564
+ font-weight:bold;
565
+ text-align:center
566
+ }
567
+ table [colspan]{
568
+ text-align:center;
569
+ }
570
+ table [rowspan]{
571
+ vertical-align:middle;
572
+ }
573
+ /*
574
+ Assuming IE has an 'implied' colspan of one on cells without an explicit colspan attribute, fix/undo it.
575
+ See jsfiddle.net/csswizardry/UJJay/
576
+ */
577
+ [colspan="1"]{
578
+ text-align:left;
579
+ }
580
+ [rowspan="1"]{
581
+ vertical-align:top;
582
+ }
583
+ tbody tr:nth-of-type(odd){
584
+ background:rgba(0,0,0,0.05);
585
+ }
586
+ tfoot{
587
+ text-align:center;
588
+ }
589
+ tfoot td{
590
+ border-top-width:2px;
591
+ }
592
+
593
+
594
+
595
+
596
+
597
+ /*------------------------------------*\
598
+ $MESSAGES
599
+ \*------------------------------------*/
600
+ /*
601
+ Unfortunately feedback messages don’t fit the baseline all too well. Perhaps in a later version...
602
+ */
603
+ .message{
604
+ font-weight:normal;
605
+ display:block;
606
+ padding:10px 10px 10px 36px;
607
+ border:1px solid #ccc;
608
+ margin-left:0;
609
+
610
+ -moz-border-radius:2px;
611
+ -webkit-border-radius:2px;
612
+ border-radius:2px;
613
+ -moz-box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;
614
+ -webkit-box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;
615
+ box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;
616
+ }
617
+ /*
618
+ With multiple errors it’s nice to group them:
619
+ <ul class=message>
620
+ <li>Please provide a surname.</li>
621
+ <li>Please enter a valid email address.</li>
622
+ </ul>
623
+ */
624
+ ul.message{
625
+ list-style:decimal outside; /* It’s also handy to number them. However, they might not necessarily be in a particular order, so we spoof it by putting numbers on an unordered list */
626
+ padding:10px 10px 10px 56px;
627
+ }
628
+ .error{
629
+ border-color:#fb5766;
630
+ background:url(../img/css/icons/error.png) 10px center no-repeat #fab;
631
+ }
632
+ .success{
633
+ border-color:#83ba77;
634
+ background:url(../img/css/icons/success.png) 10px center no-repeat #d1feba;
635
+ }
636
+ .info{
637
+ border-color:#85a5be;
638
+ background:url(../img/css/icons/info.png) 10px center no-repeat #c4dbec;
639
+ }
640
+ .warning{
641
+ border-color:#d8d566;
642
+ background:url(../img/css/icons/warning.png) 10px center no-repeat #fef8c4;
643
+ }
644
+
645
+
646
+
647
+
648
+
649
+ /*------------------------------------*\
650
+ $MISC
651
+ \*------------------------------------*/
652
+ .accessibility{
653
+ /* Hide content off-screen without hiding from screen-readers. N.B. This is not suited to RTL languages */
654
+ position:absolute;
655
+ left:-99999px;
656
+ }
657
+ .more-link:after{
658
+ /* Too many people use &raquo; in their markup to signify progression/movement, that ain’t cool. Let’s insert that using content:""; */
659
+ content:" »";
660
+ }
661
+
662
+
663
+
664
+
665
+
666
+ /*------------------------------------*\
667
+ $CLASSES
668
+ \*------------------------------------*/
669
+ /*
670
+ Some not-too-pretty and insemantic classes to do odd jobs.
671
+ */
672
+ .left { float:left; }
673
+ .right { float:right; }
674
+ .clear { clear:both; float:none; }
675
+
676
+ .text-left { text-align:left; }
677
+ .text-right { text-align:right; }
678
+ .text-center,
679
+ .text-centre { text-align:center; }
680
+
681
+
682
+
683
+
684
+
685
+ /*------------------------------------*\
686
+ $DIAGNOSTICS
687
+ \*------------------------------------*/
688
+ /*
689
+ Apply a class of .debug to the html element ONLY WHEN YOUR SITE IS ON DEV.
690
+ */
691
+
692
+ /*
693
+ Red border == something is wrong
694
+ Yellow border == something may be wrong, you should double check.
695
+ Green border == perfect, nice one!
696
+ */
697
+
698
+ /*--- STYLES ---*/
699
+ .debug [style],
700
+ .debug style{
701
+ /* Inline styles aren’t great, can this be avoided? */
702
+ outline:5px solid yellow;
703
+ }
704
+ .debug style{
705
+ display:block;
706
+ }
707
+
708
+ /*--- IMAGES ---*/
709
+ .debug img{
710
+ /* Images without alt attributes are bad! */
711
+ outline:5px solid red;
712
+ }
713
+ .debug img[alt]{
714
+ /* Images with alt attributes are good! */
715
+ outline-color:green;
716
+ }
717
+ .debug img[alt=""]{
718
+ /* Images with empty alt attributes are okay in the right circumstances. */
719
+ outline-color:yellow;
720
+ }
721
+
722
+ /*--- LINKS ---*/
723
+ .debug a{
724
+ /* Links without titles are yellow, does your link need one? */
725
+ outline:5px solid yellow;
726
+ }
727
+ .debug a[title]{
728
+ /* Links with titles are green, title attributes can be very useful! */
729
+ outline-color:green;
730
+ }
731
+ .debug a[href="#"]{
732
+ /* Were you meant to leave that hash in there? */
733
+ outline-color:yellow;
734
+ }
735
+ .debug a[target]/*,
736
+ .debug a[onclick],
737
+ .debug a[href*=javascript]*/{
738
+ /* What were you thinking?! */
739
+ outline-color:red;
740
+ }
741
+
742
+ /*--- CLASSES/IDS ---*/
743
+ .debug [class=""],
744
+ .debug [id=""]{
745
+ /* Is this element meant to have an empty class/ID? */
746
+ outline:5px solid yellow;
747
+ }
748
+
749
+
750
+
751
+
752
+
753
+ /*------------------------------------*\
754
+ $NARROW
755
+ \*------------------------------------*/
756
+ /*
757
+ CSS for tablets and narrower devices
758
+ */
759
+ @media (min-width: 721px) and (max-width: 960px){
760
+ }
761
+ /*--- END NARROW ---*/
762
+
763
+
764
+
765
+
766
+
767
+ /*------------------------------------*\
768
+ $MOBILE
769
+ \*------------------------------------*/
770
+ /*
771
+ CSS for mobile devices.
772
+ Linearise it!
773
+ */
774
+ @media (max-width: 720px){
775
+ /*------------------------------------*\
776
+ MAIN
777
+ \*------------------------------------*/
778
+ html{
779
+ font-size:1.125em; /* Make text slightly larger for smaller devices to improve readability. */
780
+ }
781
+ body{
782
+ -webkit-text-size-adjust:none;
783
+ }
784
+ .wrapper{
785
+ width:auto;
786
+ }
787
+ .grids{
788
+ margin:0;
789
+ width:auto;
790
+ }
791
+ [class^="grid-"],
792
+ .grids [class^="grid-"]{
793
+ width:auto;
794
+ float:none;
795
+ margin:0;
796
+ }
797
+
798
+
799
+
800
+
801
+
802
+ /*------------------------------------*\
803
+ LOGO
804
+ \*------------------------------------*/
805
+ .logo{
806
+ margin-left:auto;
807
+ margin-right:auto;
808
+ }
809
+
810
+
811
+
812
+
813
+
814
+ /*------------------------------------*\
815
+ TYPE
816
+ \*------------------------------------*/
817
+ /*--- LISTS ---*/
818
+ ul,
819
+ ol,
820
+ dl{
821
+ margin-left:1.5em;
822
+ }
823
+
824
+
825
+
826
+
827
+
828
+ /*------------------------------------*\
829
+ IMAGES
830
+ \*------------------------------------*/
831
+ img.left,
832
+ img.right { max-width:50%; height:auto; }
833
+ }
834
+ /*--- END MOBILE ---*/
835
+
836
+
837
+
838
+
839
+
840
+ /*------------------------------------*\
841
+ $PRINT
842
+ \*------------------------------------*/
843
+ /*
844
+ Good ol’ fashioned paper...
845
+ */
846
+ @media print{
847
+ /*------------------------------------*\
848
+ MAIN
849
+ \*------------------------------------*/
850
+ /*
851
+ Give everything some decent contrast.
852
+ */
853
+ *{
854
+ background-color:#fff;
855
+ color:#000;
856
+ text-shadow:none!important;
857
+ }
858
+ /*
859
+ Set a nice measure and take the font down to print-acceptable sizes.
860
+ */
861
+ body{
862
+ font-size:0.75em; /* 12px (if base font-size was 16px) */
863
+ }
864
+ .wrapper{
865
+ width:75%;
866
+ margin:0 auto;
867
+ }
868
+ /*
869
+ A list of things you don’t want printing. Add to/subtract from as necessary.
870
+ */
871
+ .nav,
872
+ .footer{
873
+ display:none;
874
+ }
875
+ .logo img{
876
+ position:static;
877
+ }
878
+ /*
879
+ Linearise
880
+ */
881
+ .grids{
882
+ width:auto;
883
+ }
884
+ [class^="grid-"]{
885
+ width:auto;
886
+ float:none;
887
+ clear:both;
888
+ }
889
+ /*
890
+ Don’t let images break anything.
891
+ */
892
+ img{
893
+ max-width:100%;
894
+ height:auto;
895
+ }
896
+ /*
897
+ Messages look odd with just borders.
898
+ */
899
+ .message{
900
+ border:none;
901
+ font-weight:bold;
902
+ }
903
+ /*
904
+ Display the href of any links.
905
+ */
906
+ a:link:after,a:visited:after{
907
+ content:" (" attr(href) ")";
908
+ font-size:smaller;
909
+ }
910
+ /*
911
+ Any links that are root relative to your site need prepending with your URL.
912
+ */
913
+ a[href^="/"]:after{
914
+ content:" (http://yoururlhere.com" attr(href) ")";
915
+ font-size:smaller;
916
+ }
917
+ /*
918
+ Any Flash/video content can’t be printed so leave a message.
919
+ */
920
+ object:after{
921
+ content:"Flash/video content. Head to http://yoururlhere.com/ to view this content.";
922
+ display:block;
923
+ font-weight:bold;
924
+ margin-bottom:1.5em;
925
+ }
926
+ }
927
+ /*--- END PRINT ---*/