jekyll-theme-primer 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.md +1 -1
  3. data/README.md +39 -13
  4. data/_includes/head-custom-google-analytics.html +10 -0
  5. data/_includes/head-custom.html +9 -0
  6. data/_layouts/default.html +7 -5
  7. data/_layouts/home.html +4 -0
  8. data/_layouts/page.html +4 -0
  9. data/_layouts/post.html +4 -0
  10. data/_sass/primer-base/lib/base.scss +17 -0
  11. data/_sass/primer-base/lib/normalize.scss +2 -4
  12. data/_sass/primer-layout/lib/grid-offset.scss +12 -23
  13. data/_sass/primer-markdown/lib/code.scss +3 -16
  14. data/_sass/primer-markdown/lib/lists.scss +5 -1
  15. data/_sass/primer-markdown/lib/markdown-body.scss +1 -1
  16. data/_sass/primer-support/lib/mixins/buttons.scss +13 -9
  17. data/_sass/primer-support/lib/mixins/layout.scss +18 -12
  18. data/_sass/primer-support/lib/variables/layout.scss +15 -1
  19. data/_sass/primer-support/lib/variables/misc.scss +1 -1
  20. data/_sass/primer-utilities/index.scss +1 -0
  21. data/_sass/primer-utilities/lib/animations.scss +33 -2
  22. data/_sass/primer-utilities/lib/borders.scss +75 -38
  23. data/_sass/primer-utilities/lib/details.scss +18 -0
  24. data/_sass/primer-utilities/lib/flexbox.scss +45 -73
  25. data/_sass/primer-utilities/lib/layout.scss +16 -27
  26. data/_sass/primer-utilities/lib/margin.scss +42 -75
  27. data/_sass/primer-utilities/lib/padding.scss +26 -56
  28. data/_sass/primer-utilities/lib/typography.scss +22 -23
  29. data/_sass/primer-utilities/lib/visibility-display.scss +21 -45
  30. data/_sass/primer.scss +4 -0
  31. metadata +71 -72
  32. data/_sass/primer-base/LICENSE +0 -21
  33. data/_sass/primer-base/README.md +0 -48
  34. data/_sass/primer-base/build/build.css +0 -1
  35. data/_sass/primer-base/build/index.js +0 -1
  36. data/_sass/primer-base/package.json +0 -68
  37. data/_sass/primer-layout/LICENSE +0 -21
  38. data/_sass/primer-layout/README.md +0 -137
  39. data/_sass/primer-layout/build/build.css +0 -1
  40. data/_sass/primer-layout/build/index.js +0 -1
  41. data/_sass/primer-layout/package.json +0 -65
  42. data/_sass/primer-markdown/LICENSE +0 -21
  43. data/_sass/primer-markdown/README.md +0 -218
  44. data/_sass/primer-markdown/build/build.css +0 -1
  45. data/_sass/primer-markdown/build/index.js +0 -1
  46. data/_sass/primer-markdown/package.json +0 -69
  47. data/_sass/primer-support/LICENSE +0 -21
  48. data/_sass/primer-support/README.md +0 -42
  49. data/_sass/primer-support/package.json +0 -66
  50. data/_sass/primer-utilities/LICENSE +0 -21
  51. data/_sass/primer-utilities/README.md +0 -48
  52. data/_sass/primer-utilities/build/build.css +0 -1
  53. data/_sass/primer-utilities/build/index.js +0 -1
  54. data/_sass/primer-utilities/package.json +0 -65
  55. data/assets/javascript/anchor-js/.eslintrc +0 -77
  56. data/assets/javascript/anchor-js/.gitattributes +0 -2
  57. data/assets/javascript/anchor-js/.npmignore +0 -4
  58. data/assets/javascript/anchor-js/.travis.yml +0 -6
  59. data/assets/javascript/anchor-js/anchor.js +0 -334
  60. data/assets/javascript/anchor-js/anchor.min.js +0 -6
  61. data/assets/javascript/anchor-js/banner.js +0 -17
  62. data/assets/javascript/anchor-js/docs/anchor.js +0 -334
  63. data/assets/javascript/anchor-js/docs/favicon.ico +0 -0
  64. data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.eot +0 -0
  65. data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.svg +0 -11
  66. data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.ttf +0 -0
  67. data/assets/javascript/anchor-js/docs/fonts/anchorjs-extras.woff +0 -0
  68. data/assets/javascript/anchor-js/docs/fonts/fonts.css +0 -24
  69. data/assets/javascript/anchor-js/docs/grunticon/grunticon.loader.js +0 -3
  70. data/assets/javascript/anchor-js/docs/grunticon/icons.data.png.css +0 -5
  71. data/assets/javascript/anchor-js/docs/grunticon/icons.data.svg.css +0 -5
  72. data/assets/javascript/anchor-js/docs/grunticon/icons.fallback.css +0 -5
  73. data/assets/javascript/anchor-js/docs/grunticon/png/grunticon-link.png +0 -0
  74. data/assets/javascript/anchor-js/docs/grunticon/preview.html +0 -33
  75. data/assets/javascript/anchor-js/docs/img/anchoring-links.png +0 -0
  76. data/assets/javascript/anchor-js/docs/img/anchorjs_logo.png +0 -0
  77. data/assets/javascript/anchor-js/docs/img/anchorlinks2.png +0 -0
  78. data/assets/javascript/anchor-js/docs/img/gh-link.svg +0 -9
  79. data/assets/javascript/anchor-js/docs/img/gh_link.svg +0 -9
  80. data/assets/javascript/anchor-js/docs/img/hyperlink.svg +0 -9
  81. data/assets/javascript/anchor-js/docs/img/link.svg +0 -6
  82. data/assets/javascript/anchor-js/docs/img/mini-logo.png +0 -0
  83. data/assets/javascript/anchor-js/docs/img/primer-md.png +0 -0
  84. data/assets/javascript/anchor-js/docs/index.html +0 -807
  85. data/assets/javascript/anchor-js/docs/scripts.js +0 -12
  86. data/assets/javascript/anchor-js/docs/styles.css +0 -493
