jekyll-bootstrap 4.0.0.pre.beta.2.2 → 4.0.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 (44) hide show
  1. checksums.yaml +5 -5
  2. data/_includes/head.html +0 -2
  3. data/_sass/_alert.scss +3 -1
  4. data/_sass/_button-group.scss +31 -72
  5. data/_sass/_buttons.scss +26 -19
  6. data/_sass/_card.scss +23 -12
  7. data/_sass/_carousel.scss +2 -2
  8. data/_sass/_close.scss +6 -1
  9. data/_sass/_code.scss +4 -12
  10. data/_sass/_custom-forms.scss +124 -84
  11. data/_sass/_dropdown.scss +30 -2
  12. data/_sass/_forms.scss +46 -71
  13. data/_sass/_functions.scss +4 -4
  14. data/_sass/_images.scss +0 -1
  15. data/_sass/_input-group.scss +99 -126
  16. data/_sass/_list-group.scss +2 -1
  17. data/_sass/_modal.scss +24 -9
  18. data/_sass/_nav.scss +2 -2
  19. data/_sass/_navbar.scss +8 -3
  20. data/_sass/_pagination.scss +32 -19
  21. data/_sass/_popover.scss +106 -117
  22. data/_sass/_print.scss +17 -3
  23. data/_sass/_progress.scss +4 -1
  24. data/_sass/_reboot.scss +3 -25
  25. data/_sass/_tables.scss +1 -1
  26. data/_sass/_tooltip.scss +65 -57
  27. data/_sass/_type.scss +2 -2
  28. data/_sass/_variables.scss +174 -108
  29. data/_sass/bootstrap-grid.scss +4 -7
  30. data/_sass/bootstrap-reboot.scss +3 -3
  31. data/_sass/bootstrap.scss +4 -4
  32. data/_sass/mixins/_background-variant.scss +2 -1
  33. data/_sass/mixins/_breakpoints.scss +11 -7
  34. data/_sass/mixins/_buttons.scss +37 -22
  35. data/_sass/mixins/_caret.scss +30 -0
  36. data/_sass/mixins/_forms.scss +48 -19
  37. data/_sass/mixins/_grid-framework.scss +5 -7
  38. data/_sass/mixins/_hover.scss +24 -46
  39. data/_sass/mixins/_list-group.scss +10 -13
  40. data/_sass/mixins/_screen-reader.scss +1 -1
  41. data/_sass/mixins/_text-hide.scss +1 -0
  42. data/_sass/utilities/_borders.scss +6 -1
  43. data/_sass/utilities/_display.scss +10 -28
  44. metadata +5 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0c1fdb8d046bb0304cc739bb2c7b936e7ec6480d
4
- data.tar.gz: 99df72394b6dd7fb8082f49580ac7bdd0cf9ce1c
2
+ SHA256:
3
+ metadata.gz: a425e282ba85dda651efb3c2ea1ec399485bd60ec8f8f8f9448efd455b0d10bc
4
+ data.tar.gz: e1d3d0205823cfa5344b5f7e767b408e017083998ec2a63b9ae1ca8df21c01c2
5
5
  SHA512:
6
- metadata.gz: 937548ef62dc7297574743ca982cd458da6a6807dafa4219c979781b5244b238089cc395f98d25a391687d3b47c9a0a3fbd744dc7357986cb0a72bb18efc575b
7
- data.tar.gz: aafab49e982b26038401f42f3560942d61578c18744b165e5cae8f968fa2b6c80dab5d0f4ed390f497115cd864adbfd67b02e90419ee402317f2c4e148e63a1f
6
+ metadata.gz: 71fb12e013d5b8848c8d178512f3fa2128895d9521094491d0b72cab36ae9fb864ee2ceae7b6529c98bf0bcde59388149a6cc66719a68da14eec574422fc5eb4
7
+ data.tar.gz: 703888165fb59f01f94ffeb4a91ddac7e8801494c741ee099e78240b17dc7de5fe26c777966308db3d37d0b33a22b2337eeb5335febe94cc2f8d6e3e971b2054
@@ -6,8 +6,6 @@
6
6
  {% if site.keywords %}<meta name="keywords" content="{{ site.keywords }}" />{% endif %}
