jekyll_patternbot 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,7 @@ module JekyllPatternbot
11
11
  },
12
12
  :layouts => [],
13
13
  :patterns => {},
14
+ :patterns_order => [],
14
15
  :pages => [],
15
16
  }
16
17
 
@@ -67,7 +68,11 @@ module JekyllPatternbot
67
68
 
68
69
  pages = SamplePagesFinder.new
69
70
  PatternbotData[:pages] = pages.info
71
+ if PatternbotData[:pages].is_a? Array
72
+ PatternbotData[:pages].sort_by!{ |p| p.downcase }
73
+ end
70
74
 
75
+ PatternbotData[:patterns_order] = PatternsOrderProcessor.new.process
71
76
  brand_processor = BrandProcessor.new.process
72
77
  modules_processor = ModulesProcessor.new.process
73
78
  icons_processor = IconsProcessor.new.process
@@ -5,6 +5,7 @@ module JekyllPatternbot
5
5
  {
6
6
  :primary => [],
7
7
  :secondary => [],
8
+ :tertiary => [],
8
9
  :neutral => [],
9
10
  :accent => [],
10
11
  :raw => {},
@@ -42,8 +43,9 @@ module JekyllPatternbot
42
43
  if self.is_color? dec
43
44
  colors[:primary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-primary/)
44
45
  colors[:secondary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-secondary/)
46
+ colors[:tertiary].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-tertiary/)
45
47
  colors[:neutral].push(self.parse_color(dec, val)) if dec.match(/\-\-color\-neutral/)
46
- colors[:accent].push(self.parse_color(dec, val)) unless dec.match(/\-\-color\-(primary|secondary|neutral)/)
48
+ colors[:accent].push(self.parse_color(dec, val)) unless dec.match(/\-\-color\-(primary|secondary|tertiary|neutral)/)
47
49
  colors[:raw][dec] = val
48
50
  end
49
51
  end
@@ -5,6 +5,7 @@ module JekyllPatternbot
5
5
  {
6
6
  :primary => false,
7
7
  :secondary => false,
8
+ :tertiary => false,
8
9
  :accent => [],
9
10
  }
10
11
  end
@@ -104,7 +105,8 @@ module JekyllPatternbot
104
105
  if self.is_font? dec
105
106
  fonts[:primary] = self.parse_font(dec, val, available_weights) if dec.match(/^\-\-font\-primary/)
106
107
  fonts[:secondary] = self.parse_font(dec, val, available_weights) if dec.match(/^\-\-font\-secondary/)
107
- fonts[:accent].push self.parse_font(dec, val, available_weights) unless dec.match(/^\-\-font\-(primary|secondary)/)
108
+ fonts[:tertiary] = self.parse_font(dec, val, available_weights) if dec.match(/^\-\-font\-tertiary/)
109
+ fonts[:accent].push self.parse_font(dec, val, available_weights) unless dec.match(/^\-\-font\-(primary|secondary|tertiary)/)
108
110
  end
109
111
  end
110
112
  fonts