@@ -1,86 +1,53 @@
1
1
  // Margin spacer utilities
2
2
  // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before, primer/selector-no-utility, comment-empty-line-before
3
- @for $i from 1 through length($spacers) {
4
- $size: #{nth($spacers, $i)};
5
- $scale: #{$i - 1};
6
-
7
- /* Set a #{$size} margin to all sides */
8
- .m-#{$scale} { margin : #{$size} !important; }
9
- /* Set a #{$size} margin on the top */
10
- .mt-#{$scale} { margin-top : #{$size} !important; }
11
- /* Set a #{$size} margin on the right */
12
- .mr-#{$scale} { margin-right : #{$size} !important; }
13
- /* Set a #{$size} margin on the bottom */
14
- .mb-#{$scale} { margin-bottom: #{$size} !important; }
15
- /* Set a #{$size} margin on the left */
16
- .ml-#{$scale} { margin-left : #{$size} !important; }
17
- /* Set a negative #{$size} margin on top */
18
- .mt-n#{$scale} { margin-top : -#{$size} !important; }
19
- /* Set a negative #{$size} margin on the right */
20
- .mr-n#{$scale} { margin-right : -#{$size} !important; }
21
- /* Set a negative #{$size} margin on the bottom */
22
- .mb-n#{$scale} { margin-bottom: -#{$size} !important; }
23
- /* Set a negative #{$size} margin on the left */
24
- .ml-n#{$scale} { margin-left : -#{$size} !important; }
25
-
26
- /* Set a #{$size} margin on the left & right */
27
- .mx-#{$scale} {
28
- margin-right: #{$size} !important;
29
- margin-left : #{$size} !important;
30
- }
31
-
32
- /* Set a #{$size} margin on the top & bottom */
33
- .my-#{$scale} {
34
- margin-top : #{$size} !important;
35
- margin-bottom: #{$size} !important;
36
- }
37
- }
38
-
39
- /* Set an auto margin on left & right */
40
- .mx-auto {
41
- margin-right: auto !important;
42
- margin-left: auto !important;
43
- }
44
3
 
