bootstrap 4.0.0 → 4.3.1

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 (104) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +8 -0
  4. data/README.md +2 -2
  5. data/Rakefile +4 -2
  6. data/assets/javascripts/bootstrap/alert.js +45 -22
  7. data/assets/javascripts/bootstrap/button.js +39 -19
  8. data/assets/javascripts/bootstrap/carousel.js +213 -51
  9. data/assets/javascripts/bootstrap/collapse.js +105 -52
  10. data/assets/javascripts/bootstrap/dropdown.js +169 -45
  11. data/assets/javascripts/bootstrap/modal.js +139 -71
  12. data/assets/javascripts/bootstrap/popover.js +77 -20
  13. data/assets/javascripts/bootstrap/scrollspy.js +87 -29
  14. data/assets/javascripts/bootstrap/tab.js +50 -32
  15. data/assets/javascripts/bootstrap/toast.js +282 -0
  16. data/assets/javascripts/bootstrap/tooltip.js +295 -59
  17. data/assets/javascripts/bootstrap/util.js +78 -45
  18. data/assets/javascripts/bootstrap-sprockets.js +7 -6
  19. data/assets/javascripts/bootstrap.js +1537 -996
  20. data/assets/javascripts/bootstrap.min.js +3 -3
  21. data/assets/stylesheets/_bootstrap-grid.scss +4 -7
  22. data/assets/stylesheets/_bootstrap-reboot.scss +3 -3
  23. data/assets/stylesheets/_bootstrap.scss +5 -3
  24. data/assets/stylesheets/bootstrap/_alert.scss +1 -1
  25. data/assets/stylesheets/bootstrap/_badge.scss +8 -1
  26. data/assets/stylesheets/bootstrap/_breadcrumb.scss +9 -6
  27. data/assets/stylesheets/bootstrap/_button-group.scss +16 -19
  28. data/assets/stylesheets/bootstrap/_buttons.scss +10 -16
  29. data/assets/stylesheets/bootstrap/_card.scss +53 -34
  30. data/assets/stylesheets/bootstrap/_carousel.scss +66 -60
  31. data/assets/stylesheets/bootstrap/_close.scss +15 -8
  32. data/assets/stylesheets/bootstrap/_code.scss +5 -13
  33. data/assets/stylesheets/bootstrap/_custom-forms.scss +250 -40
  34. data/assets/stylesheets/bootstrap/_dropdown.scss +65 -5
  35. data/assets/stylesheets/bootstrap/_forms.scss +32 -35
  36. data/assets/stylesheets/bootstrap/_functions.scss +9 -9
  37. data/assets/stylesheets/bootstrap/_images.scss +2 -2
  38. data/assets/stylesheets/bootstrap/_input-group.scss +45 -11
  39. data/assets/stylesheets/bootstrap/_jumbotron.scss +1 -0
  40. data/assets/stylesheets/bootstrap/_list-group.scss +39 -5
  41. data/assets/stylesheets/bootstrap/_mixins.scss +6 -1
  42. data/assets/stylesheets/bootstrap/_modal.scss +80 -19
  43. data/assets/stylesheets/bootstrap/_nav.scss +2 -0
  44. data/assets/stylesheets/bootstrap/_navbar.scss +9 -26
  45. data/assets/stylesheets/bootstrap/_pagination.scss +2 -6
  46. data/assets/stylesheets/bootstrap/_popover.scss +47 -59
  47. data/assets/stylesheets/bootstrap/_print.scss +23 -6
  48. data/assets/stylesheets/bootstrap/_progress.scss +16 -6
  49. data/assets/stylesheets/bootstrap/_reboot.scss +51 -50
  50. data/assets/stylesheets/bootstrap/_spinners.scss +55 -0
  51. data/assets/stylesheets/bootstrap/_tables.scss +16 -11
  52. data/assets/stylesheets/bootstrap/_toasts.scss +44 -0
  53. data/assets/stylesheets/bootstrap/_tooltip.scss +1 -1
  54. data/assets/stylesheets/bootstrap/_transitions.scss +4 -20
  55. data/assets/stylesheets/bootstrap/_type.scss +16 -16
  56. data/assets/stylesheets/bootstrap/_utilities.scss +3 -0
  57. data/assets/stylesheets/bootstrap/_variables.scss +430 -201
  58. data/assets/stylesheets/bootstrap/mixins/_badge.scss +7 -2
  59. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +29 -1
  60. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +16 -1
  61. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +3 -3
  62. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +12 -14
  63. data/assets/stylesheets/bootstrap/mixins/_caret.scss +5 -8
  64. data/assets/stylesheets/bootstrap/mixins/_deprecate.scss +10 -0
  65. data/assets/stylesheets/bootstrap/mixins/_float.scss +3 -0
  66. data/assets/stylesheets/bootstrap/mixins/_forms.scss +68 -13
  67. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +7 -7
  68. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +3 -4
  69. data/assets/stylesheets/bootstrap/mixins/_grid.scss +9 -10
  70. data/assets/stylesheets/bootstrap/mixins/_hover.scss +3 -5
  71. data/assets/stylesheets/bootstrap/mixins/_image.scss +2 -2
  72. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +1 -1
  73. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +2 -2
  74. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +1 -1
  75. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +1 -1
  76. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -3
  77. data/assets/stylesheets/bootstrap/mixins/_size.scss +1 -0
  78. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +10 -1
  79. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +5 -3
  80. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +3 -1
  81. data/assets/stylesheets/bootstrap/mixins/_transition.scss +7 -0
  82. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +1 -0
  83. data/assets/stylesheets/bootstrap/utilities/_borders.scss +17 -1
  84. data/assets/stylesheets/bootstrap/utilities/_display.scss +6 -18
  85. data/assets/stylesheets/bootstrap/utilities/_embed.scss +7 -20
  86. data/assets/stylesheets/bootstrap/utilities/_flex.scss +5 -0
  87. data/assets/stylesheets/bootstrap/utilities/_float.scss +5 -3
  88. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +5 -0
  89. data/assets/stylesheets/bootstrap/utilities/_position.scss +0 -4
  90. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +6 -0
  91. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +8 -0
  92. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +23 -1
  93. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +19 -0
  94. data/assets/stylesheets/bootstrap/utilities/_text.scss +26 -6
  95. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +4 -2
  96. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +204 -0
  97. data/bootstrap.gemspec +6 -3
  98. data/lib/bootstrap/engine.rb +3 -0
  99. data/lib/bootstrap/version.rb +4 -2
  100. data/lib/bootstrap.rb +10 -7
  101. data/tasks/updater/js.rb +1 -1
  102. data/test/test_helper.rb +7 -6
  103. metadata +19 -12
  104. data/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +0 -10