@@ -0,0 +1,10 @@
1
+ module JekyllPatternbot
2
+ class PatternsOrderProcessor
3
+
4
+ def process
5
+ pattern_names = PatternbotData[:patterns][:user].keys
6
+ pattern_names.sort_by!{ |p| p.downcase }
7
+ end
8
+
9
+ end
10
+ end
@@ -18,6 +18,11 @@ html {
18
18
  .patternbot-list-group {
19
19
  background-color: transparent;
20
20
  text-align: left;
21
+ list-style-type: none;
22
+ }
23
+
24
+ .patternbot-list-group > li {
25
+ list-style-type: none;
21
26
  }
22
27
 
23
28
  .patternbot-list-group > li::before {
@@ -1 +1 @@
1
- :root{--color-patternbot-primary:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.9);--color-patternbot-opposite:rgba(var(--color-patternbot-interface-opposite),var(--color-patternbot-interface-opposite),var(--color-patternbot-interface-opposite),.9);--color-patternbot-interface-background:#fff;--font-patternbot-primary:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;--font-patternbot-code:"Source Code Pro",monospace}html{font-family:var(--font-patternbot-primary)}.patternbot-no-wrap{white-space:nowrap}.patternbot-list-group{background-color:transparent;text-align:left}.patternbot-list-group>li:before{content:"";display:none}.patternbot-font-primary{font-family:var(--font-patternbot-primary)}.patternbot-color-body{color:var(--color-patternbot-primary)}.patternbot-max-length{margin-left:0;margin-right:0}code,pre{display:block;margin:0;overflow-x:hidden;color:var(--color-patternbot-primary);font-family:var(--font-patternbot-code);font-size:14px;font-style:normal;font-weight:400;line-height:2}code{padding:0 .4em .15em;background-color:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.05);border:1px solid transparent;border-color:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.05);border-radius:4px}.patternbot-hr{border-width:1px;border-color:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.1)}.patternbot-hr:last-child,.patternbot-hr:last-of-type:not(:first-child){display:none}.patternbot-hr.patternbot-hr-always-visible,.patternbot-hr.patternbot-hr-always-visible:last-of-type:not(:first-child){display:block}.patternbot-code-invisible{background-color:transparent;border-color:transparent}.patternbot-max-length-short{margin:0 auto;max-width:24em}.patternbot-pad-box{background-color:var(--color-patternbot-interface-accent,--color-primary,rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface)))}.patternbot-pad-box-inner{overflow:hidden;background-color:var(--color-patternbot-interface-background)}.patternbot-spacing-display h2{color:var(--color-patternbot-primary);line-height:1.9;font-family:var(--font-patternbot-primary);font-size:32px;font-style:normal;font-weight:700}.patternbot-mq-display-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}.patternbot-mq-display-wrap,.patternbot-mq-display-wrap *{color:var(--color-patternbot-primary);line-height:2;font-family:var(--font-patternbot-primary);font-size:14px;font-style:normal;font-weight:400}.patternbot-mq-display{background-color:transparent;overflow:hidden}.patternbot-mq-display>li{padding:0}.patternbot-mq-display>li:last-child{padding-bottom:6rem}.patternbot-mq-inner{min-height:2rem;background-color:var(--color-patternbot-interface-accent,--color-primary,rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.1));border-top:2px solid var(--color-patternbot-interface-background)}.patternbot-mq-list{min-width:24em;padding-top:2.2rem;border-left:2px solid var(--color-patternbot-interface-accent,--color-primary,rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.1))}.patternbot-mq-list>dd,.patternbot-mq-list>dt{padding:0;font-weight:400;font-style:normal;font-size:inherit}.patternbot-mq-list>dt{width:7em}.patternbot-code-details{margin:0 0 .75em;padding:1.5em 0 0;border-bottom:1px solid rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.05);font-size:14px;line-height:2;text-align:left}.patternbot-code-details,.patternbot-code-details *{color:var(--color-patternbot-primary)}.patternbot-code-details-under{padding-top:0;border:0}.patternbot-code-details-center{text-align:center}.patternbot-tool-btn{display:flex;left:100%;min-height:1.4em;min-width:1.2em;padding:1px 2px 2px;position:absolute;top:50%;transform:translateY(-50%);background-color:transparent;border:2px solid transparent;border-radius:4px;cursor:pointer;opacity:.4}.patternbot-tool-btn,.patternbot-tool-btn *{stroke:var(--color-patternbot-primary);color:var(--color-patternbot-primary)}.patternbot-tool-btn:focus,.patternbot-tool-btn:hover{background-color:transparent;border-color:transparent;outline:none;opacity:1;color:var(--color-patternbot-primary)}.patternbot-tool-btn:active,.patternbot-tool-btn:focus,.patternbot-tool-btn[aria-pressed=true]{border-color:var(--color-patternbot-primary)}
1
+ :root{--color-patternbot-primary:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.9);--color-patternbot-opposite:rgba(var(--color-patternbot-interface-opposite),var(--color-patternbot-interface-opposite),var(--color-patternbot-interface-opposite),.9);--color-patternbot-interface-background:#fff;--font-patternbot-primary:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;--font-patternbot-code:"Source Code Pro",monospace}html{font-family:var(--font-patternbot-primary)}.patternbot-no-wrap{white-space:nowrap}.patternbot-list-group{background-color:transparent;text-align:left;list-style-type:none}.patternbot-list-group>li{list-style-type:none}.patternbot-list-group>li:before{content:"";display:none}.patternbot-font-primary{font-family:var(--font-patternbot-primary)}.patternbot-color-body{color:var(--color-patternbot-primary)}.patternbot-max-length{margin-left:0;margin-right:0}code,pre{display:block;margin:0;overflow-x:hidden;color:var(--color-patternbot-primary);font-family:var(--font-patternbot-code);font-size:14px;font-style:normal;font-weight:400;line-height:2}code{padding:0 .4em .15em;background-color:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.05);border:1px solid transparent;border-color:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.05);border-radius:4px}.patternbot-hr{border-width:1px;border-color:rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.1)}.patternbot-hr:last-child,.patternbot-hr:last-of-type:not(:first-child){display:none}.patternbot-hr.patternbot-hr-always-visible,.patternbot-hr.patternbot-hr-always-visible:last-of-type:not(:first-child){display:block}.patternbot-code-invisible{background-color:transparent;border-color:transparent}.patternbot-max-length-short{margin:0 auto;max-width:24em}.patternbot-pad-box{background-color:var(--color-patternbot-interface-accent,--color-primary,rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface)))}.patternbot-pad-box-inner{overflow:hidden;background-color:var(--color-patternbot-interface-background)}.patternbot-spacing-display h2{color:var(--color-patternbot-primary);line-height:1.9;font-family:var(--font-patternbot-primary);font-size:32px;font-style:normal;font-weight:700}.patternbot-mq-display-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}.patternbot-mq-display-wrap,.patternbot-mq-display-wrap *{color:var(--color-patternbot-primary);line-height:2;font-family:var(--font-patternbot-primary);font-size:14px;font-style:normal;font-weight:400}.patternbot-mq-display{background-color:transparent;overflow:hidden}.patternbot-mq-display>li{padding:0}.patternbot-mq-display>li:last-child{padding-bottom:6rem}.patternbot-mq-inner{min-height:2rem;background-color:var(--color-patternbot-interface-accent,--color-primary,rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.1));border-top:2px solid var(--color-patternbot-interface-background)}.patternbot-mq-list{min-width:24em;padding-top:2.2rem;border-left:2px solid var(--color-patternbot-interface-accent,--color-primary,rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.1))}.patternbot-mq-list>dd,.patternbot-mq-list>dt{padding:0;font-weight:400;font-style:normal;font-size:inherit}.patternbot-mq-list>dt{width:7em}.patternbot-code-details{margin:0 0 .75em;padding:1.5em 0 0;border-bottom:1px solid rgba(var(--color-patternbot-interface),var(--color-patternbot-interface),var(--color-patternbot-interface),.05);font-size:14px;line-height:2;text-align:left}.patternbot-code-details,.patternbot-code-details *{color:var(--color-patternbot-primary)}.patternbot-code-details-under{padding-top:0;border:0}.patternbot-code-details-center{text-align:center}.patternbot-tool-btn{display:flex;left:100%;min-height:1.4em;min-width:1.2em;padding:1px 2px 2px;position:absolute;top:50%;transform:translateY(-50%);background-color:transparent;border:2px solid transparent;border-radius:4px;cursor:pointer;opacity:.4}.patternbot-tool-btn,.patternbot-tool-btn *{stroke:var(--color-patternbot-primary);color:var(--color-patternbot-primary)}.patternbot-tool-btn:focus,.patternbot-tool-btn:hover{background-color:transparent;border-color:transparent;outline:none;opacity:1;color:var(--color-patternbot-primary)}.patternbot-tool-btn:active,.patternbot-tool-btn:focus,.patternbot-tool-btn[aria-pressed=true]{border-color:var(--color-patternbot-primary)}
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Modulifier || Code released under the UNLICENSE
3
3
  * Code under other copyrights & licenses listed below.
4
- * https://modulifier.web-dev.tools/#responsive;images;list-group;icons;hidden;positioning
4
+ * https://modulifier.web-dev.tools/#responsive;images;list-group;embed;media-object;icons;hidden;positioning;nice-lists;forms;buttons;accessibility;print
5
5
  */
6
6
 
7
7
  @-moz-viewport { width: device-width; scale: 1; }
@@ -145,6 +145,91 @@ svg.img-flex {
145
145
  min-width: 12em;
146
146
  }
147
147
 
148
+ .embed {
149
+ margin-left: 0;
150
+ margin-right: 0;
151
+ overflow: hidden;
152
+ position: relative;
153
+ width: 100%;
154
+ }
155
+
156
+ .embed-1by1, .embed--1by1 {
157
+ padding-top: 100%; /* Square */
158
+ }
159
+
160
+ .embed-4by3, .embed--4by3 {
161
+ padding-top: 75%; /* Traditional TV/computer screens */
162
+ }
163
+
164
+ .embed-iso216, .embed--iso216 {
165
+ padding-top: 70.92%; /* A-standard paper sizes */
166
+ }
167
+
168
+ .embed-3by2, .embed--3by2 {
169
+ padding-top: 66.6%; /* Classic 35 mm film & most digital photos, landscape */
170
+ }
171
+
172
+ .embed-2by3, .embed--2by3 {
173
+ padding-top: 150%; /* Classic 35 mm film & most digital photos, portrait */
174
+ }
175
+
176
+ .embed-golden, .embed--golden {
177
+ padding-top: 61.8%; /* The Golden Ratio */
178
+ }
179
+
180
+ .embed-16by9, .embed--16by9 {
181
+ padding-top: 56.25%; /* HD TV */
182
+ }
183
+
184
+ .embed-185by100, .embed--185by100 {
185
+ padding-top: 54.05%; /* Common widescreen cinema */
186
+ }
187
+
188
+ .embed-24by10, .embed--24by10 {
189
+ padding-top: 41.667%; /* Widescreen cinema: 2.4:1 */
190
+ }
191
+
192
+ .embed-3by1, .embed--3by1 {
193
+ padding-top: 33.3333%; /* Panorama photos */
194
+ }
195
+
196
+ .embed-4by1, .embed--4by1 {
197
+ padding-top: 25%; /* Polyvision */
198
+ }
199
+
200
+ .embed-5by1, .embed--5by1 {
201
+ padding-top: 20%; /* Really wide... */
202
+ }
203
+
204
+ .embed-item, .embed__item {
205
+ min-height: 100%;
206
+ left: 0;
207
+ position: absolute;
208
+ top: 0;
209
+ width: 100%;
210
+ }
211
+
212
+ .media {
213
+ overflow: hidden;
214
+ }
215
+
216
+ .media-img, .media__img {
217
+ float: left;
218
+ }
219
+
220
+ .media-img-reversed, .media__img--reversed {
221
+ float: right;
222
+ }
223
+
224
+ .media-img-stacked, .media__img--stacked {
225
+ float: none;
226
+ }
227
+
228
+ .media-body, .media__body {
229
+ overflow: hidden;
230
+ min-width: 12em; /* Slightly less than 200px, responsiveness built in */
231
+ }
232
+
148
233
  .icon {
149
234
  display: inline-block;
150
235
  position: relative;
@@ -537,3 +622,680 @@ svg.img-flex {
537
622
  height: 100vh;
538
623
  max-height: 46em;
539
624
  }
625
+
626
+ ul {
627
+ list-style-type: none;
628
+ }
629
+
630
+ ul > li::before {
631
+ content: "·";
632
+ float: left;
633
+ margin-left: -1.6em;
634
+ width: 1.3em;
635
+ text-align: right;
636
+ }
637
+
638
+ ol {
639
+ counter-reset: ol-simple-numbers;
640
+ list-style-type: none;
641
+ }
642
+
643
+ ol > li::before {
644
+ float: left;
645
+ margin-left: -1.6em;
646
+ width: 1.3em;
647
+ counter-increment: ol-simple-numbers;
648
+ content: counter(ol-simple-numbers);
649
+ text-align: right;
650
+ }
651
+
652
+ .list-group > li::before,
653
+ .list-group-inline > li::before,
654
+ .list-group--inline > li::before {
655
+ content: none;
656
+ }
657
+
658
+ /* stylelint-disable no-descending-specificity */
659
+
660
+ /*
661
+ * (c) Nicolas Gallagher and Jonathan Neal of Normalize.css || MIT License
662
+ * https://necolas.github.io/normalize.css/
663
+ */
664
+
665
+ button,
666
+ input,
667
+ optgroup,
668
+ select,
669
+ textarea {
670
+ color: inherit;
671
+ font: inherit;
672
+ margin: 0;
673
+ }
674
+
675
+ button,
676
+ input {
677
+ overflow: visible;
678
+ }
679
+
680
+ button,
681
+ select {
682
+ text-transform: none;
683
+ }
684
+
685
+ button,
686
+ html [type="button"],
687
+ [type="reset"],
688
+ [type="submit"] {
689
+ -webkit-appearance: button;
690
+ cursor: pointer;
691
+ }
692
+
693
+ button[disabled],
694
+ html input[disabled] {
695
+ cursor: default;
696
+ }
697
+
698
+ button::-moz-focus-inner,
699
+ input::-moz-focus-inner {
700
+ border: 0;
701
+ padding: 0;
702
+ }
703
+
704
+ [type="checkbox"],
705
+ [type="radio"] {
706
+ opacity: 0;
707
+ position: absolute;
708
+ height: 1px;
709
+ width: 1px;
710
+ }
711
+
712
+ [type="number"]::-webkit-inner-spin-button,
713
+ [type="number"]::-webkit-outer-spin-button {
714
+ height: auto;
715
+ }
716
+
717
+ [type="search"]::-webkit-search-cancel-button,
718
+ [type="search"]::-webkit-search-decoration {
719
+ -webkit-appearance: none;
720
+ }
721
+
722
+ fieldset {
723
+ padding-left: 0;
724
+ padding-right: 0;
725
+
726
+ border: 0;
727
+ border-top: 2px solid #666;
728
+ }
729
+
730
+ legend {
731
+ color: inherit;
732
+ display: table;
733
+ max-width: 100%;
734
+ padding: 0 .3em 0 0;
735
+ white-space: normal;
736
+
737
+ border: 0;
738
+
739
+ font-weight: bold;
740
+ }
741
+
742
+ optgroup {
743
+ font-weight: bold;
744
+ }
745
+
746
+ ::-webkit-input-placeholder {
747
+ color: inherit;
748
+ opacity: .54;
749
+ }
750
+
751
+ ::-webkit-file-upload-button {
752
+ -webkit-appearance: button;
753
+ font: inherit;
754
+ }
755
+
756
+ /* End Normalize.css code */
757
+
758
+ label,
759
+ .label-block {
760
+ display: block;
761
+ cursor: pointer;
762
+ }
763
+
764
+ [type="checkbox"] + label,
765
+ [type="radio"] + label,
766
+ .label-inline {
767
+ display: inline-block;
768
+ }
769
+
770
+ input:not([type]),
771
+ [type="text"],
772
+ [type="number"],
773
+ [type="search"],
774
+ [type="url"],
775
+ [type="email"],
776
+ [type="password"],
777
+ [type="tel"],
778
+ [type="datetime-local"],
779
+ [type="month"],
780
+ [type="week"],
781
+ [type="date"],
782
+ [type="time"],
783
+ [type="range"],
784
+ select,
785
+ textarea {
786
+ -moz-appearance: none;
787
+ -webkit-appearance: none;
788
+ appearance: none;
789
+ }
790
+
791
+ input,
792
+ textarea {
793
+ display: block;
794
+ width: 100%;
795
+
796
+ background-color: #fff;
797
+ border: 2px solid #666;
798
+ border-radius: 0;
799
+ }
800
+
801
+ label {
802
+ vertical-align: middle;
803
+ }
804
+
805
+ textarea {
806
+ max-width: 100%;
807
+ min-height: 4em;
808
+ overflow: auto;
809
+ }
810
+
811
+ [type="color"] {
812
+ display: inline-block;
813
+ width: 2em;
814
+ }
815
+
816
+ select {
817
+ display: block;
818
+ width: 100%;
819
+
820
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='70' d='M36.3 82.1l91.9 91.8 91.5-91.8'/%3E%3C/svg%3E");
821
+ background-repeat: no-repeat;
822
+ background-position: calc(100% - .4em) center;
823
+ background-size: 18px auto;
824
+ background-color: #fff;
825
+ border: 2px solid #666;
826
+ border-radius: 0;
827
+ }
828
+
829
+ [type="checkbox"] + label::before {
830
+ content: " ";
831
+ display: inline-block;
832
+ height: 1.8em;
833
+ margin-right: .3em;
834
+ position: relative;
835
+ vertical-align: middle;
836
+ top: -.1em;
837
+ width: 1.8em;
838
+
839
+ background-color: #fff;
840
+ background-size: cover;
841
+ border: 2px solid #666;
842
+
843
+ line-height: inherit;
844
+ }
845
+
846
+ [type="checkbox"]:checked + label::before {
847
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-miterlimit='10' stroke-width='50' d='M49.9 130.1l50.8 50.7L206.1 75.2'/%3E%3C/svg%3E");
848
+ }
849
+
850
+ [type="checkbox"]:focus + label::before {
851
+ outline: 3px solid #000;
852
+ z-index: 1000;
853
+ }
854
+
855
+ [type="radio"] + label::before {
856
+ content: " ";
857
+ display: inline-block;
858
+ height: 1.8em;
859
+ margin-right: .3em;
860
+ position: relative;
861
+ vertical-align: middle;
862
+ top: -.1em;
863
+ width: 1.8em;
864
+
865
+ background-color: #fff;
866
+ background-size: cover;
867
+ border: 2px solid #666;
868
+ border-radius: 50%;
869
+
870
+ line-height: inherit;
871
+ }
872
+
873
+ [type="radio"]:checked + label::before {
874
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Ccircle cx='128' cy='128' r='70.4'/%3E%3C/svg%3E");
875
+ }
876
+
877
+ [type="radio"]:focus + label::before,
878
+ [type="radio"] + label:focus::before {
879
+ box-shadow: 0 0 0 3px #000;
880
+ z-index: 1000;
881
+ }
882
+
883
+ [type="range"] {
884
+ border: 0;
885
+ background-color: #fff;
886
+ }
887
+
888
+ [type="range"]::-webkit-slider-runnable-track {
889
+ height: 6px;
890
+
891
+ -webkit-appearance: none;
892
+ appearance: none;
893
+ background-color: #ccc;
894
+ border: 0;
895
+ border-radius: 3px;
896
+ }
897
+
898
+ [type="range"]:active::-webkit-slider-runnable-track {
899
+ background-color: #ccc;
900
+ }
901
+
902
+ [type="range"]::-moz-range-track {
903
+ height: 6px;
904
+
905
+ -moz-appearance: none;
906
+ appearance: none;
907
+ background-color: #ccc;
908
+ border: 0;
909
+ border-radius: 3px;
910
+ }
911
+
912
+ [type="range"]:active::-moz-range-track {
913
+ background-color: #ccc;
914
+ }
915
+
916
+ [type="range"]::-ms-track {
917
+ height: 6px;
918
+
919
+ -ms-appearance: none;
920
+ appearance: none;
921
+ background-color: #ccc;
922
+ border: 0;
923
+ border-radius: 3px;
924
+ }
925
+
926
+ [type="range"]:active::-ms-track {
927
+ background-color: #ccc;
928
+ }
929
+
930
+ [type="range"]::-webkit-slider-thumb {
931
+ margin-top: -4px;
932
+ height: 16px;
933
+ width: 16px;
934
+
935
+ -webkit-appearance: none;
936
+ appearance: none;
937
+ background-color: #000;
938
+ border: none;
939
+ border-radius: 50%;
940
+ }
941
+
942
+ [type="range"]:hover::-webkit-slider-thumb {
943
+ background-color: #000;
944
+ }
945
+
946
+ [type="range"]:active::-webkit-slider-thumb {
947
+ background-color: #000;
948
+ }
949
+
950
+ [type="range"]::-moz-range-thumb {
951
+ margin-top: -4px;
952
+ height: 16px;
953
+ width: 16px;
954
+
955
+ -webkit-appearance: none;
956
+ appearance: none;
957
+ background-color: #000;
958
+ border: none;
959
+ border-radius: 50%;
960
+ }
961
+
962
+ [type="range"]:hover::-moz-range-thumb {
963
+ background-color: #000;
964
+ }
965
+
966
+ [type="range"]:active::-moz-range-thumb {
967
+ background-color: #000;
968
+ }
969
+
970
+ [type="range"]::-ms-thumb {
971
+ margin-top: -4px;
972
+ height: 16px;
973
+ width: 16px;
974
+
975
+ -webkit-appearance: none;
976
+ appearance: none;
977
+ background-color: #000;
978
+ border: none;
979
+ border-radius: 50%;
980
+ }
981
+
982
+ [type="range"]:hover::-ms-thumb {
983
+ background-color: #000;
984
+ }
985
+
986
+ [type="range"]:active::-ms-thumb {
987
+ background-color: #000;
988
+ }
989
+
990
+ [type="checkbox"].hide-custom-input + label::before,
991
+ [type="checkbox"] + .hide-custom-input::before,
992
+ [type="radio"].hide-custom-input + label::before,
993
+ [type="radio"] + .hide-custom-input::before {
994
+ content: none;
995
+ display: none;
996
+ }
997
+
998
+ /* stylelint-enable */
999
+
1000
+ .link-box {
1001
+ display: block;
1002
+ text-decoration: none;
1003
+ }
1004
+
1005
+ /* stylelint-disable no-descending-specificity */
1006
+
1007
+ button,
1008
+ .btn {
1009
+ cursor: pointer;
1010
+ display: inline-block;
1011
+ margin: 0;
1012
+ overflow: visible;
1013
+ padding: .375em .75em .42em;
1014
+ -webkit-appearance: none;
1015
+ -moz-appearance: none;
1016
+ appearance: none;
1017
+ background-color: #333;
1018
+ border-radius: 4px;
1019
+ border: 3px solid #333;
1020
+ color: #fff;
1021
+ font: inherit;
1022
+ text-decoration: none;
1023
+ text-transform: none;
1024
+ }
1025
+
1026
+ button::-moz-focus-inner {
1027
+ border: 0;
1028
+ padding: 0;
1029
+ }
1030
+
1031
+ /* stylelint-enable */
1032
+
1033
+ button:focus,
1034
+ button:hover,
1035
+ .btn:focus,
1036
+ .btn:hover {
1037
+ background-color: #000;
1038
+ border-color: #000;
1039
+ color: #fff;
1040
+ }
1041
+
1042
+ button[disabled] {
1043
+ cursor: default;
1044
+ }
1045
+
1046
+ .btn-light, .btn--light {
1047
+ background-color: #e2e2e2;
1048
+ border-color: #e2e2e2;
1049
+ color: #000;
1050
+ }
1051
+
1052
+ .btn-light:focus,
1053
+ .btn-light:hover,
1054
+ .btn--light:focus,
1055
+ .btn--light:hover {
1056
+ background-color: #666;
1057
+ border-color: #666;
1058
+ color: #fff;
1059
+ }
1060
+
1061
+ .btn-ghost,
1062
+ .btn--ghost {
1063
+ background-color: transparent;
1064
+ border-color: #333;
1065
+ color: #000;
1066
+ }
1067
+
1068
+ .btn-ghost:focus,
1069
+ .btn-ghost:hover,
1070
+ .btn--ghost:focus,
1071
+ .btn--ghost:hover {
1072
+ background-color: #e2e2e2;
1073
+ border-color: #000;
1074
+ color: #000;
1075
+ }
1076
+
1077
+ .btn-link {
1078
+ display: inline;
1079
+ padding: 0;
1080
+ background-color: transparent;
1081
+ border-radius: 0;
1082
+ border: 0;
1083
+ color: inherit;
1084
+ }
1085
+
1086
+ .btn-link:focus,
1087
+ .btn-link:hover {
1088
+ background-color: transparent;
1089
+ color: inherit;
1090
+ }
1091
+
1092
+ a:hover, a:active {
1093
+ outline: none;
1094
+ }
1095
+
1096
+ a:focus,
1097
+ [tabindex="0"]:focus,
1098
+ details:focus,
1099
+ summary:focus,
1100
+ input:focus,
1101
+ textarea:focus,
1102
+ button:focus,
1103
+ select:focus {
1104
+ outline: 3px solid #000;
1105
+ outline-offset: 0;
1106
+ }
1107
+
1108
+ a:focus, [tabindex="0"]:focus {
1109
+ outline-offset: 3px;
1110
+ }
1111
+
1112
+ .skip-links {
1113
+ margin: 0;
1114
+ padding: 0;
1115
+ list-style-type: none;
1116
+ }
1117
+
1118
+ .skip-links > li::before {
1119
+ content: none; /* Remove the bullets if nice lists is selected */
1120
+ }
1121
+
1122
+ .skip-links a,
1123
+ .skip-links button {
1124
+ padding: .5em .75em;
1125
+ position: absolute;
1126
+ top: -10em;
1127
+ z-index: 10000; /* To make sure they're always on top */
1128
+ background-color: #000;
1129
+ border: 0;
1130
+ color: #fff;
1131
+ font-size: 1.125rem;
1132
+ font-weight: bold;
1133
+ text-decoration: none;
1134
+ }
1135
+
1136
+ .skip-links a:focus,
1137
+ .skip-links button:focus {
1138
+ outline-offset: 3px;
1139
+ top: 0;
1140
+ }
1141
+
1142
+ [aria-busy="true"] {
1143
+ cursor: progress;
1144
+ }
1145
+
1146
+ [aria-controls] {
1147
+ cursor: pointer;
1148
+ }
1149
+
1150
+ [aria-disabled] {
1151
+ cursor: default;
1152
+ }
1153
+
1154
+ .print-only {
1155
+ display: none;
1156
+ visibility: hidden;
1157
+ }
1158
+
1159
+ .page-break-before {
1160
+ page-break-before: always;
1161
+ }
1162
+
1163
+ .page-break-after {
1164
+ page-break-after: always;
1165
+ }
1166
+
1167
+ .no-page-break-inside {
1168
+ page-break-inside: avoid;
1169
+ }
1170
+
1171
+ @media print {
1172
+
1173
+ /* stylelint-disable declaration-no-important */
1174
+
1175
+ .no-print {
1176
+ display: none !important;
1177
+ visibility: hidden !important;
1178
+ }
1179
+
1180
+ .print-only,
1181
+ .force-print {
1182
+ display: block !important;
1183
+ visibility: visible !important;
1184
+ }
1185
+
1186
+ /* stylelint-enable */
1187
+
1188
+ .visually-hidden.force-print {
1189
+ height: auto;
1190
+ margin: 0;
1191
+ overflow: visible;
1192
+ padding: 0;
1193
+ position: static;
1194
+ width: auto;
1195
+ border: 0;
1196
+ clip: initial;
1197
+ clip-path: none;
1198
+ }
1199
+
1200
+ /*
1201
+ * (c) Fabien Sa || MIT License
1202
+ * http://bafs.github.io/Gutenberg/
1203
+ */
1204
+
1205
+ table,
1206
+ blockquote,
1207
+ pre,
1208
+ code,
1209
+ figure,
1210
+ li,
1211
+ hr,
1212
+ ul,
1213
+ ol,
1214
+ a,
1215
+ tr {
1216
+ page-break-inside: avoid;
1217
+ }
1218
+
1219
+ h1, h2, h3, h4, h5, h6, p, a {
1220
+ orphans: 3;
1221
+ widows: 3;
1222
+ }
1223
+
1224
+ h1,
1225
+ h2,
1226
+ h3,
1227
+ h4,
1228
+ h5,
1229
+ h6 {
1230
+ page-break-after: avoid;
1231
+ page-break-inside: avoid;
1232
+ }
1233
+
1234
+ h1 + p,
1235
+ h2 + p,
1236
+ h3 + p,
1237
+ h4 + p,
1238
+ h5 + p,
1239
+ h6 + p {
1240
+ page-break-before: avoid;
1241
+ }
1242
+
1243
+ img {
1244
+ page-break-after: auto;
1245
+ page-break-before: auto;
1246
+ page-break-inside: avoid;
1247
+ }
1248
+
1249
+ /* stylelint-disable declaration-no-important */
1250
+
1251
+ pre {
1252
+ white-space: pre-wrap !important;
1253
+ word-wrap: break-word;
1254
+ }
1255
+
1256
+ /* stylelint-enable */
1257
+
1258
+ /* End Gutenberg code */
1259
+
1260
+ /*
1261
+ * (c) HTML5 Boilerplate || MIT License
1262
+ * https://html5boilerplate.com/
1263
+ */
1264
+
1265
+ /* stylelint-disable declaration-no-important */
1266
+
1267
+ *, *::before, *::after, *::first-letter, *::first-line {
1268
+ background: none transparent !important;
1269
+ color: #000 !important;
1270
+ box-shadow: none !important;
1271
+ text-shadow: none !important;
1272
+ }
1273
+
1274
+ /* stylelint-enable */
1275
+
1276
+ a, a:visited {
1277
+ text-decoration: underline;
1278
+ }
1279
+
1280
+ a[href]::after {
1281
+ content: " (" attr(href) ")";
1282
+ }
1283
+
1284
+ abbr[title]::after {
1285
+ content: " (" attr(title) ")";
1286
+ }
1287
+
1288
+ a[href^="#"]::after,
1289
+ a[href^="javascript:"]::after,
1290
+ a.no-print-href::after,
1291
+ a.href-no-print::after {
1292
+ content: "";
1293
+ }
1294
+
1295
+ thead {
1296
+ display: table-header-group;
1297
+ }
1298
+
1299
+ /* End HTML5 Boilerplate code */
1300
+
1301
+ }