45
4
  // Loop through the breakpoint values
46
- @each $breakpoint in map-keys($breakpoints) {
47
-
48
- // Loop through the spacer values
49
- @for $i from 1 through length($spacers) {
50
- @include breakpoint($breakpoint) {
51
- $size: #{nth($spacers, $i)}; // sm, md, lg, xl
52
- $scale: #{$i - 1}; // 0, 1, 2, 3, 4, 5, 6
53
-
54
- /* Set a #{$size} margin to all sides at the breakpoint #{$breakpoint} */
55
- .m-#{$breakpoint}-#{$scale} { margin: #{$size} !important; }
56
- /* Set a #{$size} margin on the top at the breakpoint #{$breakpoint} */
57
- .mt-#{$breakpoint}-#{$scale} { margin-top: #{$size} !important; }
58
- /* Set a #{$size} margin on the right at the breakpoint #{$breakpoint} */
59
- .mr-#{$breakpoint}-#{$scale} { margin-right: #{$size} !important; }
60
- /* Set a #{$size} margin on the bottom at the breakpoint #{$breakpoint} */
61
- .mb-#{$breakpoint}-#{$scale} { margin-bottom: #{$size} !important; }
62
- /* Set a #{$size} margin on the left at the breakpoint #{$breakpoint} */
63
- .ml-#{$breakpoint}-#{$scale} { margin-left: #{$size} !important; }
64
- /* Set a negative #{$size} margin on top at the breakpoint #{$breakpoint} */
65
- .mt-#{$breakpoint}-n#{$scale} { margin-top : -#{$size} !important; }
66
- /* Set a negative #{$size} margin on the right at the breakpoint #{$breakpoint} */
67
- .mr-#{$breakpoint}-n#{$scale} { margin-right : -#{$size} !important; }
68
- /* Set a negative #{$size} margin on the bottom at the breakpoint #{$breakpoint} */
69
- .mb-#{$breakpoint}-n#{$scale} { margin-bottom: -#{$size} !important; }
70
- /* Set a negative #{$size} margin on the left at the breakpoint #{$breakpoint} */
71
- .ml-#{$breakpoint}-n#{$scale} { margin-left : -#{$size} !important; }
5
+ @each $breakpoint, $variant in $responsive-variants {
6
+ @include breakpoint($breakpoint) {
7
+ // Loop through the spacer values
8
+ @for $i from 1 through length($spacers) {
9
+ $size: nth($spacers, $i); // sm, md, lg, xl
10
+ $scale: $i - 1; // 0, 1, 2, 3, 4, 5, 6
11
+
12
+ /* Set a $size margin to all sides at $breakpoint */
13
+ .m#{$variant}-#{$scale} { margin: $size !important; }
14
+ /* Set a $size margin on the top at $breakpoint */
15
+ .mt#{$variant}-#{$scale} { margin-top: $size !important; }
16
+ /* Set a $size margin on the right at $breakpoint */
17
+ .mr#{$variant}-#{$scale} { margin-right: $size !important; }
18
+ /* Set a $size margin on the bottom at $breakpoint */
19
+ .mb#{$variant}-#{$scale} { margin-bottom: $size !important; }
20
+ /* Set a $size margin on the left at $breakpoint */
21
+ .ml#{$variant}-#{$scale} { margin-left: $size !important; }
22
+
23
+ @if ($size != 0) {
24
+ /* Set a negative $size margin on top at $breakpoint */
25
+ .mt#{$variant}-n#{$scale} { margin-top : -$size !important; }
26
+ /* Set a negative $size margin on the right at $breakpoint */
27
+ .mr#{$variant}-n#{$scale} { margin-right : -$size !important; }
28
+ /* Set a negative $size margin on the bottom at $breakpoint */
29
+ .mb#{$variant}-n#{$scale} { margin-bottom: -$size !important; }
30
+ /* Set a negative $size margin on the left at $breakpoint */
31
+ .ml#{$variant}-n#{$scale} { margin-left : -$size !important; }
32
+ }
72
33
 
73
- /* Set a #{$size} margin on the left & right at the breakpoint #{$breakpoint} */
74
- .mx-#{$breakpoint}-#{$scale} {
75
- margin-right: #{$size} !important;
76
- margin-left: #{$size} !important;
34
+ /* Set a $size margin on the left & right at $breakpoint */
35
+ .mx#{$variant}-#{$scale} {
36
+ margin-right: $size !important;
37
+ margin-left: $size !important;
77
38
  }
78
39
 
79
- /* Set a #{$size} margin on the top & bottom at the breakpoint #{$breakpoint} */
80
- .my-#{$breakpoint}-#{$scale} {
81
- margin-top: #{$size} !important;
82
- margin-bottom: #{$size} !important;
40
+ /* Set a $size margin on the top & bottom at $breakpoint */
41
+ .my#{$variant}-#{$scale} {
42
+ margin-top: $size !important;
43
+ margin-bottom: $size !important;
83
44
  }
84
45
  }
46
+
47
+ /* responsive horizontal auto margins */
48
+ .mx#{$variant}-auto {
49
+ margin-right: auto !important;
50
+ margin-left: auto !important;
51
+ }
85
52
  }
86
53
  }
