-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyleguide.css
More file actions
1404 lines (1331 loc) · 27.3 KB
/
styleguide.css
File metadata and controls
1404 lines (1331 loc) · 27.3 KB
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
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@charset "UTF-8";
/*------------------------------------*\
#PATTERN LAB STYLES
\*------------------------------------*/
/**
* NOTES:
* 1) These styles are specific to Pattern Lab and should not be modified.
* All project styles should be modified in /source/css/
*
* 2) Any !important declarations are to prevent brand styles from overriding
* style guide styles
*/
/*------------------------------------*\
#TABLE OF CONTENTS
\*------------------------------------*/
/**
* PATTERN LAB VARIABLES
* Fonts.......................
* Colors......................
* Typography..................
* Spacing & Padding...........
* Breakpoints.................
* Animation...................
* Borders.....................
*
* RESET.......................CSS reset
*
* UTILITY CLASSES.............Establish global styles
*
* GLOBAL ELEMENTS.............Establish global styles
* -----Main
* -----Headings
* -----Text-related elements (p, blockquote, lists)
* -----Defaults
* -----Breakpoints
* STYLE GUIDE INTERFACE------------------CSS for the Pattern Lab Container.
* -----Header
* -----Navigation
* -----Controls
* -----Main Container
* -----Viewport
* -----Section Headers
* -----Code View
*/
/*------------------------------------*\
#VARIABLES
\*------------------------------------*/
/**
* These variables are specific to the Pattern Lab shell and exist
* indepenedently of any project-specific styles
*/
/*------------------------------------*\
#RESET
\*------------------------------------*/
/**
* Apply border-box to all elements
*
* 1) This is a broadly-applied style that affects every
* element on the screen. This can bleed into user's styles
* but since it's been a best practice for years now we're
* going to default to this.
*/
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/*------------------------------------*\
#UTILITIES
\*------------------------------------*/
/**
* Visibilly hidden but still accessible to screen readers
*/
.is-vishidden {
position: absolute !important;
overflow: hidden;
width: 1px;
height: 1px;
padding: 0;
border: 0;
clip: rect(1px, 1px, 1px, 1px);
}
/*------------------------------------*\
#PATTERN LAB INTERFACE
\*------------------------------------*/
/**
* html & body tag
*/
#patternlab-html, #patternlab-body {
margin: 0;
padding: 0;
background: #ddd;
-webkit-text-size-adjust: 100%;
}
/*------------------------------------*\
#HEADER
\*------------------------------------*/
/**
* Pattern Lab's header is fixed across the top of the viewport and
* contains the primary pattern navigation, viewport resizing items,
* and tools.
*/
.sg-header {
background: #000;
color: #fff;
font-family: "HelveticaNeue", "Helvetica", "Arial", sans-serif;
text-transform: uppercase;
position: fixed;
top: 0;
left: 0;
z-index: 4;
width: 100%;
/**
* All lists appearing in the header
*/
/**
* All links appearing in the header
*/
}
.sg-header ul {
padding: 0;
margin: 0;
list-style: none;
}
.sg-header a {
font-size: 70%;
color: #808080;
text-decoration: none;
line-height: 1;
padding: 1em 0.7em;
-webkit-transition: background 0.1s ease-out;
transition: background 0.1s ease-out;
-webkit-transition: color 0.1s ease-out;
transition: color 0.1s ease-out;
}
.sg-header a:hover, .sg-header a:focus, .sg-header a.active {
color: #fff;
background: #222;
}
/*------------------------------------*\
#NAVIGATION
\*------------------------------------*/
/**
* Nav toggle expands and collapses .sg-nav
* 1) On larger viewports, the toggle gets hidden and
* the full nav is displayed across the top.
*/
.sg-nav-toggle {
display: inline-block;
position: relative;
text-transform: uppercase;
z-index: 2;
}
@media all and (min-width: 42em) {
.sg-nav-toggle {
display: none;
}
}
/**
* Navigation container
*/
@media all and (max-width: 42em) {
.sg-nav-container {
overflow: hidden;
max-height: 0;
-webkit-transition: max-height 0.1s ease-out;
transition: max-height 0.1s ease-out;
}
.sg-nav-container.active {
max-height: 50em;
}
}
/**
* Nav list
* 1) appears as an <ol>
*/
.sg-nav {
z-index: 1;
margin: 0;
padding: 0;
list-style: none;
/**
* Nav <ol> list
*/
/**
* Links within the nav
*/
}
.sg-nav > li {
cursor: pointer;
}
@media all and (min-width: 42em) {
.sg-nav > li {
border-bottom: 0;
float: left;
position: relative;
}
.sg-nav > li > ol {
position: absolute;
top: 2em;
left: 0;
}
}
.sg-nav a {
display: block;
}
/*------------------------------------*\
#ACCORDION
\*------------------------------------*/
/**
* Accordions are dropdowns used for the primary nav and
* tools dropdowns.
*/
.sg-acc-handle {
/**
* Dropdown caret after accordion handle
*/
}
.sg-acc-handle:after {
content: 'Ôû╝';
color: rgba(255, 255, 255, 0.25);
display: inline-block;
font-size: 7px;
position: relative;
top: -1px;
right: -2px;
-webkit-transition: all 0.1s ease-out;
transition: all 0.1s ease-out;
}
@media all and (min-width: 42em) {
.sg-acc-handle:after {
float: none;
}
}
.sg-acc-handle:hover:after, .sg-acc-handle:focus:after {
color: #808080;
}
.sg-acc-handle.active {
color: #fff;
background: #222;
}
.sg-acc-handle.active:after {
top: -2px;
color: #808080;
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
/**
* Accordion panel
*/
.sg-acc-panel {
overflow: hidden;
max-height: 0;
margin: 0;
padding: 0;
list-style: none;
min-width: 10em;
-webkit-transition: max-height 0.1s ease-out;
transition: max-height 0.1s ease-out;
/**
* List items appearing in each accordion panel
*/
/**
* Links appearing in each accordion panel
*/
/**
* Active is when accordion panel is open
*/
/**
* Right align accordion dropdown
*/
}
.sg-acc-panel li {
background: #222;
}
.sg-acc-panel li:last-child {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.sg-acc-panel li:last-child a {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.sg-acc-panel a {
display: block;
}
.sg-acc-panel.active {
max-height: 120em;
overflow: auto;
}
.sg-acc-panel.sg-right {
position: absolute;
left: auto;
right: 0;
}
/**
* Sub-navigation
* 1) Third-level links are stylistically different
* than first and second nav links.
*/
.sg-sub-nav {
list-style: none;
}
.sg-sub-nav a {
text-transform: none;
padding-left: 1rem;
}
/*------------------------------------*\
#CONTROLS
\*------------------------------------*/
/**
* Controls contains viewport resizer and tools dropdown
*/
.sg-controls {
border: 0;
position: absolute;
top: 0;
right: 0;
z-index: 2;
}
/**
* Control list
*/
.sg-control > li {
float: left;
}
/*------------------------------------*\
#ISH STYLES
\*------------------------------------*/
/**
* 1) ish. (http://bradfrost.com/demo/ish/) is a viewport-resizing tool
* that's built into Pattern Lab.
*/
/**
* Size Container
*/
.sg-size {
width: 135px;
}
@media all and (min-width: 42em) {
.sg-size {
width: auto;
}
}
/**
* Current size
* 1) This is the wrapper for the form that houses the current
* viewport size in px and em
*/
.sg-current-size {
font-size: 70%;
color: #808080;
padding: 0.85em 0.7em;
}
@media all and (min-width: 53em) {
.sg-current-size {
float: left;
}
}
/**
* The <form> for the current size
*/
#sg-form {
margin: 0;
border: 0;
padding: 0;
}
/**
* Size input fields
*/
.sg-input {
margin: -2px 0 0 0;
padding: 0.1em;
border: 0;
border-radius: 3px;
background: #000;
color: #808080;
width: 25px;
text-align: right;
-webkit-transition: all 0.1s ease-out;
transition: all 0.1s ease-out;
}
.sg-input:hover {
color: #fff;
background: #222;
}
.sg-input:active, .sg-input:focus {
outline: 0;
background: #808080;
color: #fff;
}
@media all and (min-width: 42em) {
.sg-input {
width: 35px;
}
.sg-input.sg-size-px {
width: 30px;
}
}
/**
* Size options
* 1) This holds the S, M, L, Rand, Disco links
* 2) Depending on the config, these number of options may be
* larger or smaller.
*/
.sg-size-options {
display: none;
}
.sg-size-options a {
display: block;
}
@media all and (min-width: 53em) {
.sg-size-options {
display: block;
float: left;
position: static;
}
.sg-size-options > li {
float: left;
}
}
/*------------------------------------*\
#TOOLS DROPDOWN
\*------------------------------------*/
/**
* The tools dropdown contains more utilities such as show/hide
* pattern info and pattern search, and also links to open in a
* new window and view the documentation
*/
/**
* Tools dropdown button
*/
.sg-tools-toggle {
font-size: 70%;
background: #000;
color: #808080;
text-decoration: none;
line-height: 1;
border: 0;
cursor: pointer;
padding: 0.9em 0.7em 0.6em;
}
.sg-tools-toggle:after {
display: none;
content: "";
}
/**
* Pattern Finder
* 1) This is the container for pattern search, which
* is handled by Typeahead (see below styles)
*/
.sg-find {
position: relative;
}
/*------------------------------------*\
#TYPEAHEAD
\*------------------------------------*/
/**
* We're using Twitter Typeahead to autocomplete pattern
* searches. https://twitter.github.io/typeahead.js/
*/
.twitter-typeahead {
width: 100%;
}
.typeahead {
border: 0;
background: #222;
color: #808080;
width: 100%;
right: 0;
padding: 0.8em;
text-transform: lowercase;
}
.typeahead:focus {
background: #808080;
color: #fff;
}
.tt-input {
background: #808080;
color: #fff;
text-transform: uppercase;
}
.tt-input:focus {
text-transform: lowercase;
}
.tt-hint {
text-transform: lowercase;
border-bottom-right-radius: 6px;
border-bottom-left-radius: 6px;
}
.tt-dropdown-menu {
text-transform: lowercase;
background-color: #808080;
width: 100%;
border-bottom-right-radius: 6px;
border-bottom-left-radius: 6px;
}
.tt-suggestion {
color: #eee;
font-size: 75%;
padding: 0.8em;
}
.tt-suggestion.tt-cursor {
color: #fff;
background: rgba(255, 255, 255, 0.25);
}
.tt-suggestion p {
margin: 0;
}
/*------------------------------------*\
#PATTERN STATES
\*------------------------------------*/
/**
* Pattern states add color-coded dots next to patterns
* in the dropdown navigation.
*/
.sg-pattern-state {
text-transform: none !important;
}
/**
* Pattern State bullet
*/
.sg-pattern-state:before {
content: "\2022";
margin-right: 4px;
font-size: 18px;
vertical-align: bottom;
display: inline-block;
text-decoration: none;
}
/**
* when part of a lineage muck with the size
*/
.sg-pattern-lineage .sg-pattern-state:before {
font-size: 12px;
}
/**
* when part of a view all view muck with the size
*/
#sg-patterns .sg-pattern-state:before {
font-size: 14px;
}
#sg-patterns .sg-pattern-state {
color: #666;
}
/**
* Pattern States that appear in the dropdown nav
*/
.sg-nav .sg-pattern-state:before {
margin-top: -4px;
margin-bottom: 0;
margin-left: -4px;
height: 20px;
display: block;
float: left;
}
/**
* In Progress state
*/
.inprogress:before {
color: #FF4136 !important;
}
/**
* In Review state
*/
.inreview:before {
color: #FFCC00 !important;
}
/**
* Complete state
*/
.complete:before {
color: #2ECC40 !important;
}
/*------------------------------------*\
#PATTERN LAB VIEWPORT
\*------------------------------------*/
/**
* To keep user code and PL code separate, and to make
* resizing the viewport possible, PL contains an iframe
* that houses all user code.
*/
/**
* Viewport wrapper div
* 1) This wrapper div occupies all remaining viewport space after PL's header
*/
#sg-vp-wrap {
text-align: center;
width: 100%;
position: fixed;
top: 2em;
bottom: 0;
left: 0;
right: 0;
z-index: 0;
}
/**
* Cover
* 1) This is an invisible div that sits above the iframe and is
* used in JS for manual viewport resizing purposes.
*/
#sg-cover {
width: 100%;
height: 100%;
display: none;
position: absolute;
z-index: 20;
cursor: col-resize;
}
/**
* Gen Cover
* 1) This is
*/
#sg-gen-container {
height: 100%;
position: relative;
text-align: center;
margin: 0 auto;
-webkit-overflow-scrolling: touch;
overflow-y: auto;
overflow-x: hidden;
}
#sg-gen-container.hay-mode {
-webkit-transition: all 40s linear;
transition: all 40s linear;
}
/**
* Viewport iframe
* 1) this is the actual <iframe>
*/
#sg-viewport {
position: absolute;
height: 100%;
width: 100%;
border: 0;
padding: 0;
margin: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: white;
/**
* Hay Mode transition
* 1) Hay Mode (disabled by default) starts with the smallest
* viewport then slowly expands http://bradfrost.com/blog/post/ish-2-0/
*/
}
#sg-viewport.hay-mode {
-webkit-transition: all 40s linear;
transition: all 40s linear;
}
/**
* Right pull container
* 1) Container used for manual resizing
*/
#sg-rightpull-container {
width: 14px;
float: right;
margin: 0;
height: 100%;
cursor: col-resize;
}
/**
* Right pull
* 1) This is the handle that lets the user resize the viewport
*/
#sg-rightpull {
margin: 0;
width: 100%;
height: 100%;
background: #c2c2c2;
-webkit-transition: background 0.1s ease-out;
transition: background 0.1s ease-out;
}
#sg-rightpull:hover {
background: #808080;
}
#sg-rightpull:active {
cursor: col-resize;
background: #666;
}
/**
* VP animate
* 1) This is an added class that is activated by JS to
* transition the width of the viewport
*/
.vp-animate {
-webkit-transition: width 0.8s ease-out;
transition: width 0.8s ease-out;
}
/*------------------------------------*\
#PATTERN LAB CONTENT
\*------------------------------------*/
/**
* Pattern
* 1) This is an individual pattern that appears in the "view all" template.
* It contains pattern title and toggle to view more information, such as
* description, lineage, code, etc.
* 2) Prevents absolutely-positioned elements from floating to the top
* 3) Prevents floated patterns from floating wraps
*/
.sg-pattern {
margin-bottom: 2em;
position: relative;
/* 2 */
clear: both;
/* 3 */
}
/**
* Pattern Header
*/
.sg-pattern-head {
position: relative;
padding: 0.5rem 0 0;
line-height: 1.3;
font-size: 90%;
color: #808080;
}
.sg-pattern-head:empty {
padding: 0;
}
/**
* Pattern Title
*/
.sg-pattern-title {
font-family: "HelveticaNeue", "Helvetica", "Arial", sans-serif !important;
font-size: 0.85rem !important;
line-height: 1 !important;
font-weight: bold !important;
margin: 0 !important;
padding: 0 !important;
text-transform: capitalize !important;
/**
* Pattern State that appears within a pattern title
*/
}
.sg-pattern-title a {
display: inline-block;
padding: 1em 0 0.3rem;
color: #808080 !important;
text-decoration: none;
cursor: pointer;
font-weight: bold;
}
.sg-pattern-title a:hover, .sg-pattern-title a:focus {
color: #000 !important;
}
.sg-pattern-title .sg-pattern-state {
font-size: 80%;
font-weight: normal;
color: #ccc;
}
/**
* Pattern Extra Toggle Button
* 1) This is the button that twirls down extra pattern info
*/
.sg-pattern-extra-toggle {
font-size: 9px;
position: absolute;
bottom: -1px;
right: 0;
z-index: 1;
padding: 0.65em;
line-height: 1;
color: #808080;
font-weight: normal;
border: 1px solid #ddd;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
-webkit-transition: background 0.1s ease-out;
transition: background 0.1s ease-out;
}
.sg-pattern-extra-toggle span {
display: inline-block;
}
.sg-pattern-extra-toggle:hover, .sg-pattern-extra-toggle:focus, .sg-pattern-extra-toggle.active {
background: #eee;
color: #000;
}
.sg-pattern-extra-toggle.active {
border-bottom-color: #eee;
}
.sg-pattern-extra-toggle.active span {
-webkit-transform: rotate(180deg);
-ms-transform: rotate(180deg);
transform: rotate(180deg);
}
/**
* Pattern Extra
* 1) This is the info panel that contains extra pattern info
* like pattern description, lineage, code, and more
*/
.sg-pattern-extra {
background: #eee;
border-top: 1px solid #ddd;
margin-bottom: 1em;
overflow: hidden;
max-height: 1px;
-webkit-transition: all 0.1s ease-out;
transition: all 0.1s ease-out;
}
.sg-pattern-extra a {
text-decoration: underline;
color: #222;
}
.sg-pattern-extra a:hover, .sg-pattern-extra a:focus {
color: #808080;
}
.sg-pattern-extra.active {
border: 1px solid #ddd;
border-radius: 6px;
border-top-right-radius: 0;
max-height: 50em;
}
/**
* Pattern Extra
* 1) This is the info panel that contains extra pattern info
* like pattern description, lineage, code, and more
*/
@media all and (min-width: 42em) {
.sg-pattern-extra-inner {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
width: 100%;
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
}
}
/**
* Pattern Extra Info
* 1) This div contains pattern description, lineage, status, and other info
*/
.sg-pattern-extra-info {
padding: 0.5rem 0.5rem 0;
line-height: 1.4;
font-size: 90%;
color: #808080;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.sg-pattern-extra-info:empty {
padding: 0;
}
@media all and (min-width: 42em) {
.sg-pattern-extra-info {
padding: 1em;
width: 40%;
}
}
/**
* Pattern Description
*/
.sg-pattern-desc {
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #ccc;
}
.sg-pattern-desc p:last-child {
margin: 0;
}
/**
* Pattern Lineage info
*/
.sg-pattern-lineage {
font-size: 90%;
font-style: italic;
}
/**
* Pattern Code Container
*/
.sg-pattern-extra-code {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
font-size: 90%;
padding: 0.5rem;
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
/**
* Code blocks
*/
}
.sg-pattern-extra-code pre {
overflow: scroll !important;
-webkit-overflow-scrolling: touch;
padding: 0 0.5rem 0.5rem !important;
margin: 0 !important;
line-height: 1 !important;
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
border-radius: 0 6px 6px 6px !important;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.sg-pattern-extra-code code {
display: block;
-moz-tab-size: 2 !important;
-o-tab-size: 2 !important;
tab-size: 2 !important;
}
@media all and (min-width: 42em) {
.sg-pattern-extra-code {
width: 60%;
padding: 1em;
}
}
/**
* Pattern Category
* 1) This appears in the index page and delineates a major section,
* such as "global", "blocks", "etc".
* 2) The category contains a title and optional description
*/
.sg-pattern-category {
margin-top: 6rem;
font: "HelveticaNeue", "Helvetica", "Arial", sans-serif !important;
}
.sg-pattern-category:first-of-type {
margin-top: 2rem;
}
/**
* Pattern Category Title
*/
.sg-pattern-category-title {
font-size: 1.4rem !important;
color: #222 !important;
margin: 0 0 0.2rem;
text-transform: capitalize;
}
.sg-pattern-category-title a {
-webkit-transition: color 0.1s ease-out;
transition: color 0.1s ease-out;