@@ -6,7 +6,7 @@
6
6
  position: relative;
7
7
  display: flex;
8
8
  flex-direction: column;
9
- min-width: 0;
9
+ min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
10
10
  word-wrap: break-word;
11
11
  background-color: $card-bg;
12
12
  background-clip: border-box;
@@ -36,6 +36,7 @@
36
36
  // as much space as possible, ensuring footers are aligned to the bottom.
37
37
  flex: 1 1 auto;
38
38
  padding: $card-spacer-x;
39
+ color: $card-color;
39
40
  }
40
41
 
41
42
  .card-title {
@@ -43,7 +44,7 @@
43
44
  }
44
45
 
45
46
  .card-subtitle {
46
- margin-top: -($card-spacer-y / 2);
47
+ margin-top: -$card-spacer-y / 2;
47
48
  margin-bottom: 0;
48
49
  }
49
50
 
@@ -68,6 +69,7 @@
68
69
  .card-header {
69
70
  padding: $card-spacer-y $card-spacer-x;
70
71
  margin-bottom: 0; // Removes the default margin-bottom of <hN>
72
+ color: $card-cap-color;
71
73
  background-color: $card-cap-bg;
72
74
  border-bottom: $card-border-width solid $card-border-color;
73
75
 
@@ -98,15 +100,15 @@
98
100
  //
99
101
 
100
102
  .card-header-tabs {
101
- margin-right: -($card-spacer-x / 2);
103
+ margin-right: -$card-spacer-x / 2;
102
104
  margin-bottom: -$card-spacer-y;
103
- margin-left: -($card-spacer-x / 2);
105
+ margin-left: -$card-spacer-x / 2;
104
106
  border-bottom: 0;
105
107
  }
106
108
 
107
109
  .card-header-pills {
108
- margin-right: -($card-spacer-x / 2);
109
- margin-left: -($card-spacer-x / 2);
110
+ margin-right: -$card-spacer-x / 2;
111
+ margin-left: -$card-spacer-x / 2;
110
112
  }
111
113
 
112
114
  // Card image
@@ -153,7 +155,7 @@
153
155
 
154
156
  .card {
155
157
  display: flex;
156
- // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
158
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
157
159
  flex: 1 0 0%;
158
160
  flex-direction: column;
159
161
  margin-right: $card-deck-margin;
@@ -183,7 +185,7 @@
183
185
  // The child selector allows nested `.card` within `.card-group`
184
186
  // to display properly.
185
187
  > .card {
186
- // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
188
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
187
189
  flex: 1 0 0%;
188
190
  margin-bottom: 0;
189
191
 
@@ -194,55 +196,35 @@
194
196
 
195
197
  // Handle rounded corners
196
198
  @if $enable-rounded {
197
- &:first-child {
199
+ &:not(:last-child) {
198
200
  @include border-right-radius(0);
199
201
 
200
202
  .card-img-top,
201
203
  .card-header {
204
+ // stylelint-disable-next-line property-blacklist
202
205
  border-top-right-radius: 0;
203
206
  }
204
207
  .card-img-bottom,
205
208
  .card-footer {
209
+ // stylelint-disable-next-line property-blacklist
206
210
  border-bottom-right-radius: 0;
207
211
  }
208
212
  }
209
213
 
210
- &:last-child {
214
+ &:not(:first-child) {
211
215
  @include border-left-radius(0);
212
216
 
213
217
  .card-img-top,
214
218
  .card-header {
219
+ // stylelint-disable-next-line property-blacklist
215
220
  border-top-left-radius: 0;
216
221
  }
217
222
  .card-img-bottom,
218
223
  .card-footer {
224
+ // stylelint-disable-next-line property-blacklist
219
225
  border-bottom-left-radius: 0;
220
226
  }
221
227
  }
222
-
223
- &:only-child {
224
- @include border-radius($card-border-radius);
225
-
226
- .card-img-top,
227
- .card-header {
228
- @include border-top-radius($card-border-radius);
229
- }
230
- .card-img-bottom,
231
- .card-footer {
232
- @include border-bottom-radius($card-border-radius);
233
- }
234
- }
235
-
236
- &:not(:first-child):not(:last-child):not(:only-child) {
237
- @include border-radius(0);
238
-
239
- .card-img-top,
240
- .card-img-bottom,
241
- .card-header,
242
- .card-footer {
243
- @include border-radius(0);
244
- }
245
- }
246
228
  }
247
229
  }
248
230
  }
@@ -261,6 +243,8 @@
261
243
  @include media-breakpoint-up(sm) {
262
244
  column-count: $card-columns-count;
263
245
  column-gap: $card-columns-gap;
246
+ orphans: 1;
247
+ widows: 1;
264
248
 
265
249
  .card {
266
250
  display: inline-block; // Don't let them vertically span multiple columns
@@ -268,3 +252,38 @@
268
252
  }
269
253
  }
270
254
  }
255
+
256
+
257
+ //
258
+ // Accordion
259
+ //
260
+
261
+ .accordion {
262
+ > .card {
263
+ overflow: hidden;
264
+
265
+ &:not(:first-of-type) {
266
+ .card-header:first-child {
267
+ @include border-radius(0);
268
+ }
269
+
270
+ &:not(:last-of-type) {
271
+ border-bottom: 0;
272
+ @include border-radius(0);
273
+ }
274
+ }
275
+
276
+ &:first-of-type {
277
+ border-bottom: 0;
278
+ @include border-bottom-radius(0);
279
+ }
280
+
281
+ &:last-of-type {
282
+ @include border-top-radius(0);
283
+ }
284
+
285
+ .card-header {
286
+ margin-bottom: -$card-border-width;
287
+ }
288
+ }
289
+ }
@@ -1,22 +1,39 @@
1
- // Wrapper for the slide container and indicators
1
+ // Notes on the classes:
2
+ //
3
+ // 1. .carousel.pointer-event should ideally be pan-y (to allow for users to scroll vertically)
4
+ // even when their scroll action started on a carousel, but for compatibility (with Firefox)
5
+ // we're preventing all actions instead
6
+ // 2. The .carousel-item-left and .carousel-item-right is used to indicate where
7
+ // the active slide is heading.
8
+ // 3. .active.carousel-item is the current slide.
9
+ // 4. .active.carousel-item-left and .active.carousel-item-right is the current
10
+ // slide in its in-transition state. Only one of these occurs at a time.
11
+ // 5. .carousel-item-next.carousel-item-left and .carousel-item-prev.carousel-item-right
12
+ // is the upcoming slide in transition.
13
+
2
14
  .carousel {
3
15
  position: relative;
4
16
  }
5
17
 
18
+ .carousel.pointer-event {
19
+ touch-action: pan-y;
20
+ }
21
+
6
22
  .carousel-inner {
7
23
  position: relative;
8
24
  width: 100%;
9
25
  overflow: hidden;
26
+ @include clearfix();
10
27
  }
11
28
 
12
29
  .carousel-item {
13
30
  position: relative;
14
31
  display: none;
15
- align-items: center;
32
+ float: left;
16
33
  width: 100%;
17
- @include transition($carousel-transition);
34
+ margin-right: -100%;
18
35
  backface-visibility: hidden;
19
- perspective: 1000px;
36
+ @include transition($carousel-transition);
20
37
  }
21
38
 
22
39
  .carousel-item.active,
@@ -25,37 +42,40 @@
25
42
  display: block;
26
43
  }
27
44
 
28
- .carousel-item-next,
29
- .carousel-item-prev {
30
- position: absolute;
31
- top: 0;
45
+ .carousel-item-next:not(.carousel-item-left),
46
+ .active.carousel-item-right {
47
+ transform: translateX(100%);
32
48
  }
33
49
 
34
- // CSS3 transforms when supported by the browser
35
- .carousel-item-next.carousel-item-left,
36
- .carousel-item-prev.carousel-item-right {
37
- transform: translateX(0);
38
-
39
- @supports (transform-style: preserve-3d) {
40
- transform: translate3d(0, 0, 0);
41
- }
50
+ .carousel-item-prev:not(.carousel-item-right),
51
+ .active.carousel-item-left {
52
+ transform: translateX(-100%);
42
53
  }
43
54
 
44
- .carousel-item-next,
45
- .active.carousel-item-right {
46
- transform: translateX(100%);
47
55
 
48
- @supports (transform-style: preserve-3d) {
49
- transform: translate3d(100%, 0, 0);
56
+ //
57
+ // Alternate transitions
58
+ //
59
+
60
+ .carousel-fade {
61
+ .carousel-item {
62
+ opacity: 0;
63
+ transition-property: opacity;
64
+ transform: none;
50
65
  }
51
- }
52
66
 
53
- .carousel-item-prev,
54
- .active.carousel-item-left {
55
- transform: translateX(-100%);
67
+ .carousel-item.active,
68
+ .carousel-item-next.carousel-item-left,
69
+ .carousel-item-prev.carousel-item-right {
70
+ z-index: 1;
71
+ opacity: 1;
72
+ }
56
73
 
57
- @supports (transform-style: preserve-3d) {
58
- transform: translate3d(-100%, 0, 0);
74
+ .active.carousel-item-left,
75
+ .active.carousel-item-right {
76
+ z-index: 0;
77
+ opacity: 0;
78
+ @include transition(0s $carousel-transition-duration opacity);
59
79
  }
60
80
  }
61
81
 
@@ -69,6 +89,7 @@
69
89
  position: absolute;
70
90
  top: 0;
71
91
  bottom: 0;
92
+ z-index: 1;
72
93
  // Use flex for alignment (1-3)
73
94
  display: flex; // 1. allow flex styles
74
95
  align-items: center; // 2. vertically center contents
@@ -77,27 +98,26 @@
77
98
  color: $carousel-control-color;
78
99
  text-align: center;
79
100
  opacity: $carousel-control-opacity;
80
- // We can't have a transition here because WebKit cancels the carousel
81
- // animation if you trip this while in the middle of another animation.
101
+ @include transition($carousel-control-transition);
82
102
 
83
103
  // Hover/focus state
84
104
  @include hover-focus {
85
105
  color: $carousel-control-color;
86
106
  text-decoration: none;
87
107
  outline: 0;
88
- opacity: .9;
108
+ opacity: $carousel-control-hover-opacity;
89
109
  }
90
110
  }
91
111
  .carousel-control-prev {
92
112
  left: 0;
93
113
  @if $enable-gradients {
94
- background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
114
+ background: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
95
115
  }
96
116
  }
97
117
  .carousel-control-next {
98
118
  right: 0;
99
119
  @if $enable-gradients {
100
- background: linear-gradient(270deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
120
+ background: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
101
121
  }
102
122
  }
103
123
 
@@ -107,8 +127,7 @@
107
127
  display: inline-block;
108
128
  width: $carousel-control-icon-width;
109
129
  height: $carousel-control-icon-width;
110
- background: transparent no-repeat center center;
111
- background-size: 100% 100%;
130
+ background: no-repeat 50% / 100% 100%;
112
131
  }
113
132
  .carousel-control-prev-icon {
114
133
  background-image: $carousel-control-prev-icon-bg;
@@ -126,7 +145,7 @@
126
145
  .carousel-indicators {
127
146
  position: absolute;
128
147
  right: 0;
129
- bottom: 10px;
148
+ bottom: 0;
130
149
  left: 0;
131
150
  z-index: 15;
132
151
  display: flex;
@@ -138,38 +157,25 @@
138
157
  list-style: none;
139
158
 
140
159
  li {
141
- position: relative;
160
+ box-sizing: content-box;
142
161
  flex: 0 1 auto;
143
162
  width: $carousel-indicator-width;
144
163
  height: $carousel-indicator-height;
145
164
  margin-right: $carousel-indicator-spacer;
146
165
  margin-left: $carousel-indicator-spacer;
147
166
  text-indent: -999px;
148
- background-color: rgba($carousel-indicator-active-bg, .5);
149
-
150
- // Use pseudo classes to increase the hit area by 10px on top and bottom.
151
- &::before {
152
- position: absolute;
153
- top: -10px;
154
- left: 0;
155
- display: inline-block;
156
- width: 100%;
157
- height: 10px;
158
- content: "";
159
- }
160
- &::after {
161
- position: absolute;
162
- bottom: -10px;
163
- left: 0;
164
- display: inline-block;
165
- width: 100%;
166
- height: 10px;
167
- content: "";
168
- }
167
+ cursor: pointer;
168
+ background-color: $carousel-indicator-active-bg;
169
+ background-clip: padding-box;
170
+ // Use transparent borders to increase the hit area by 10px on top and bottom.
171
+ border-top: $carousel-indicator-hit-area-height solid transparent;
172
+ border-bottom: $carousel-indicator-hit-area-height solid transparent;
173
+ opacity: .5;
174
+ @include transition($carousel-indicator-transition);
169
175
  }
170
176
 
171
177
  .active {
172
- background-color: $carousel-indicator-active-bg;
178
+ opacity: 1;
173
179
  }
174
180
  }
175
181
 
@@ -180,9 +186,9 @@
180
186
 
181
187
  .carousel-caption {
182
188
  position: absolute;
183
- right: ((100% - $carousel-caption-width) / 2);
189
+ right: (100% - $carousel-caption-width) / 2;
184
190
  bottom: 20px;
185
- left: ((100% - $carousel-caption-width) / 2);
191
+ left: (100% - $carousel-caption-width) / 2;
186
192
  z-index: 10;
187
193
  padding-top: 20px;
188
194
  padding-bottom: 20px;
@@ -1,21 +1,22 @@
1
1
  .close {
2
2
  float: right;
3
- font-size: $close-font-size;
3
+ @include font-size($close-font-size);
4
4
  font-weight: $close-font-weight;
5
5
  line-height: 1;
6
6
  color: $close-color;
7
7
  text-shadow: $close-text-shadow;
8
8
  opacity: .5;
9
9
 
10
- @include hover-focus {
10
+ // Override <a>'s hover style
11
+ @include hover {
11
12
  color: $close-color;
12
13
  text-decoration: none;
13
- opacity: .75;
14
14
  }
15
15
 
16
- // Opinionated: add "hand" cursor to non-disabled .close elements
17
16
  &:not(:disabled):not(.disabled) {
18
- cursor: pointer;
17
+ @include hover-focus {
18
+ opacity: .75;
19
+ }
19
20
  }
20
21
  }
21
22
 
@@ -24,11 +25,17 @@
24
25
  // If you want the anchor version, it requires `href="#"`.
25
26
  // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
26
27
 
27
- // stylelint-disable property-no-vendor-prefix, selector-no-qualifying-type
28
+ // stylelint-disable-next-line selector-no-qualifying-type
28
29
  button.close {
29
30
  padding: 0;
30
31
  background-color: transparent;
31
32
  border: 0;
32
- -webkit-appearance: none;
33
+ appearance: none;
34
+ }
35
+
36
+ // Future-proof disabling of clicks on `<a>` elements
37
+
38
+ // stylelint-disable-next-line selector-no-qualifying-type
39
+ a.close.disabled {
40
+ pointer-events: none;
33
41
  }
34
- // stylelint-enable
@@ -1,14 +1,6 @@
1
- // Inline and block code styles
2
- code,
3
- kbd,
4
- pre,
5
- samp {
6
- font-family: $font-family-monospace;
7
- }
8
-
9
1
  // Inline code
10
2
  code {
11
- font-size: $code-font-size;
3
+ @include font-size($code-font-size);
12
4
  color: $code-color;
13
5
  word-break: break-word;
14
6
 
@@ -21,7 +13,7 @@ code {
21
13
  // User input typically entered via keyboard
22
14
  kbd {
23
15
  padding: $kbd-padding-y $kbd-padding-x;
24
- font-size: $kbd-font-size;
16
+ @include font-size($kbd-font-size);
25
17
  color: $kbd-color;
26
18
  background-color: $kbd-bg;
27
19
  @include border-radius($border-radius-sm);
@@ -29,7 +21,7 @@ kbd {
29
21
 
30
22
  kbd {
31
23
  padding: 0;
32
- font-size: 100%;
24
+ @include font-size(100%);
33
25
  font-weight: $nested-kbd-font-weight;
34
26
  @include box-shadow(none);
35
27
  }
@@ -38,12 +30,12 @@ kbd {
38
30
  // Blocks of code
39
31
  pre {
40
32
  display: block;
41
- font-size: $code-font-size;
33
+ @include font-size($code-font-size);
42
34
  color: $pre-color;
43
35
 
44
36
  // Account for some code outputs that place code tags in pre tags
45
37
  code {
46
- font-size: inherit;
38
+ @include font-size(inherit);
47
39
  color: inherit;
48
40
  word-break: normal;
49
41
  }