@@ -1,66 +1,36 @@
1
1
  // Padding spacer utilities
2
2
  // stylelint-disable block-opening-brace-space-before, declaration-colon-space-before
3
3
  // stylelint-disable comment-empty-line-before
4
- @for $i from 1 through length($spacers) {
5
- $size: #{nth($spacers, $i)};
6
- $scale: #{$i - 1};
7
-
8
- /* Set a #{$size} padding to all sides */
9
- .p-#{$scale} { padding : #{$size} !important; }
10
- /* Set a #{$size} padding to the top */
11
- .pt-#{$scale} { padding-top : #{$size} !important; }
12
- /* Set a #{$size} padding to the right */
13
- .pr-#{$scale} { padding-right : #{$size} !important; }
14
- /* Set a #{$size} padding to the bottom */
15
- .pb-#{$scale} { padding-bottom: #{$size} !important; }
16
- /* Set a #{$size} padding to the left */
17
- .pl-#{$scale} { padding-left : #{$size} !important; }
18
-
19
- /* Set a #{$size} padding to the left & right */
20
- .px-#{$scale} {
21
- padding-right: #{$size} !important;
22
- padding-left: #{$size} !important;
23
- }
24
-
25
- /* Set a #{$size} padding to the top & bottom */
26
- .py-#{$scale} {
27
- padding-top: #{$size} !important;
28
- padding-bottom: #{$size} !important;
29
- }
30
- }
31
4
 
32
5
  // Responsive padding spacer utilities