7
7
  <meta name="robots" content="index, follow" />
8
8
 
9
- {% seo %}
10
-
11
9
  <!-- Common link-tags -->
12
10
  <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ " /feed.xml " | relative_url }}">
13
11
 
@@ -27,6 +27,8 @@
27
27
  // Expand the right padding and account for the close button's positioning.
28
28
 
29
29
  .alert-dismissible {
30
+ padding-right: ($close-font-size + $alert-padding-x * 2);
31
+
30
32
  // Adjust close link position
31
33
  .close {
32
34
  position: absolute;
@@ -44,6 +46,6 @@
44
46
 
45
47
  @each $color, $value in $theme-colors {
46
48
  .alert-#{$color} {
47
- @include alert-variant(theme-color-level($color, -10), theme-color-level($color, -9), theme-color-level($color, 6));
49
+ @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level));
48
50
  }
49
51
  }
@@ -14,12 +14,12 @@
14
14
  // Bring the hover, focused, and "active" buttons to the front to overlay
15
15
  // the borders properly
16
16
  @include hover {
17
- z-index: 2;
17
+ z-index: 1;
18
18
  }
19
19
  &:focus,
20
20
  &:active,
21
21
  &.active {
22
- z-index: 2;
22
+ z-index: 1;
23
23
  }
24
24
  }
25
25
 
@@ -28,7 +28,7 @@
28
28
  .btn + .btn-group,
29
29
  .btn-group + .btn,
30
30
  .btn-group + .btn-group {
31
- margin-left: -$input-btn-border-width;
31
+ margin-left: -$btn-border-width;
32
32
  }
33
33
  }
34
34
 
@@ -43,48 +43,23 @@
43
43
  }
44
44
  }
45
45
 
