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.
- checksums.yaml +5 -5
- data/_includes/head.html +0 -2
- data/_sass/_alert.scss +3 -1
- data/_sass/_button-group.scss +31 -72
- data/_sass/_buttons.scss +26 -19
- data/_sass/_card.scss +23 -12
- data/_sass/_carousel.scss +2 -2
- data/_sass/_close.scss +6 -1
- data/_sass/_code.scss +4 -12
- data/_sass/_custom-forms.scss +124 -84
- data/_sass/_dropdown.scss +30 -2
- data/_sass/_forms.scss +46 -71
- data/_sass/_functions.scss +4 -4
- data/_sass/_images.scss +0 -1
- data/_sass/_input-group.scss +99 -126
- data/_sass/_list-group.scss +2 -1
- data/_sass/_modal.scss +24 -9
- data/_sass/_nav.scss +2 -2
- data/_sass/_navbar.scss +8 -3
- data/_sass/_pagination.scss +32 -19
- data/_sass/_popover.scss +106 -117
- data/_sass/_print.scss +17 -3
- data/_sass/_progress.scss +4 -1
- data/_sass/_reboot.scss +3 -25
- data/_sass/_tables.scss +1 -1
- data/_sass/_tooltip.scss +65 -57
- data/_sass/_type.scss +2 -2
- data/_sass/_variables.scss +174 -108
- data/_sass/bootstrap-grid.scss +4 -7
- data/_sass/bootstrap-reboot.scss +3 -3
- data/_sass/bootstrap.scss +4 -4
- data/_sass/mixins/_background-variant.scss +2 -1
- data/_sass/mixins/_breakpoints.scss +11 -7
- data/_sass/mixins/_buttons.scss +37 -22
- data/_sass/mixins/_caret.scss +30 -0
- data/_sass/mixins/_forms.scss +48 -19
- data/_sass/mixins/_grid-framework.scss +5 -7
- data/_sass/mixins/_hover.scss +24 -46
- data/_sass/mixins/_list-group.scss +10 -13
- data/_sass/mixins/_screen-reader.scss +1 -1
- data/_sass/mixins/_text-hide.scss +1 -0
- data/_sass/utilities/_borders.scss +6 -1
- data/_sass/utilities/_display.scss +10 -28
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a425e282ba85dda651efb3c2ea1ec399485bd60ec8f8f8f9448efd455b0d10bc
|
4
|
+
data.tar.gz: e1d3d0205823cfa5344b5f7e767b408e017083998ec2a63b9ae1ca8df21c01c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71fb12e013d5b8848c8d178512f3fa2128895d9521094491d0b72cab36ae9fb864ee2ceae7b6529c98bf0bcde59388149a6cc66719a68da14eec574422fc5eb4
|
7
|
+
data.tar.gz: 703888165fb59f01f94ffeb4a91ddac7e8801494c741ee099e78240b17dc7de5fe26c777966308db3d37d0b33a22b2337eeb5335febe94cc2f8d6e3e971b2054
|
data/_includes/head.html
CHANGED
@@ -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
|
|
data/_sass/_alert.scss
CHANGED
@@ -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, -
|
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
|
}
|
data/_sass/_button-group.scss
CHANGED
@@ -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:
|
17
|
+
z-index: 1;
|
18
18
|
}
|
19
19
|
&:focus,
|
20
20
|
&:active,
|
21
21
|
&.active {
|
22
|
-
z-index:
|
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: -$
|
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
|
47
|
-
|
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
|
-
//
|
67
|
-
|
68
|
-
.btn-group > .btn
|
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
|
-
|
84
|
-
|
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
|
-
.
|
101
|
-
padding-right: $
|
102
|
-
padding-left: $
|
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: $
|
111
|
-
padding-left: $
|
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: $
|
116
|
-
padding-left: $
|
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: -$
|
125
|
+
margin-top: -$btn-border-width;
|
151
126
|
margin-left: 0;
|
152
127
|
}
|
153
128
|
|
154
|
-
|
155
|
-
|
156
|
-
|
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
|
169
|
-
|
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
|
-
|
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
|
}
|
data/_sass/_buttons.scss
CHANGED
@@ -11,37 +11,47 @@
|
|
11
11
|
white-space: nowrap;
|
12
12
|
vertical-align: middle;
|
13
13
|
user-select: none;
|
14
|
-
border: $
|
15
|
-
@include button-size($
|
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: $
|
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:
|
32
|
+
opacity: $btn-disabled-opacity;
|
32
33
|
@include box-shadow(none);
|
33
34
|
}
|
34
35
|
|
35
|
-
|
36
|
-
&:not(
|
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($
|
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
|
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
|
-
@
|
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($
|
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($
|
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
|
-
|
126
|
-
|
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
|
data/_sass/_card.scss
CHANGED
@@ -172,14 +172,17 @@
|
|
172
172
|
display: flex;
|
173
173
|
flex-direction: column;
|
174
174
|
|
175
|
-
|
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
|
-
.
|
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
|
237
|
+
@include border-radius(0);
|
229
238
|
|
230
239
|
.card-img-top,
|
231
|
-
.card-img-bottom
|
232
|
-
|
240
|
+
.card-img-bottom,
|
241
|
+
.card-header,
|
242
|
+
.card-footer {
|
243
|
+
@include border-radius(0);
|
233
244
|
}
|
234
245
|
}
|
235
246
|
}
|
data/_sass/_carousel.scss
CHANGED
@@ -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
|
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
|
100
|
+
background: linear-gradient(270deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
|
101
101
|
}
|
102
102
|
}
|
103
103
|
|
data/_sass/_close.scss
CHANGED
@@ -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
|
}
|
data/_sass/_code.scss
CHANGED
@@ -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
|
-
|
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: $
|
28
|
-
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
|
-
|
56
|
-
border-radius: 0;
|
48
|
+
word-break: normal;
|
57
49
|
}
|
58
50
|
}
|
59
51
|
|