33
-
34
- // Loop through the breakpoint values
35
- @each $breakpoint in map-keys($breakpoints) {
36
-
37
- // Loop through the spacer values
38
- @for $i from 1 through length($spacers) {
39
- @include breakpoint($breakpoint) {
40
- $size: #{nth($spacers, $i)}; // xs, sm, md, lg, xl
41
- $scale: #{$i - 1}; // 0, 1, 2, 3, 4, 5, 6
42
-
43
- /* Set a #{$size} padding to all sides at the #{$breakpoint} breakpoint */
44
- .p-#{$breakpoint}-#{$scale} { padding: #{$size} !important; }
45
- /* Set a #{$size} padding to the top at the #{$breakpoint} breakpoint */
46
- .pt-#{$breakpoint}-#{$scale} { padding-top: #{$size} !important; }
47
- /* Set a #{$size} padding to the right at the #{$breakpoint} breakpoint */
48
- .pr-#{$breakpoint}-#{$scale} { padding-right: #{$size} !important; }
49
- /* Set a #{$size} padding to the bottom at the #{$breakpoint} breakpoint */
50
- .pb-#{$breakpoint}-#{$scale} { padding-bottom: #{$size} !important; }
51
- /* Set a #{$size} padding to the left at the #{$breakpoint} breakpoint */
52
- .pl-#{$breakpoint}-#{$scale} { padding-left: #{$size} !important; }
53
-
54
- /* Set a #{$size} padding to the left & right at the #{$breakpoint} breakpoint */
55
- .px-#{$breakpoint}-#{$scale} {
56
- padding-right: #{$size} !important;
57
- padding-left: #{$size} !important;
6
+ @each $breakpoint, $variant in $responsive-variants {
7
+ @include breakpoint($breakpoint) {
8
+ // Loop through the spacer values
9
+ @for $i from 1 through length($spacers) {
10
+ $size: nth($spacers, $i); // xs, sm, md, lg, xl
11
+ $scale: $i - 1; // 0, 1, 2, 3, 4, 5, 6
12
+
13
+ /* Set a $size padding to all sides at $breakpoint */
14
+ .p#{$variant}-#{$scale} { padding: $size !important; }
15
+ /* Set a $size padding to the top at $breakpoint */
16
+ .pt#{$variant}-#{$scale} { padding-top: $size !important; }
17
+ /* Set a $size padding to the right at $breakpoint */
18
+ .pr#{$variant}-#{$scale} { padding-right: $size !important; }
19
+ /* Set a $size padding to the bottom at $breakpoint */
20
+ .pb#{$variant}-#{$scale} { padding-bottom: $size !important; }
21
+ /* Set a $size padding to the left at $breakpoint */
22
+ .pl#{$variant}-#{$scale} { padding-left: $size !important; }
23
+
24
+ /* Set a $size padding to the left & right at $breakpoint */
25
+ .px#{$variant}-#{$scale} {
26
+ padding-right: $size !important;
27
+ padding-left: $size !important;
58
28
  }
59
29
 
60
- /* Set a #{$size} padding to the top & bottom at the #{$breakpoint} breakpoint */
61
- .py-#{$breakpoint}-#{$scale} {
62
- padding-top: #{$size} !important;
63
- padding-bottom: #{$size} !important;
30
+ /* Set a $size padding to the top & bottom at $breakpoint */
31
+ .py#{$variant}-#{$scale} {
32
+ padding-top: $size !important;
33
+ padding-bottom: $size !important;
64
34
  }
65
35
  }
66
36
  }
@@ -20,7 +20,6 @@
20
20
  font-size: $h1-size-mobile !important;
21
21
 
22
22
  @include breakpoint(md) { font-size: $h1-size !important; }
23
-
24
23
  }
25
24
 
26
25
  /* Set the font size to 22px */
@@ -35,13 +34,11 @@
35
34
  font-size: $h3-size-mobile !important;
36
35
 
37
36
  @include breakpoint(md) { font-size: $h3-size !important; }
38
-
39
37
  }
40
38
 
41
39
  /* Set the font size to #{$h4-size} */
42
40
  .h4 {
43
41
  font-size: $h4-size !important;
44
-
45
42
  }
46
43
 
47
44
  /* Set the font size to #{$h5-size} */
@@ -61,7 +58,6 @@
61
58
  font-size: $h1-size-mobile !important;
62
59
 
63
60
  @include breakpoint(md) { font-size: $h1-size !important; }
64
-
65
61
  }
66
62
 
67
63
  /* Set the font size to 22px */
@@ -76,7 +72,6 @@
76
72
  font-size: $h3-size-mobile !important;
77
73
 
78
74
  @include breakpoint(md) { font-size: $h3-size !important; }
79
-
80
75
  }
81
76
 
82
77
  /* Set the font size to #{$h4-size} */
@@ -84,7 +79,6 @@
84
79
  font-size: $h4-size !important;
85
80
 
