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
@@ -8,166 +8,155 @@
8
8
  // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
9
9
  // So reset our font and text properties to avoid inheriting weird values.
10
10
  @include reset-text();
11
- font-size: $font-size-sm;
11
+ font-size: $popover-font-size;
12
12
  // Allow breaking very long words so they don't overflow the popover's bounds
13
13
  word-wrap: break-word;
14
14
  background-color: $popover-bg;
15
15
  background-clip: padding-box;
16
16
  border: $popover-border-width solid $popover-border-color;
17
- @include border-radius($border-radius-lg);
17
+ @include border-radius($popover-border-radius);
18
18
  @include box-shadow($popover-box-shadow);
19
19
 
20
- // Arrows
21
- //
22
- // .arrow is outer, .arrow::after is inner
23
-
24
20
  .arrow {
25
21
  position: absolute;
26
22
  display: block;
27
23
  width: $popover-arrow-width;
28
24
  height: $popover-arrow-height;
25
+ margin: 0 $border-radius-lg;
26
+
27
+ &::before,
28
+ &::after {
29
+ position: absolute;
30
+ display: block;
31
+ content: "";
32
+ border-color: transparent;
33
+ border-style: solid;
34
+ }
35
+ }
36
+ }
37
+
38
+ .bs-popover-top {
39
+ margin-bottom: $popover-arrow-height;
40
+
41
+ .arrow {
42
+ bottom: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
29
43
  }
30
44
 
31
45
  .arrow::before,
32
46
  .arrow::after {
33
- position: absolute;
34
- display: block;
35
- border-color: transparent;
36
- border-style: solid;
47
+ border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
37
48
  }
38
49
 
39
50
  .arrow::before {
40
- content: "";
41
- border-width: $popover-arrow-width;
51
+ bottom: 0;
52
+ border-top-color: $popover-arrow-outer-color;
42
53
  }
54
+
43
55
  .arrow::after {
44
- content: "";
45
- border-width: $popover-arrow-width;
56
+ bottom: $popover-border-width;
57
+ border-top-color: $popover-arrow-color;
46
58
  }
59
+ }
47
60
 
