jekyll-theme-primer 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/_layouts/home.html +4 -0
  4. data/_layouts/page.html +4 -0
  5. data/_layouts/post.html +4 -0
  6. data/_sass/primer-base/lib/base.scss +6 -0
  7. data/_sass/primer-base/lib/normalize.scss +1 -1
  8. data/_sass/primer-layout/lib/grid-offset.scss +12 -23
  9. data/_sass/primer-support/lib/mixins/layout.scss +18 -12
  10. data/_sass/primer-support/lib/variables/layout.scss +7 -1
  11. data/_sass/primer-utilities/index.scss +1 -0
  12. data/_sass/primer-utilities/lib/animations.scss +1 -0
  13. data/_sass/primer-utilities/lib/borders.scss +71 -36
  14. data/_sass/primer-utilities/lib/details.scss +18 -0
  15. data/_sass/primer-utilities/lib/flexbox.scss +45 -73
  16. data/_sass/primer-utilities/lib/layout.scss +12 -27
  17. data/_sass/primer-utilities/lib/margin.scss +42 -75
  18. data/_sass/primer-utilities/lib/padding.scss +26 -56
  19. data/_sass/primer-utilities/lib/typography.scss +22 -23
  20. data/_sass/primer-utilities/lib/visibility-display.scss +21 -45
  21. metadata +15 -43
  22. data/_sass/primer-base/LICENSE +0 -21
  23. data/_sass/primer-base/README.md +0 -48
  24. data/_sass/primer-base/build/build.css +0 -1
  25. data/_sass/primer-base/build/index.js +0 -1
  26. data/_sass/primer-base/package.json +0 -73
  27. data/_sass/primer-layout/LICENSE +0 -21
  28. data/_sass/primer-layout/README.md +0 -137
  29. data/_sass/primer-layout/build/build.css +0 -1
  30. data/_sass/primer-layout/build/index.js +0 -1
  31. data/_sass/primer-layout/docs/grid.md +0 -392
  32. data/_sass/primer-layout/package.json +0 -71
  33. data/_sass/primer-markdown/LICENSE +0 -21
  34. data/_sass/primer-markdown/README.md +0 -218
  35. data/_sass/primer-markdown/build/build.css +0 -1
  36. data/_sass/primer-markdown/build/index.js +0 -1
  37. data/_sass/primer-markdown/package.json +0 -74
  38. data/_sass/primer-support/LICENSE +0 -21
  39. data/_sass/primer-support/README.md +0 -56
  40. data/_sass/primer-support/docs/breakpoints.md +0 -60
  41. data/_sass/primer-support/docs/color-system.md +0 -392
  42. data/_sass/primer-support/docs/spacing.md +0 -40
  43. data/_sass/primer-support/docs/typography.md +0 -90
  44. data/_sass/primer-support/package.json +0 -73
  45. data/_sass/primer-utilities/LICENSE +0 -21
  46. data/_sass/primer-utilities/README.md +0 -48
  47. data/_sass/primer-utilities/build/build.css +0 -1
  48. data/_sass/primer-utilities/build/index.js +0 -1
  49. data/_sass/primer-utilities/docs/animations.md +0 -75
  50. data/_sass/primer-utilities/docs/borders.md +0 -127
  51. data/_sass/primer-utilities/docs/box-shadow.md +0 -107
  52. data/_sass/primer-utilities/docs/colors.md +0 -232
  53. data/_sass/primer-utilities/docs/flexbox.md +0 -665
  54. data/_sass/primer-utilities/docs/layout.md +0 -300
  55. data/_sass/primer-utilities/docs/margin.md +0 -126
  56. data/_sass/primer-utilities/docs/padding.md +0 -110
  57. data/_sass/primer-utilities/docs/typography.md +0 -138
  58. data/_sass/primer-utilities/package.json +0 -71
@@ -50,23 +50,14 @@
50
50
  }
51
51
 
52
52
  // Floats
53
- /* Float to the right */
54
- .float-right { float: right !important; }
55
- /* Float to the left */
56
- .float-left { float: left !important; }
57
- /* Don't float left or right */
58
- .float-none { float: none !important; }
59
-
60
- // Responsive float utlities
61
- // .float-md-left, .float-lg-right, ...
62
- @each $breakpoint in map-keys($breakpoints) {
53
+ @each $breakpoint, $variant in $responsive-variants {
63
54
  @include breakpoint($breakpoint) {
64
- /* Float to the left at the #{$breakpoint} breakpoint */
65
- .float-#{$breakpoint}-left { float: left !important; }
66
- /* Float to the right at the #{$breakpoint} breakpoint */
67
- .float-#{$breakpoint}-right { float: right !important; }
68
- /* No float at the #{$breakpoint} breakpoint */
69
- .float-#{$breakpoint}-none { float: none !important; }
55
+ /* Float to the left */
56
+ .float#{$variant}-left { float: left !important; }
57
+ /* Float to the right */
58
+ .float#{$variant}-right { float: right !important; }
59
+ /* No float */
60
+ .float#{$variant}-none { float: none !important; }
70
61
  }
71
62
  }
72
63
 
@@ -84,17 +75,11 @@
84
75
  /* Remove min-width from element */
85
76
  .min-width-0 { min-width: 0 !important; }
86
77
 
87
- // Direction utilities
88
- /* Set the direction to rtl */
89
- .direction-rtl { direction: rtl !important; }
90
- /* Set the direction to ltr */
91
- .direction-ltr { direction: ltr !important; }
92
-
93
- @each $breakpoint in map-keys($breakpoints) {
78
+ @each $breakpoint, $variant in $responsive-variants {
94
79
  @include breakpoint($breakpoint) {
95
- /* Set the direction to rtl at the #{$breakpoint} breakpoint */
96
- .direction-#{$breakpoint}-rtl { direction: rtl !important; }
97
- /* Set the direction to ltr at the #{$breakpoint} breakpoint */
98
- .direction-#{$breakpoint}-ltr { direction: ltr !important; }
80
+ /* Set the direction to rtl */
81
+ .direction#{$variant}-rtl { direction: rtl !important; }
82
+ /* Set the direction to ltr */
83
+ .direction#{$variant}-ltr { direction: ltr !important; }
99
84
  }
100
85
  }
@@ -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/