forked from artemave/REST-assured
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inuit.css
executable file
·904 lines (765 loc) · 15.9 KB
/
inuit.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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
@charset "UTF-8";
/*------------------------------------*\
INUIT.CSS
\*------------------------------------*/
/*
Author: Harry Roberts
Twitter: @inuitcss
Author URL: csswizardry.com
Project URL: inuitcss.com
Version: 3.0.a
Date: 30 June 2011
Copyright 2011 Harry Roberts
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/*------------------------------------*\
RESET
\*------------------------------------*/
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
b,u,i,center,
dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,
table,caption,tbody,tfoot,thead,tr,th,td,
article,aside,canvas,details,figcaption,figure,
footer,header,hgroup,menu,nav,section,summary,
time,mark,audio,video{
margin:0;
padding:0;
}
article,aside,details,figcaption,figure,footer,
header,hgroup,menu,nav,section{
display: block;
}
table{
border-collapse:collapse;
border-spacing:0;
}
fieldset,img{
border:0;
}
address,caption,cite,dfn,th,var{
font-style:normal;
font-weight:normal;
}
caption,th{
text-align:left;
}
h1,h2,h3,h4,h5,h6{
font-size:100%;
font-weight:normal;
}
q:before,q:after{
content:'';
}
abbr,acronym{
border:0;
}
/*------------------------------------*\
MAIN
\*------------------------------------*/
html{
overflow-y:scroll; /* Force scrollbars 100% of the time */
font-size:100%; /* Use 16px as per http://www.informationarchitects.jp/en/100e2r/ and http://www.wilsonminer.com/posts/2008/oct/20/relative-readability/ */
font-family:Calibri, "Helvetica Neue", Arial, sans-serif; /* Swap these two lines around to switch between serif and sans */
font-family:Cambria, Georgia, "Times New Roman", serif; /* Swap these two lines around to switch between serif and sans */
line-height:1.5;
/*background:url(../img/css/baseline.gif) 0 18px #fff;*/
color:#333;
}
body{
min-height:100%;
}
/*------------------------------------*\
GRIDS
\*------------------------------------*/
/*
Build a custom grid-system igloo at inuitcss.com
*/
/*------------------------------------*\
CLEARFIX
\*------------------------------------*/
/*
Fix clearing issues as per: http://nicolasgallagher.com/micro-clearfix-hack/
*/
.cf,
.grids{
zoom:1;
}
.cf:before,
.grids:before,
.cf:after,
.grids:after{
content:"";
display:table;
}
.cf:after,
.grids:after{
clear:both;
}
/*------------------------------------*\
LOGO
\*------------------------------------*/
/*
Your logo is an image, not a h1: http://csswizardry.com/2010/10/your-logo-is-an-image-not-a-h1/
*/
#logo,
#logo img{
display:block;
width:auto; /* Width of your logo in pixels (ideally a round grid-number) */
height:auto; /* Height of your logo in pixels */
}
/* 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! */
#logo{
background:url(/path/to/logo);
}
#logo:hover{
/* Hover states */
background-position:0 -00px;
}
#logo img{
position:absolute;
left:-99999px;
}
/*------------------------------------*\
NAV
\*------------------------------------*/
.nav{
list-style:none;
margin:0 0 1.5em 0;
}
.nav li{
display:inline;
}
.nav a{
display:inline-block;
}
/*------------------------------------*\
TYPE
\*------------------------------------*/
/*--- HEADINGS ---*/
h1{
font-size:2em; /* 32px */
margin-bottom:0.75em; /* 24px */
line-height:1.5; /* 48px */
}
h2{
font-size:1.5em; /* 24px */
margin-bottom:1em; /* 24px */
line-height:1; /* 24px */
}
h3{
font-size:1.25em; /* 20px */
margin-bottom:1.2em; /* 24px */
line-height:1.2; /* 24px */
}
h4{
font-size:1.125em; /* 18px */
margin-bottom:1.333em; /* 24px */
line-height:1.333; /* 24px */
}
h5{
font-weight:bold;
}
h5,
h6{
font-size:1em; /* 16px */
margin-bottom:1.5em; /* 24px */
line-height:1.5; /* 24px */
}
/*--- PARAGRAPHS ---*/
p,
address{
margin-bottom:1.5em;
}
/*
Mo’ robust paragraph indenting: http://csswizardry.com/2010/12/mo-robust-paragraph-indenting/
Uncomment to activate
p+p{
text-indent:2em;
margin-top:-1.5em;
}
*/
/*--- FIGURES ---*/
figure{
margin-bottom:1.5em;
}
figure img{
display:block;
margin-bottom:0;
}
figcaption{
font-size:0.75em;
}
/*--- LINKS ---*/
/*
Say no to negative hovers: http://csswizardry.com/2011/05/on-negative-hovers/
A negative hover is one whose appearance is subtracted from on hover rather than added to.
*/
a{
text-decoration:none;
}
a:visited{
opacity:0.8; /* A bit basic, but it’s a bare minumum... */
}
a:hover{
text-decoration:underline;
}
a:active,
a:focus{
/* Give clicked links a depressed effect. */
position:relative;
top:1px;
}
/*--- LISTS ---*/
ul,
ol{
margin:0 0 1.5em 60px;
}
ul ul,
ol ol,
ul ol,
ol ul{
/* Let’s take care of lists in lists */
margin:0 0 0 60px;
}
/*
A numbered list is NOT the same as an ordered one.
Use this class when you want a list to be numbered but it has no order.
See http://jsfiddle.net/csswizardry/sdrth/
*/
ul.numbered{
list-style:decimal outside;
}
dl{
margin-bottom:1.5em;
}
dt{
font-weight:bold;
}
dt:after{
content:":";
}
dt::after{
content:":";
}
dd{
margin-left:60px;
}
/*--- QUOTES ---*/
blockquote{
text-indent:-0.4em; /* Hang that punctuation */
}
blockquote b,
blockquote .source{
/* Mark the source up with either a <b> or another element of your choice with a class of source. */
display:block;
text-indent:0;
}
/*--- GENERAL ---*/
q,
i,
em,
cite{
font-style:italic;
font-weight:inherit;
}
b,
strong{
font-weight:bold;
font-style:inherit;
}
mark{
background:#ffc;
}
s,
del{
text-decoration:line-through;
}
small{
font-size:0.75em;
line-height:1;
}
/*--- CODE ---*/
pre,
code{
font-family:monospace;
font-size:1em;
}
pre{
overflow:auto;
margin-bottom:1.5em;
line-height:24px; /* Having to define explicit pixel values :( */
}
code{
line-height:1;
}
/*------------------------------------*\
IMAGES
\*------------------------------------*/
img{
max-width:100%;
height:auto;
/* Give it some text styles to offset alt text */
font-style:italic;
color:#c00;
}
img.left { margin:0 20px 0 0; }
img.right { margin:0 0 0 20px; }
/*--- FLASH/VIDEO ---*/
object,
embed,
video{
max-width:100%;
height:auto;
}
/*------------------------------------*\
FORMS
\*------------------------------------*/
/*
Unfortunately, and somewhat obviously, forms don’t fit the baseline all too well. Perhaps in a later version...
*/
fieldset{
padding:10px;
border:1px solid #ccc;
margin-bottom:1.5em;
}
label{
display:block;
cursor:pointer;
}
label:after{
content:":";
}
label::after{
content:":";
}
input,
textarea{
font-family:inherit;
font-size:1em;
line-height:1.5;
}
/*
Nice UI touch for placeholders. To get placeholders working cross-browser see @dan_bentley’s jQuery plugin: https://github.com/danbentley/placeholder
*/
[placeholder]{
cursor:pointer;
}
[placeholder]:active,
[placeholder]:focus{
cursor:text;
}
.check-list{
width:100%;
overflow:hidden;
list-style:none;
margin:0 0 1.5em 0;
}
.check-list li{
width:25%;
float:left;
}
.check-label{
display:inline;
}
.check-label:after{
content:normal;
}
.check-label::after{
content:normal;
}
.button{
cursor:pointer;
}
fieldset > :last-child{
/* Remove the margin from the last element in the fieldset--this makes our padding more consistent. */
margin:0;
}
/*------------------------------------*\
TABLES
\*------------------------------------*/
/*
Unfortunately, and somewhat obviously, tables don’t fit the baseline all too well. Perhaps in a later version...
*/
table{
margin-bottom:1.5em;
width:100%;
max-width:100%;
}
thead tr:last-of-type th{
/* Thicker border on the table-headers of the last row in the table head */
border-bottom-width:2px;
}
tbody th{
/* Thicker right border on table-headers in the table body */
border-right-width:2px;
}
th:empty{
/* Hide the borders on any empty table-headers */
border:none;
}
th,td{
vertical-align:top;
padding:0.75em;
border:1px solid #ccc;
}
th{
font-weight:bold;
text-align:center
}
table [colspan]{
/* This looks lovely, trust me... */
text-align:center;
}
table [rowspan]{
/* ...as does this. */
vertical-align:middle;
}
/*
Assuming IE has an 'implied' colspan of one on cells without an explicit colspan attribute, fix/undo it.
See http://jsfiddle.net/csswizardry/UJJay/
*/
[colspan="1"]{
text-align:left;
}
[rowspan="1"]{
vertical-align:top;
}
tbody tr:nth-of-type(odd){
background:rgba(0,0,0,0.05);
}
tfoot{
text-align:center;
}
tfoot td{
border-top-width:2px;
}
/*------------------------------------*\
MESSAGES
\*------------------------------------*/
/*
Unfortunately feedback messages don’t fit the baseline all too well. Perhaps in a later version...
*/
.message{
font-weight:normal;
display:block;
padding:10px 10px 10px 36px;
border:1px solid #ccc;
margin:0 0 1.5em 0;
-moz-border-radius:2px;
-webkit-border-radius:2px;
border-radius:2px;
-moz-box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;
-webkit-box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;
box-shadow:0 1px 0 rgba(255,255,255,0.5) inset;
}
/* With multiple errors it’s nice to group them. */
ul.message{
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 */
padding:10px 10px 10px 56px;
}
.error{
border-color:#fb5766;
background:url(../img/css/icons/error.png) 10px center no-repeat #fab;
}
.success{
border-color:#83ba77;
background:url(../img/css/icons/success.png) 10px center no-repeat #d1feba;
}
.info{
border-color:#85a5be;
background:url(../img/css/icons/info.png) 10px center no-repeat #c4dbec;
}
.warning{
border-color:#d8d566;
background:url(../img/css/icons/warning.png) 10px center no-repeat #fef8c4;
}
/*------------------------------------*\
MISC
\*------------------------------------*/
hr{
margin:0 0 1.5em 0;
}
.accessibility{
/* Hide content off-screen without hiding from screen-readers. N.B. This is not suited to RTL languages */
position:absolute;
left:-99999px;
}
.more-link:after{
/* Too many people use » in their markup to signify progression/movement, that ain’t cool. Let’s insert that using content:""; */
content:" »";
}
.more-link::after{
content:" »";
}
/*------------------------------------*\
CLASSES
\*------------------------------------*/
/*
Some not-too-pretty and insemantic classes to do odd jobs.
*/
.left { float:left!important; }
.right { float:right!important; }
.clear { clear:both; float:none; }
.text-left { text-align:left; }
.text-right { text-align:right; }
.text-center,
.text-centre { text-align:center; }
/*------------------------------------*\
DIAGNOSTICS
\*------------------------------------*/
/*
APPLY A CLASS OF .debug TO THE HTML ELEMENT ONLY WHEN YOUR SITE IS ON DEV
Turn the grids back on. Idea given by @VictorPimentel
*/
.debug { background:url(../img/css/baseline.gif) 0 18px #fff!important; }
/*
Red border == something is wrong
Yellow border == something may be wrong, you should double check.
Green border == perfect, nice one!
*/
/* Styles */
.debug [style]{
/* Inline styles aren’t great, can this be avoided? */
outline:5px solid yellow;
}
/* Images */
.debug img{
/* Images without alt attributes are bad! */
outline:5px solid red;
}
.debug img[alt]{
/* Images with alt attributes are good! */
outline-color:green;
}
.debug img[alt=""]{
/* Images with empty alt attributes are okay in the right circumstances. */
outline-color:yellow;
}
/* Links */
.debug a{
/* Links without titles are yellow, does your link need one? */
outline:5px solid yellow;
}
.debug a[title]{
/* Links with titles are green, title attributes can be very useful! */
outline-color:green;
}
.debug a[href="#"]{
/* Were you meant to leave that hash in there? */
outline-color:yellow;
}
.debug a[target]/*,
.debug a[onclick],
.debug a[href*=javascript]*/{
/* What were you thinking?! */
outline-color:red;
}
/* Classes/IDs */
.debug [class=""],
.debug [id=""]{
/* Is this element meant to have an empty class/ID? */
outline:5px solid yellow;
}
/*------------------------------------*\
NARROW
\*------------------------------------*/
/*
CSS for tablets and narrower devices
*/
@media (min-width: 721px) and (max-width: 960px){
}
/*--- END NARROW ---*/
/*------------------------------------*\
MOBILE
\*------------------------------------*/
/*
CSS for mobile devices.
Linearise it!
*/
@media (max-width: 720px){
/*------------------------------------*\
MAIN
\*------------------------------------*/
.debug,
.debug body{
background:none!important;
}
html{
font-size:1.125em;
}
body{
-webkit-text-size-adjust:none;
}
.wrapper{
width:auto!important;
padding:10px!important;
width:auto!important;
}
.grids{
margin:0!important;
width:auto!important;
}
[class^="grid-"],
.grids [class^="grid-"]{
width:auto!important;
float:none!important;
margin:0!important;
}
/*------------------------------------*\
LOGO
\*------------------------------------*/
#logo{
margin:0 auto 1.5em;
}
/*------------------------------------*\
TYPE
\*------------------------------------*/
/*--- LISTS ---*/
ul,
ol{
margin:0 0 1.5em 25px;
}
ul ul,
ol ol,
ul ol,
ol ul{
/* Let’s take care of lists in lists */
margin:0 0 0 25px;
}
dd{
margin-left:25px;
}
/*------------------------------------*\
IMAGES
\*------------------------------------*/
img.left,
img.right { max-width:50%; height:auto; }
}
/*--- END MOBILE ---*/
/*------------------------------------*\
PRINT
\*------------------------------------*/
/*
Good ol’ fashioned paper...
*/
@media print{
/*------------------------------------*\
MAIN
\*------------------------------------*/
/*
Give everything some decent contrast.
*/
*{
background:#fff;
color:#000;
text-shadow:none!important;
}
/*
Set a nice measure and take the font down to print-acceptable sizes.
*/
body{
font-size:0.75em; /* 12px (if base font-size was 16px) */
}
.wrapper{
width:75%;
margin:0 auto;
}
/*
A list of things you don’t want printing. Add to/subtract from as necessary.
*/
.nav,
#footer{
display:none;
}
#logo img{
position:static;
}
/*
Linearise
*/
.grids{
width:auto;
}
[class^="grid-"]{
width:auto;
float:none;
clear:both;
}
/*
Don’t let images break anything.
*/
img{
max-width:100%;
height:auto;
}
/*
Messages look odd with just borders.
*/
.message{
border:none;
font-weight:bold;
}
/*
Try to avoid tables spanning multiple pages. Not failsafe, but a good start.
*/
table{
page-break-before:always;
}
/*
Show the accessibility class.
*/
.accessibility{
position:static;
}
/*
Display the href of any links.
*/
a:link:after,a:visited:after{
content:" (" attr(href) ")";
font-size:smaller;
}
a:link::after,a:visited::after{
content:" (" attr(href) ")";
font-size:smaller;
}
/*
Any links that are root relative to your site need prepending with your URL.
*/
a[href^="/"]:after{
content:" (http://yoururlhere.com" attr(href) ")";
font-size:smaller;
}
a[href^="/"]::after{
content:" (http://yoururlhere.com" attr(href) ")";
font-size:smaller;
}
/*
Any Flash/video content can’t be printed so leave a message.
*/
object:after{
content:"Flash/video content. Head to http://yoururlhere.com/ to view this content.";
display:block;
font-weight:bold;
margin-bottom:1.5em;
}
object::after{
content:"Flash/video content. Head to http://yoururlhere.com/ to view this content.";
display:block;
font-weight:bold;
margin-bottom:1.5em;
}
}
/*--- END PRINT ---*/