86
81
  @include breakpoint(md) { font-size: $h4-size !important; }
87
-
88
82
  }
89
83
 
90
84
  /* Set the font size to #{$h5-size} */
@@ -99,7 +93,6 @@
99
93
  font-weight: $font-weight-light !important;
100
94
 
101
95
  @include breakpoint(md) { font-size: $h00-size !important; }
102
-
103
96
  }
104
97
 
105
98
  /* Set the font size to 32px and weight to light */
@@ -108,7 +101,6 @@
108
101
  font-weight: $font-weight-light !important;
109
102
 
110
103
  @include breakpoint(md) { font-size: $h0-size !important; }
111
-
112
104
  }
113
105
 
114
106
  /* Set the font size to 26px and weight to light */
@@ -117,7 +109,6 @@
117
109
  font-weight: $font-weight-light !important;
118
110
 
119
111
  @include breakpoint(md) { font-size: $h1-size !important; }
120
-
121
112
  }
122
113
 
123
114
  /* Set the font size to 22px and weight to light */
@@ -126,8 +117,8 @@
126
117
  font-weight: $font-weight-light !important;
127
118
 
128
119
  @include breakpoint(md) { font-size: $h2-size !important; }
129
-
130
120
  }
121
+
131
122
  // Same size and weight as .lead but without color property
132
123
  /* Set the font size to 18px and weight to light */
133
124
  .f3-light {
@@ -135,7 +126,6 @@
135
126
  font-weight: $font-weight-light !important;
136
127
 
137
128
  @include breakpoint(md) { font-size: $h3-size !important; }
138
-
139
129
  }
140
130
 
141
131
  // Smallest text size
@@ -160,22 +150,19 @@
160
150
  .lh-condensed { line-height: $lh-condensed !important; }
161
151
  /* Set the line height to default */
162
152
  .lh-default { line-height: $lh-default !important; }
153
+ /* Set the line height to zero */
154
+ .lh-0 { line-height: 0 !important; }
163
155
 
164
156
  // Text alignments
165
- /* Text align to the right */
166
- .text-right { text-align: right !important; }
167
- /* Text align to the left */
168
- .text-left { text-align: left !important; }
169
- /* Text align to the center */
170
- .text-center { text-align: center !important; }
171
-
172
157
  // Responsive text alignment