48
- // Popover directions
49
-
50
- &.bs-popover-top {
51
- margin-bottom: $popover-arrow-width;
52
-
53
- .arrow {
54
- bottom: 0;
55
- }
56
-
57
- .arrow::before,
58
- .arrow::after {
59
- border-bottom-width: 0;
60
- }
61
+ .bs-popover-right {
62
+ margin-left: $popover-arrow-height;
61
63
 
62
- .arrow::before {
63
- bottom: -$popover-arrow-width;
64
- margin-left: -$popover-arrow-width;
65
- border-top-color: $popover-arrow-outer-color;
66
- }
67
-
68
- .arrow::after {
69
- bottom: calc((#{$popover-arrow-width} - #{$popover-border-width}) * -1);
70
- margin-left: -$popover-arrow-width;
71
- border-top-color: $popover-arrow-color;
72
- }
64
+ .arrow {
65
+ left: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
66
+ width: $popover-arrow-height;
67
+ height: $popover-arrow-width;
68
+ margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
73
69
  }
74
70
 
75
- &.bs-popover-right {
76
- margin-left: $popover-arrow-width;
71
+ .arrow::before,
72
+ .arrow::after {
73
+ border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
74
+ }
77
75
 
78
- .arrow {
79
- left: 0;
80
- }
76
+ .arrow::before {
77
+ left: 0;
78
+ border-right-color: $popover-arrow-outer-color;
79
+ }
81
80
 
82
- .arrow::before,
83
- .arrow::after {
84
- margin-top: -$popover-arrow-width;
85
- border-left-width: 0;
86
- }
81
+ .arrow::after {
82
+ left: $popover-border-width;
83
+ border-right-color: $popover-arrow-color;
84
+ }
85
+ }
87
86
 
88
- .arrow::before {
89
- left: -$popover-arrow-width;
90
- border-right-color: $popover-arrow-outer-color;
91
- }
87
+ .bs-popover-bottom {
88
+ margin-top: $popover-arrow-height;
92
89
 
93
- .arrow::after {
94
- left: calc((#{$popover-arrow-width} - #{$popover-border-width}) * -1);
95
- border-right-color: $popover-arrow-color;
96
- }
90
+ .arrow {
91
+ top: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
97
92
  }
98
93
 
99
- &.bs-popover-bottom {
100
- margin-top: $popover-arrow-width;
94
+ .arrow::before,
95
+ .arrow::after {
96
+ border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
97
+ }
101
98
 
102
- .arrow {
103
- top: 0;
104
- }
99
+ .arrow::before {
100
+ top: 0;
101
+ border-bottom-color: $popover-arrow-outer-color;
102
+ }
105
103
 
106
- .arrow::before,
107
- .arrow::after {
108
- margin-left: -$popover-arrow-width;
109
- border-top-width: 0;
110
- }
104
+ .arrow::after {
105
+ top: $popover-border-width;
106
+ border-bottom-color: $popover-arrow-color;
107
+ }
111
108
 
112
- .arrow::before {
113
- top: -$popover-arrow-width;
114
- border-bottom-color: $popover-arrow-outer-color;
115
- }
109
+ // This will remove the popover-header's border just below the arrow
110
+ .popover-header::before {
111
+ position: absolute;
112
+ top: 0;
113
+ left: 50%;
114
+ display: block;
115
+ width: $popover-arrow-width;
116
+ margin-left: ($popover-arrow-width / -2);
117
+ content: "";
118
+ border-bottom: $popover-border-width solid $popover-header-bg;
119
+ }
120
+ }
116
121
 
117
- .arrow::after {
118
- top: calc((#{$popover-arrow-width} - #{$popover-border-width}) * -1);
119
- border-bottom-color: $popover-arrow-color;
120
- }
122
+ .bs-popover-left {
123
+ margin-right: $popover-arrow-height;
121
124
 
122
- // This will remove the popover-header's border just below the arrow
123
- .popover-header::before {
124
- position: absolute;
125
- top: 0;
126
- left: 50%;
127
- display: block;
128
- width: 20px;
129
- margin-left: -10px;
130
- content: "";
131
- border-bottom: $popover-border-width solid $popover-header-bg;
132
- }
125
+ .arrow {
126
+ right: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
127
+ width: $popover-arrow-height;
128
+ height: $popover-arrow-width;
129
+ margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
133
130
  }
134
131
 
135
- &.bs-popover-left {
136
- margin-right: $popover-arrow-width;
137
-
138
- .arrow {
139
- right: 0;
140
- }
132
+ .arrow::before,
133
+ .arrow::after {
134
+ border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
135
+ }
141
136
 
142
- .arrow::before,
143
- .arrow::after {
144
- margin-top: -$popover-arrow-width;
145
- border-right-width: 0;
146
- }
137
+ .arrow::before {
138
+ right: 0;
139
+ border-left-color: $popover-arrow-outer-color;
140
+ }
147
141
 
148
- .arrow::before {
149
- right: -$popover-arrow-width;
150
- border-left-color: $popover-arrow-outer-color;
151
- }
142
+ .arrow::after {
143
+ right: $popover-border-width;
144
+ border-left-color: $popover-arrow-color;
145
+ }
146
+ }
152
147
 
153
- .arrow::after {
154
- right: calc((#{$popover-arrow-width} - #{$popover-border-width}) * -1);
155
- border-left-color: $popover-arrow-color;
156
- }
148
+ .bs-popover-auto {
149
+ &[x-placement^="top"] {
150
+ @extend .bs-popover-top;
157
151
  }
158
- &.bs-popover-auto {
159
- &[x-placement^="top"] {
160
- @extend .bs-popover-top;
161
- }
162
- &[x-placement^="right"] {
163
- @extend .bs-popover-right;
164
- }
165
- &[x-placement^="bottom"] {
166
- @extend .bs-popover-bottom;
167
- }
168
- &[x-placement^="left"] {
169
- @extend .bs-popover-left;
170
- }
152
+ &[x-placement^="right"] {
153
+ @extend .bs-popover-right;
154
+ }
155
+ &[x-placement^="bottom"] {
156
+ @extend .bs-popover-bottom;
157
+ }
158
+ &[x-placement^="left"] {
159
+ @extend .bs-popover-left;
171
160
  }
172
161
  }
173
162
 
@@ -20,9 +20,10 @@
20
20
  box-shadow: none !important;
21
21
  }
22
22
 
23
- a,
24
- a:visited {
25
- text-decoration: underline;
23
+ a {
24
+ &:not(.btn) {
25
+ text-decoration: underline;
26
+ }
26
27
  }
27
28
 
28
29
  // Bootstrap specific; comment the following selector out
@@ -82,6 +83,19 @@
82
83
 
83
84
  // Bootstrap specific changes start
84
85
 
86
+ // Specify a size and min-width to make printing closer across browsers.
87
+ // We don't set margin here because it breaks `size` in Chrome. We also
88
+ // don't use `!important` on `size` as it breaks in Chrome.
89
+ @page {
90
+ size: $print-page-size;
91
+ }
92
+ body {
93
+ min-width: $print-body-min-width !important;
94
+ }
95
+ .container {
96
+ min-width: $print-body-min-width !important;
97
+ }
98
+
85
99
  // Bootstrap components
86
100
  .navbar {
87
101
  display: none;
@@ -10,14 +10,17 @@
10
10
  font-size: $progress-font-size;
11
11
  background-color: $progress-bg;
12
12
  @include border-radius($progress-border-radius);
13
+ @include box-shadow($progress-box-shadow);
13
14
  }
14
15
 
15
16
  .progress-bar {
16
17
  display: flex;
17
- align-items: center;
18
+ flex-direction: column;
18
19
  justify-content: center;
19
20
  color: $progress-bar-color;
21
+ text-align: center;
20
22
  background-color: $progress-bar-bg;
23
+ @include transition($progress-bar-transition);
21
24
  }
22
25
 
23
26
  .progress-bar-striped {
@@ -30,7 +30,7 @@ html {
30
30
  -webkit-text-size-adjust: 100%; // 4
31
31
  -ms-text-size-adjust: 100%; // 4
32
32
  -ms-overflow-style: scrollbar; // 5
33
- -webkit-tap-highlight-color: rgba(0,0,0,0); // 6
33
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 6
34
34
  }
35
35
 
36
36
  // IE10+ doesn't honor `<meta name="viewport">` in some cases.
@@ -71,7 +71,7 @@ body {
71
71
  //
72
72
  // Credit: https://github.com/suitcss/base
73
73
  [tabindex="-1"]:focus {
74
- outline: none !important;
74
+ outline: 0 !important;
75
75
  }
76
76
 
77
77
 
@@ -279,29 +279,6 @@ svg:not(:root) {
279
279
  }
280
280
 
281
281
 
282
- // Avoid 300ms click delay on touch devices that support the `touch-action` CSS property.
283
- //
284
- // In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11
285
- // DON'T remove the click delay when `<meta name="viewport" content="width=device-width">` is present.
286
- // However, they DO support removing the click delay via `touch-action: manipulation`.
287
- // See:
288
- // * https://getbootstrap.com/docs/4.0/content/reboot/#click-delay-optimization-for-touch
289
- // * https://caniuse.com/#feat=css-touch-action
290
- // * https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
291
-
292
- a,
293
- area,
294
- button,
295
- [role="button"],
296
- input:not([type="range"]),
297
- label,
298
- select,
299
- summary,
300
- textarea {
301
- touch-action: manipulation;
302
- }
303
-
304
-
305
282
  //
306
283
  // Tables
307
284
  //
@@ -491,6 +468,7 @@ output {
491
468
 
492
469
  summary {
493
470
  display: list-item; // Add the correct display in all browsers
471
+ cursor: pointer;
494
472
  }
495
473
 
496
474
  template {
@@ -171,7 +171,7 @@
171
171
  -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
172
172
 
173
173
  // Prevent double border on horizontal scroll due to use of `display: block;`
174
- &.table-bordered {
174
+ > .table-bordered {
175
175
  border: 0;
176
176
  }
177
177
  }
@@ -7,7 +7,7 @@
7
7
  // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
8
8
  // So reset our font and text properties to avoid inheriting weird values.
9
9
  @include reset-text();
10
- font-size: $font-size-sm;
10
+ font-size: $tooltip-font-size;
11
11
  // Allow breaking very long words so they don't overflow the tooltip's bounds
12
12
  word-wrap: break-word;
13
13
  opacity: 0;
@@ -19,80 +19,88 @@
19
19
  display: block;
20
20
  width: $tooltip-arrow-width;
21
21
  height: $tooltip-arrow-height;
22
- }
23
22
 
24
- .arrow::before {
25
- position: absolute;
26
- border-color: transparent;
27
- border-style: solid;
23
+ &::before {
24
+ position: absolute;
25
+ content: "";
26
+ border-color: transparent;
27
+ border-style: solid;
28
+ }
28
29
  }
30
+ }
29
31
 
30
- &.bs-tooltip-top {
31
- padding: $tooltip-arrow-width 0;
32
- .arrow {
33
- bottom: 0;
34
- }
32
+ .bs-tooltip-top {
33
+ padding: $tooltip-arrow-height 0;
35
34
 
36
- .arrow::before {
37
- margin-left: -($tooltip-arrow-width - 2);
38
- content: "";
39
- border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
35
+ .arrow {
36
+ bottom: 0;
37
+
38
+ &::before {
39
+ top: 0;
40
+ border-width: $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
40
41
  border-top-color: $tooltip-arrow-color;
41
42
  }
42
43
  }
43
- &.bs-tooltip-right {
44
- padding: 0 $tooltip-arrow-width;
45
- .arrow {
46
- left: 0;
47
- }
44
+ }
48
45
 
49
- .arrow::before {
50
- margin-top: -($tooltip-arrow-width - 2);
51
- content: "";
52
- border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
46
+ .bs-tooltip-right {
47
+ padding: 0 $tooltip-arrow-height;
48
+
49
+ .arrow {
50
+ left: 0;
51
+ width: $tooltip-arrow-height;
52
+ height: $tooltip-arrow-width;
53
+
54
+ &::before {
55
+ right: 0;
56
+ border-width: ($tooltip-arrow-width / 2) $tooltip-arrow-height ($tooltip-arrow-width / 2) 0;
53
57
  border-right-color: $tooltip-arrow-color;
54
58
  }
55
59
  }
56
- &.bs-tooltip-bottom {
57
- padding: $tooltip-arrow-width 0;
58
- .arrow {
59
- top: 0;
60
- }
60
+ }
61
61
 
62
- .arrow::before {
63
- margin-left: -($tooltip-arrow-width - 2);
64
- content: "";
65
- border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
62
+ .bs-tooltip-bottom {
63
+ padding: $tooltip-arrow-height 0;
64
+
65
+ .arrow {
66
+ top: 0;
67
+
68
+ &::before {
69
+ bottom: 0;
70
+ border-width: 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
66
71
  border-bottom-color: $tooltip-arrow-color;
67
72
  }
68
73
  }
69
- &.bs-tooltip-left {
70
- padding: 0 $tooltip-arrow-width;
71
- .arrow {
72
- right: 0;
73
- }
74
+ }
74
75
 
75
- .arrow::before {
76
- right: 0;
77
- margin-top: -($tooltip-arrow-width - 2);
78
- content: "";
79
- border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
76
+ .bs-tooltip-left {
77
+ padding: 0 $tooltip-arrow-height;
78
+
79
+ .arrow {
80
+ right: 0;
81
+ width: $tooltip-arrow-height;
82
+ height: $tooltip-arrow-width;
83
+
84
+ &::before {
85
+ left: 0;
86
+ border-width: ($tooltip-arrow-width / 2) 0 ($tooltip-arrow-width / 2) $tooltip-arrow-height;
80
87
  border-left-color: $tooltip-arrow-color;
81
88
  }
82
89
  }
83
- &.bs-tooltip-auto {
84
- &[x-placement^="top"] {
85
- @extend .bs-tooltip-top;
86
- }
87
- &[x-placement^="right"] {
88
- @extend .bs-tooltip-right;
89
- }
90
- &[x-placement^="bottom"] {
91
- @extend .bs-tooltip-bottom;
92
- }
93
- &[x-placement^="left"] {
94
- @extend .bs-tooltip-left;
95
- }
90
+ }
91
+
92
+ .bs-tooltip-auto {
93
+ &[x-placement^="top"] {
94
+ @extend .bs-tooltip-top;
95
+ }
96
+ &[x-placement^="right"] {
97
+ @extend .bs-tooltip-right;
98
+ }
99
+ &[x-placement^="bottom"] {
100
+ @extend .bs-tooltip-bottom;
101
+ }
102
+ &[x-placement^="left"] {
103
+ @extend .bs-tooltip-left;
96
104
  }
97
105
  }
98
106
 
@@ -103,5 +111,5 @@
103
111
  color: $tooltip-color;
104
112
  text-align: center;
105
113
  background-color: $tooltip-bg;
106
- @include border-radius($border-radius);
114
+ @include border-radius($tooltip-border-radius);
107
115
  }