46
- .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
47
- border-radius: 0;
48
- }
49
-
50
- // Set corners individual because sometimes a single button can be in a .btn-group
51
- // and we need :first-child and :last-child to both match
52
- .btn-group > .btn:first-child {
53
- margin-left: 0;
54
-
55
- &:not(:last-child):not(.dropdown-toggle) {
56
- @include border-right-radius(0);
46
+ .btn-group {
47
+ > .btn:first-child {
48
+ margin-left: 0;
57
49
  }
58
- }
59
- // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu
60
- // immediately after it
61
- .btn-group > .btn:last-child:not(:first-child),
62
- .btn-group > .dropdown-toggle:not(:first-child) {
63
- @include border-left-radius(0);
64
- }
65
50
 
66
- // Custom edits for including btn-groups within btn-groups (useful for including
67
- // dropdown buttons within a btn-group)
68
- .btn-group > .btn-group {
69
- float: left;
70
- }
71
-
72
- .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
73
- border-radius: 0;
74
- }
75
-
76
- .btn-group > .btn-group:first-child:not(:last-child) {
77
- > .btn:last-child,
78
- > .dropdown-toggle {
51
+ // Reset rounded corners
52
+ > .btn:not(:last-child):not(.dropdown-toggle),
53
+ > .btn-group:not(:last-child) > .btn {
79
54
  @include border-right-radius(0);
80
55
  }
81
- }
82
56
 
83
- .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
84
- @include border-left-radius(0);
57
+ > .btn:not(:first-child),
58
+ > .btn-group:not(:first-child) > .btn {
59
+ @include border-left-radius(0);
60
+ }
85
61
  }
86
62
 
87
-
88
63
  // Sizing
89
64
  //
90
65
  // Remix the default button sizing classes into new ones for easier manipulation.
@@ -97,9 +72,9 @@
97
72
  // Split button dropdowns
98
73
  //
99
74
 
100
- .btn + .dropdown-toggle-split {
101
- padding-right: $input-btn-padding-x * .75;
102
- padding-left: $input-btn-padding-x * .75;
75
+ .dropdown-toggle-split {
76
+ padding-right: $btn-padding-x * .75;
77
+ padding-left: $btn-padding-x * .75;
103
78
 
104
79
  &::after {
105
80
  margin-left: 0;
@@ -107,13 +82,13 @@
107
82
  }
108
83
 
109
84
  .btn-sm + .dropdown-toggle-split {
110
- padding-right: $input-btn-padding-x-sm * .75;
111
- padding-left: $input-btn-padding-x-sm * .75;
85
+ padding-right: $btn-padding-x-sm * .75;
86
+ padding-left: $btn-padding-x-sm * .75;
112
87
  }
113
88
 
114
89
  .btn-lg + .dropdown-toggle-split {
115
- padding-right: $input-btn-padding-x-lg * .75;
116
- padding-left: $input-btn-padding-x-lg * .75;
90
+ padding-right: $btn-padding-x-lg * .75;
91
+ padding-left: $btn-padding-x-lg * .75;
117
92
  }
118
93
 
119
94
 
@@ -147,36 +122,18 @@
147
122
  > .btn + .btn-group,
148
123
  > .btn-group + .btn,
149
124
  > .btn-group + .btn-group {
150
- margin-top: -$input-btn-border-width;
125
+ margin-top: -$btn-border-width;
151
126
  margin-left: 0;
152
127
  }
153
128
 
154
- > .btn {
155
- &:not(:first-child):not(:last-child) {
156
- border-radius: 0;
157
- }
158
-
159
- &:first-child:not(:last-child) {
160
- @include border-bottom-radius(0);
161
- }
162
-
163
- &:last-child:not(:first-child) {
164
- @include border-top-radius(0);
165
- }
129
+ // Reset rounded corners
130
+ > .btn:not(:last-child):not(.dropdown-toggle),
131
+ > .btn-group:not(:last-child) > .btn {
132
+ @include border-bottom-radius(0);
166
133
  }
167
134
 
168
- > .btn-group:not(:first-child):not(:last-child) > .btn {
169
- border-radius: 0;
170
- }
171
-
172
- > .btn-group:first-child:not(:last-child) {
173
- > .btn:last-child,
174
- > .dropdown-toggle {
175
- @include border-bottom-radius(0);
176
- }
177
- }
178
-
179
- > .btn-group:last-child:not(:first-child) > .btn:first-child {
135
+ > .btn:not(:first-child),
136
+ > .btn-group:not(:first-child) > .btn {
180
137
  @include border-top-radius(0);
181
138
  }
182
139
  }
@@ -194,13 +151,15 @@
194
151
  // See https://github.com/twbs/bootstrap/pull/12794 and
195
152
  // https://github.com/twbs/bootstrap/pull/14559 for more information.
196
153
 
197
- [data-toggle="buttons"] {
154
+ .btn-group-toggle {
198
155
  > .btn,
199
156
  > .btn-group > .btn {
157
+ margin-bottom: 0; // Override default `<label>` value
158
+
200
159
  input[type="radio"],
201
160
  input[type="checkbox"] {
202
161
  position: absolute;
203
- clip: rect(0,0,0,0);
162
+ clip: rect(0, 0, 0, 0);
204
163
  pointer-events: none;
205
164
  }
206
165
  }
@@ -11,37 +11,47 @@
11
11
  white-space: nowrap;
12
12
  vertical-align: middle;
13
13
  user-select: none;
14
- border: $input-btn-border-width solid transparent;
15
- @include button-size($input-btn-padding-y, $input-btn-padding-x, $font-size-base, $input-btn-line-height, $btn-border-radius);
14
+ border: $btn-border-width solid transparent;
15
+ @include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $btn-line-height, $btn-border-radius);
16
16
  @include transition($btn-transition);
17
17
 
18
18
  // Share hover and focus styles
19
19
  @include hover-focus {
20
20
  text-decoration: none;
21
21
  }
22
+
22
23
  &:focus,
23
24
  &.focus {
24
25
  outline: 0;
25
- box-shadow: $input-btn-focus-box-shadow;
26
+ box-shadow: $btn-focus-box-shadow;
26
27
  }
27
28
 
28
29
  // Disabled comes first so active can properly restyle
29
30
  &.disabled,
30
31
  &:disabled {
31
- opacity: .65;
32
+ opacity: $btn-disabled-opacity;
32
33
  @include box-shadow(none);
33
34
  }
34
35
 
35
- &:not([disabled]):not(.disabled):active,
36
- &:not([disabled]):not(.disabled).active {
36
+ // Opinionated: add "hand" cursor to non-disabled .btn elements
37
+ &:not(:disabled):not(.disabled) {
38
+ cursor: pointer;
39
+ }
40
+
41
+ &:not(:disabled):not(.disabled):active,
42
+ &:not(:disabled):not(.disabled).active {
37
43
  background-image: none;
38
- @include box-shadow($input-btn-focus-box-shadow, $btn-active-box-shadow);
44
+ @include box-shadow($btn-active-box-shadow);
45
+
46
+ &:focus {
47
+ @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
48
+ }
39
49
  }
40
50
  }
41
51
 
42
52
  // Future-proof disabling of clicks on `<a>` elements
43
53
  a.btn.disabled,
44
- fieldset[disabled] a.btn {
54
+ fieldset:disabled a.btn {
45
55
  pointer-events: none;
46
56
  }
47
57
 
@@ -58,11 +68,7 @@ fieldset[disabled] a.btn {
58
68
 
59
69
  @each $color, $value in $theme-colors {
60
70
  .btn-outline-#{$color} {
61
- @if $color == "light" {
62
- @include button-outline-variant($value, $gray-900);
63
- } @else {
64
- @include button-outline-variant($value, $white);
65
- }
71
+ @include button-outline-variant($value);
66
72
  }
67
73
  }
68
74
 
@@ -86,6 +92,7 @@ fieldset[disabled] a.btn {
86
92
 
87
93
  &:focus,
88
94
  &.focus {
95
+ text-decoration: $link-hover-decoration;
89
96
  border-color: transparent;
90
97
  box-shadow: none;
91
98
  }
@@ -104,11 +111,11 @@ fieldset[disabled] a.btn {
104
111
  //
105
112
 
106
113
  .btn-lg {
107
- @include button-size($input-btn-padding-y-lg, $input-btn-padding-x-lg, $font-size-lg, $input-btn-line-height-lg, $btn-border-radius-lg);
114
+ @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
108
115
  }
109
116
 
110
117
  .btn-sm {
111
- @include button-size($input-btn-padding-y-sm, $input-btn-padding-x-sm, $font-size-sm, $input-btn-line-height-sm, $btn-border-radius-sm);
118
+ @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
112
119
  }
113
120
 
114
121
 
@@ -119,11 +126,11 @@ fieldset[disabled] a.btn {
119
126
  .btn-block {
120
127
  display: block;
121
128
  width: 100%;
122
- }
123
129
 
124
- // Vertically space out multiple block buttons
125
- .btn-block + .btn-block {
126
- margin-top: $btn-block-spacing-y;
130
+ // Vertically space out multiple block buttons
131
+ + .btn-block {
132
+ margin-top: $btn-block-spacing-y;
133
+ }
127
134
  }
128
135
 
129
136
  // Specificity overrides
@@ -172,14 +172,17 @@
172
172
  display: flex;
173
173
  flex-direction: column;
174
174
 
175
- .card {
175
+ // The child selector allows nested `.card` within `.card-group`
176
+ // to display properly.
177
+ > .card {
176
178
  margin-bottom: $card-group-margin;
177
179
  }
178
180
 
179
181
  @include media-breakpoint-up(sm) {
180
182
  flex-flow: row wrap;
181
-
182
- .card {
183
+ // The child selector allows nested `.card` within `.card-group`
184
+ // to display properly.
185
+ > .card {
183
186
  // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
184
187
  flex: 1 0 0%;
185
188
  margin-bottom: 0;
@@ -194,10 +197,12 @@
194
197
  &:first-child {
195
198
  @include border-right-radius(0);
196
199
 
197
- .card-img-top {
200
+ .card-img-top,
201
+ .card-header {
198
202
  border-top-right-radius: 0;
199
203
  }
200
- .card-img-bottom {
204
+ .card-img-bottom,
205
+ .card-footer {
201
206
  border-bottom-right-radius: 0;
202
207
  }
203
208
  }
@@ -205,10 +210,12 @@
205
210
  &:last-child {
206
211
  @include border-left-radius(0);
207
212
 
208
- .card-img-top {
213
+ .card-img-top,
214
+ .card-header {
209
215
  border-top-left-radius: 0;
210
216
  }
211
- .card-img-bottom {
217
+ .card-img-bottom,
218
+ .card-footer {
212
219
  border-bottom-left-radius: 0;
213
220
  }
214
221
  }
@@ -216,20 +223,24 @@
216
223
  &:only-child {
217
224
  @include border-radius($card-border-radius);
218
225
 
219
- .card-img-top {
226
+ .card-img-top,
227
+ .card-header {
220
228
  @include border-top-radius($card-border-radius);
221
229
  }
222
- .card-img-bottom {
230
+ .card-img-bottom,
231
+ .card-footer {
223
232
  @include border-bottom-radius($card-border-radius);
224
233
  }
225
234
  }
226
235
 
227
236
  &:not(:first-child):not(:last-child):not(:only-child) {
228
- border-radius: 0;
237
+ @include border-radius(0);
229
238
 
230
239
  .card-img-top,
231
- .card-img-bottom {
232
- border-radius: 0;
240
+ .card-img-bottom,
241
+ .card-header,
242
+ .card-footer {
243
+ @include border-radius(0);
233
244
  }
234
245
  }
235
246
  }
@@ -91,13 +91,13 @@
91
91
  .carousel-control-prev {
92
92
  left: 0;
93
93
  @if $enable-gradients {
94
- background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.001));
94
+ background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
95
95
  }
96
96
  }
97
97
  .carousel-control-next {
98
98
  right: 0;
99
99
  @if $enable-gradients {
100
- background: linear-gradient(270deg, rgba(0,0,0,.25), rgba(0,0,0,.001));
100
+ background: linear-gradient(270deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
101
101
  }
102
102
  }
103
103
 
@@ -12,6 +12,11 @@
12
12
  text-decoration: none;
13
13
  opacity: .75;
14
14
  }
15
+
16
+ // Opinionated: add "hand" cursor to non-disabled .close elements
17
+ &:not(:disabled):not(.disabled) {
18
+ cursor: pointer;
19
+ }
15
20
  }
16
21
 
17
22
  // Additional properties for button version
@@ -22,7 +27,7 @@
22
27
  // stylelint-disable property-no-vendor-prefix, selector-no-qualifying-type
23
28
  button.close {
24
29
  padding: 0;
25
- background: transparent;
30
+ background-color: transparent;
26
31
  border: 0;
27
32
  -webkit-appearance: none;
28
33
  }
@@ -8,24 +8,20 @@ samp {
8
8
 
9
9
  // Inline code
10
10
  code {
11
- padding: $code-padding-y $code-padding-x;
12
11
  font-size: $code-font-size;
13
12
  color: $code-color;
14
- background-color: $code-bg;
15
- @include border-radius($border-radius);
13
+ word-break: break-word;
16
14
 
17
15
  // Streamline the style when inside anchors to avoid broken underline and more
18
16
  a > & {
19
- padding: 0;
20
17
  color: inherit;
21
- background-color: inherit;
22
18
  }
23
19
  }
24
20
 
25
21
  // User input typically entered via keyboard
26
22
  kbd {
27
- padding: $code-padding-y $code-padding-x;
28
- font-size: $code-font-size;
23
+ padding: $kbd-padding-y $kbd-padding-x;
24
+ font-size: $kbd-font-size;
29
25
  color: $kbd-color;
30
26
  background-color: $kbd-bg;
31
27
  @include border-radius($border-radius-sm);
@@ -42,18 +38,14 @@ kbd {
42
38
  // Blocks of code
43
39
  pre {
44
40
  display: block;
45
- margin-top: 0;
46
- margin-bottom: 1rem;
47
41
  font-size: $code-font-size;
48
42
  color: $pre-color;
49
43
 
50
44
  // Account for some code outputs that place code tags in pre tags
51
45
  code {
52
- padding: 0;
53
46
  font-size: inherit;
54
47
  color: inherit;
55
- background-color: transparent;
56
- border-radius: 0;
48
+ word-break: normal;
57
49
  }
58
50
  }
59
51