173
- // .text-md-left, .text-lg-right, ...
174
- @each $breakpoint in map-keys($breakpoints) {
158
+ @each $breakpoint, $variant in $responsive-variants {
175
159
  @include breakpoint($breakpoint) {
176
- .text-#{$breakpoint}-right { text-align: right !important; }
177
- .text-#{$breakpoint}-left { text-align: left !important; }
178
- .text-#{$breakpoint}-center { text-align: center !important; }
160
+ /* Text align to the right */
161
+ .text#{$variant}-right { text-align: right !important; }
162
+ /* Text align to the left */
163
+ .text#{$variant}-left { text-align: left !important; }
164
+ /* Text align to the center */
165
+ .text#{$variant}-center { text-align: center !important; }
179
166
  }
180
167
  }
181
168
 
@@ -189,6 +176,8 @@
189
176
  /* Make text uppercase */
190
177
  .text-uppercase { text-transform: uppercase !important; }
191
178
  /* Underline text */
179
+ .text-underline { text-decoration: underline !important; }
180
+ /* Don't underline text */
192
181
  .no-underline { text-decoration: none !important; }
193
182
  /* Don't wrap white space */
194
183
  .no-wrap { white-space: nowrap !important; }
@@ -214,3 +203,13 @@
214
203
  .text-shadow-light {
215
204
  text-shadow: 0 1px 0 rgba($white, 0.5);
216
205
  }
206
+
207
+ /* Set to monospace font */
208
+ .text-mono {
209
+ font-family: $mono-font;
210
+ }
211
+
212
+ /* Disallow user from selecting text */
213
+ .user-select-none {
214
+ user-select: none !important;
215
+ }
@@ -2,56 +2,29 @@
2
2
  // stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, primer/selector-no-utility
3
3
  // stylelint-disable comment-empty-line-before
4
4
 
5
- // Visibility utilities
6
- /* Visibility hidden */
7
- .v-hidden { visibility: hidden !important; }
8
- /* Visibility visible */
9
- .v-visible { visibility: visible !important; }
10
-
11
- // Display utilites
12
- /* Set the display to table */
13
- .d-table { display: table !important; }
14
- /* Set the display to table-cell */
15
- .d-table-cell { display: table-cell !important; }
16
- /* Set the table-layout to fixed */
17
- .table-fixed { table-layout: fixed !important; }
18
-
19
- /* Set the display to block */
20
- .d-block { display: block !important; }
21
- /* Set the display to inline */
22
- .d-inline { display: inline !important; }
23
- /* Set the display to inline-block */
24
- .d-inline-block { display: inline-block !important; }
25
- /* Set the display to flex */
26
- .d-flex { display: flex !important; }
27
- /* Set the display to inline-flex */
28
- .d-inline-flex { display: inline-flex !important; }
29
- /* Set the display to none */
30
- .d-none { display: none !important; }
5
+ $display-values: (
6
+ block,
7
+ flex,
8
+ inline,
9
+ inline-block,
10
+ inline-flex,
11
+ none,
12
+ table,
13
+ table-cell
14
+ );
31
15
 
32
- // Responsive display utlities
33
- // .d-sm-none, .d-lg-inline, ...
34
- @each $breakpoint in map-keys($breakpoints) {
16
+ // Responsive display utilities
17
+ @each $breakpoint, $variant in $responsive-variants {
35
18
  @include breakpoint($breakpoint) {
36
- /* Set the display to table at the #{$breakpoint} breakpoint */
37
- .d-#{$breakpoint}-table { display: table !important; }
38
- /* Set the display to table cell at the #{$breakpoint} breakpoint */
39
- .d-#{$breakpoint}-table-cell { display: table-cell !important; }
40
- /* Set the display to block at the #{$breakpoint} breakpoint */
41
- .d-#{$breakpoint}-block { display: block !important; }
42
- /* Set the display to inline at the #{$breakpoint} breakpoint */
43
- .d-#{$breakpoint}-inline { display: inline !important; }
44
- /* Set the display to inline block at the #{$breakpoint} breakpoint */
45
- .d-#{$breakpoint}-inline-block { display: inline-block !important; }
46
- /* Set the display to flex at the #{$breakpoint} breakpoint */
47
- .d-#{$breakpoint}-flex { display: flex !important; }
48
- /* Set the display to flex at the #{$breakpoint} breakpoint */
49
- .d-#{$breakpoint}-inline-flex { display: inline-flex !important; }
50
- /* Set the display to none at the #{$breakpoint} breakpoint */
51
- .d-#{$breakpoint}-none { display: none !important; }
19
+ @each $display in $display-values {
20
+ .d#{$variant}-#{$display} { display: $display !important; }
21
+ }
52
22
  }
53
23
  }
54
24
 
25
+ .v-hidden { visibility: hidden !important; }
26
+ .v-visible { visibility: visible !important; }
27
+
55
28
  // Hide utilities for each breakpoint
56
29
  // Each hide utility only applies to one breakpoint range.
57
30
  @media (max-width: $width-sm) {
@@ -78,6 +51,9 @@
78
51
  }
79
52
  }
80
53
 
54
+ /* Set the table-layout to fixed */
55
+ .table-fixed { table-layout: fixed !important; }
56
+
81
57
  // Only display content to screen readers
82
58
  //
83
59
  // See: http://a11yproject.com/posts/how-to-hide-content/
data/_sass/primer.scss ADDED
@@ -0,0 +1,4 @@
1
+ // Placeholder file. If your site uses
2
+ // @import "{{ site.theme }}";
3
+ // Then using this theme with jekyll-remote-theme will work fine.
4
+ @import "jekyll-theme-primer";