jekyll-bootstrap 4.0.0.pre.beta.2.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 (96) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +46 -0
  4. data/_includes/footer.html +16 -0
  5. data/_includes/head.html +16 -0
  6. data/_includes/header.html +24 -0
  7. data/_layouts/default.html +9 -0
  8. data/_layouts/home.html +71 -0
  9. data/_layouts/page.html +11 -0
  10. data/_layouts/post.html +24 -0
  11. data/_sass/_alert.scss +49 -0
  12. data/_sass/_badge.scss +47 -0
  13. data/_sass/_breadcrumb.scss +38 -0
  14. data/_sass/_button-group.scss +207 -0
  15. data/_sass/_buttons.scss +136 -0
  16. data/_sass/_card.scss +259 -0
  17. data/_sass/_carousel.scss +191 -0
  18. data/_sass/_close.scss +29 -0
  19. data/_sass/_code.scss +64 -0
  20. data/_sass/_custom-forms.scss +257 -0
  21. data/_sass/_dropdown.scss +103 -0
  22. data/_sass/_forms.scss +358 -0
  23. data/_sass/_functions.scss +86 -0
  24. data/_sass/_grid.scss +52 -0
  25. data/_sass/_images.scss +43 -0
  26. data/_sass/_input-group.scss +186 -0
  27. data/_sass/_jumbotron.scss +16 -0
  28. data/_sass/_list-group.scss +114 -0
  29. data/_sass/_media.scss +8 -0
  30. data/_sass/_mixins.scss +42 -0
  31. data/_sass/_modal.scss +153 -0
  32. data/_sass/_nav.scss +118 -0
  33. data/_sass/_navbar.scss +306 -0
  34. data/_sass/_pagination.scss +64 -0
  35. data/_sass/_popover.scss +194 -0
  36. data/_sass/_print.scss +110 -0
  37. data/_sass/_progress.scss +30 -0
  38. data/_sass/_reboot.scss +504 -0
  39. data/_sass/_root.scss +19 -0
  40. data/_sass/_tables.scss +180 -0
  41. data/_sass/_tooltip.scss +107 -0
  42. data/_sass/_transitions.scss +36 -0
  43. data/_sass/_type.scss +125 -0
  44. data/_sass/_utilities.scss +14 -0
  45. data/_sass/_variables.scss +828 -0
  46. data/_sass/bootstrap-grid.scss +35 -0
  47. data/_sass/bootstrap-reboot.scss +12 -0
  48. data/_sass/bootstrap.scss +42 -0
  49. data/_sass/mixins/_alert.scss +13 -0
  50. data/_sass/mixins/_background-variant.scss +20 -0
  51. data/_sass/mixins/_badge.scss +12 -0
  52. data/_sass/mixins/_border-radius.scss +35 -0
  53. data/_sass/mixins/_box-shadow.scss +5 -0
  54. data/_sass/mixins/_breakpoints.scss +119 -0
  55. data/_sass/mixins/_buttons.scss +94 -0
  56. data/_sass/mixins/_caret.scss +35 -0
  57. data/_sass/mixins/_clearfix.scss +7 -0
  58. data/_sass/mixins/_float.scss +11 -0
  59. data/_sass/mixins/_forms.scss +108 -0
  60. data/_sass/mixins/_gradients.scss +45 -0
  61. data/_sass/mixins/_grid-framework.scss +69 -0
  62. data/_sass/mixins/_grid.scss +52 -0
  63. data/_sass/mixins/_hover.scss +61 -0
  64. data/_sass/mixins/_image.scss +36 -0
  65. data/_sass/mixins/_list-group.scss +24 -0
  66. data/_sass/mixins/_lists.scss +7 -0
  67. data/_sass/mixins/_nav-divider.scss +10 -0
  68. data/_sass/mixins/_navbar-align.scss +10 -0
  69. data/_sass/mixins/_pagination.scss +22 -0
  70. data/_sass/mixins/_reset-text.scss +17 -0
  71. data/_sass/mixins/_resize.scss +6 -0
  72. data/_sass/mixins/_screen-reader.scss +35 -0
  73. data/_sass/mixins/_size.scss +6 -0
  74. data/_sass/mixins/_table-row.scss +30 -0
  75. data/_sass/mixins/_text-emphasis.scss +14 -0
  76. data/_sass/mixins/_text-hide.scss +8 -0
  77. data/_sass/mixins/_text-truncate.scss +8 -0
  78. data/_sass/mixins/_transition.scss +9 -0
  79. data/_sass/mixins/_visibility.scss +7 -0
  80. data/_sass/syntax_highlight.scss +70 -0
  81. data/_sass/utilities/_align.scss +8 -0
  82. data/_sass/utilities/_background.scss +19 -0
  83. data/_sass/utilities/_borders.scss +54 -0
  84. data/_sass/utilities/_clearfix.scss +3 -0
  85. data/_sass/utilities/_display.scss +56 -0
  86. data/_sass/utilities/_embed.scss +52 -0
  87. data/_sass/utilities/_flex.scss +46 -0
  88. data/_sass/utilities/_float.scss +9 -0
  89. data/_sass/utilities/_position.scss +36 -0
  90. data/_sass/utilities/_screenreaders.scss +11 -0
  91. data/_sass/utilities/_sizing.scss +12 -0
  92. data/_sass/utilities/_spacing.scss +51 -0
  93. data/_sass/utilities/_text.scss +52 -0
  94. data/_sass/utilities/_visibility.scss +11 -0
  95. data/assets/css/main.scss +15 -0
  96. metadata +195 -0
@@ -0,0 +1,136 @@
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ //
4
+ // Base styles
5
+ //
6
+
7
+ .btn {
8
+ display: inline-block;
9
+ font-weight: $btn-font-weight;
10
+ text-align: center;
11
+ white-space: nowrap;
12
+ vertical-align: middle;
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);
16
+ @include transition($btn-transition);
17
+
18
+ // Share hover and focus styles
19
+ @include hover-focus {
20
+ text-decoration: none;
21
+ }
22
+ &:focus,
23
+ &.focus {
24
+ outline: 0;
25
+ box-shadow: $input-btn-focus-box-shadow;
26
+ }
27
+
28
+ // Disabled comes first so active can properly restyle
29
+ &.disabled,
30
+ &:disabled {
31
+ opacity: .65;
32
+ @include box-shadow(none);
33
+ }
34
+
35
+ &:not([disabled]):not(.disabled):active,
36
+ &:not([disabled]):not(.disabled).active {
37
+ background-image: none;
38
+ @include box-shadow($input-btn-focus-box-shadow, $btn-active-box-shadow);
39
+ }
40
+ }
41
+
42
+ // Future-proof disabling of clicks on `<a>` elements
43
+ a.btn.disabled,
44
+ fieldset[disabled] a.btn {
45
+ pointer-events: none;
46
+ }
47
+
48
+
49
+ //
50
+ // Alternate buttons
51
+ //
52
+
53
+ @each $color, $value in $theme-colors {
54
+ .btn-#{$color} {
55
+ @include button-variant($value, $value);
56
+ }
57
+ }
58
+
59
+ @each $color, $value in $theme-colors {
60
+ .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
+ }
66
+ }
67
+ }
68
+
69
+
70
+ //
71
+ // Link buttons
72
+ //
73
+
74
+ // Make a button look and behave like a link
75
+ .btn-link {
76
+ font-weight: $font-weight-normal;
77
+ color: $link-color;
78
+ background-color: transparent;
79
+
80
+ @include hover {
81
+ color: $link-hover-color;
82
+ text-decoration: $link-hover-decoration;
83
+ background-color: transparent;
84
+ border-color: transparent;
85
+ }
86
+
87
+ &:focus,
88
+ &.focus {
89
+ border-color: transparent;
90
+ box-shadow: none;
91
+ }
92
+
93
+ &:disabled,
94
+ &.disabled {
95
+ color: $btn-link-disabled-color;
96
+ }
97
+
98
+ // No need for an active state here
99
+ }
100
+
101
+
102
+ //
103
+ // Button Sizes
104
+ //
105
+
106
+ .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);
108
+ }
109
+
110
+ .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);
112
+ }
113
+
114
+
115
+ //
116
+ // Block button
117
+ //
118
+
119
+ .btn-block {
120
+ display: block;
121
+ width: 100%;
122
+ }
123
+
124
+ // Vertically space out multiple block buttons
125
+ .btn-block + .btn-block {
126
+ margin-top: $btn-block-spacing-y;
127
+ }
128
+
129
+ // Specificity overrides
130
+ input[type="submit"],
131
+ input[type="reset"],
132
+ input[type="button"] {
133
+ &.btn-block {
134
+ width: 100%;
135
+ }
136
+ }
@@ -0,0 +1,259 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .card {
6
+ position: relative;
7
+ display: flex;
8
+ flex-direction: column;
9
+ min-width: 0;
10
+ word-wrap: break-word;
11
+ background-color: $card-bg;
12
+ background-clip: border-box;
13
+ border: $card-border-width solid $card-border-color;
14
+ @include border-radius($card-border-radius);
15
+
16
+ > hr {
17
+ margin-right: 0;
18
+ margin-left: 0;
19
+ }
20
+
21
+ > .list-group:first-child {
22
+ .list-group-item:first-child {
23
+ @include border-top-radius($card-border-radius);
24
+ }
25
+ }
26
+
27
+ > .list-group:last-child {
28
+ .list-group-item:last-child {
29
+ @include border-bottom-radius($card-border-radius);
30
+ }
31
+ }
32
+ }
33
+
34
+ .card-body {
35
+ // Enable `flex-grow: 1` for decks and groups so that card blocks take up
36
+ // as much space as possible, ensuring footers are aligned to the bottom.
37
+ flex: 1 1 auto;
38
+ padding: $card-spacer-x;
39
+ }
40
+
41
+ .card-title {
42
+ margin-bottom: $card-spacer-y;
43
+ }
44
+
45
+ .card-subtitle {
46
+ margin-top: -($card-spacer-y / 2);
47
+ margin-bottom: 0;
48
+ }
49
+
50
+ .card-text:last-child {
51
+ margin-bottom: 0;
52
+ }
53
+
54
+ .card-link {
55
+ @include hover {
56
+ text-decoration: none;
57
+ }
58
+
59
+ + .card-link {
60
+ margin-left: $card-spacer-x;
61
+ }
62
+ }
63
+
64
+ //
65
+ // Optional textual caps
66
+ //
67
+
68
+ .card-header {
69
+ padding: $card-spacer-y $card-spacer-x;
70
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
71
+ background-color: $card-cap-bg;
72
+ border-bottom: $card-border-width solid $card-border-color;
73
+
74
+ &:first-child {
75
+ @include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
76
+ }
77
+
78
+ + .list-group {
79
+ .list-group-item:first-child {
80
+ border-top: 0;
81
+ }
82
+ }
83
+ }
84
+
85
+ .card-footer {
86
+ padding: $card-spacer-y $card-spacer-x;
87
+ background-color: $card-cap-bg;
88
+ border-top: $card-border-width solid $card-border-color;
89
+
90
+ &:last-child {
91
+ @include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
92
+ }
93
+ }
94
+
95
+
96
+ //
97
+ // Header navs
98
+ //
99
+
100
+ .card-header-tabs {
101
+ margin-right: -($card-spacer-x / 2);
102
+ margin-bottom: -$card-spacer-y;
103
+ margin-left: -($card-spacer-x / 2);
104
+ border-bottom: 0;
105
+ }
106
+
107
+ .card-header-pills {
108
+ margin-right: -($card-spacer-x / 2);
109
+ margin-left: -($card-spacer-x / 2);
110
+ }
111
+
112
+ // Card image
113
+ .card-img-overlay {
114
+ position: absolute;
115
+ top: 0;
116
+ right: 0;
117
+ bottom: 0;
118
+ left: 0;
119
+ padding: $card-img-overlay-padding;
120
+ }
121
+
122
+ .card-img {
123
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
124
+ @include border-radius($card-inner-border-radius);
125
+ }
126
+
127
+ // Card image caps
128
+ .card-img-top {
129
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
130
+ @include border-top-radius($card-inner-border-radius);
131
+ }
132
+
133
+ .card-img-bottom {
134
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
135
+ @include border-bottom-radius($card-inner-border-radius);
136
+ }
137
+
138
+
139
+ // Card deck
140
+
141
+ .card-deck {
142
+ display: flex;
143
+ flex-direction: column;
144
+
145
+ .card {
146
+ margin-bottom: $card-deck-margin;
147
+ }
148
+
149
+ @include media-breakpoint-up(sm) {
150
+ flex-flow: row wrap;
151
+ margin-right: -$card-deck-margin;
152
+ margin-left: -$card-deck-margin;
153
+
154
+ .card {
155
+ display: flex;
156
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
157
+ flex: 1 0 0%;
158
+ flex-direction: column;
159
+ margin-right: $card-deck-margin;
160
+ margin-bottom: 0; // Override the default
161
+ margin-left: $card-deck-margin;
162
+ }
163
+ }
164
+ }
165
+
166
+
167
+ //
168
+ // Card groups
169
+ //
170
+
171
+ .card-group {
172
+ display: flex;
173
+ flex-direction: column;
174
+
175
+ .card {
176
+ margin-bottom: $card-group-margin;
177
+ }
178
+
179
+ @include media-breakpoint-up(sm) {
180
+ flex-flow: row wrap;
181
+
182
+ .card {
183
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
184
+ flex: 1 0 0%;
185
+ margin-bottom: 0;
186
+
187
+ + .card {
188
+ margin-left: 0;
189
+ border-left: 0;
190
+ }
191
+
192
+ // Handle rounded corners
193
+ @if $enable-rounded {
194
+ &:first-child {
195
+ @include border-right-radius(0);
196
+
197
+ .card-img-top {
198
+ border-top-right-radius: 0;
199
+ }
200
+ .card-img-bottom {
201
+ border-bottom-right-radius: 0;
202
+ }
203
+ }
204
+
205
+ &:last-child {
206
+ @include border-left-radius(0);
207
+
208
+ .card-img-top {
209
+ border-top-left-radius: 0;
210
+ }
211
+ .card-img-bottom {
212
+ border-bottom-left-radius: 0;
213
+ }
214
+ }
215
+
216
+ &:only-child {
217
+ @include border-radius($card-border-radius);
218
+
219
+ .card-img-top {
220
+ @include border-top-radius($card-border-radius);
221
+ }
222
+ .card-img-bottom {
223
+ @include border-bottom-radius($card-border-radius);
224
+ }
225
+ }
226
+
227
+ &:not(:first-child):not(:last-child):not(:only-child) {
228
+ border-radius: 0;
229
+
230
+ .card-img-top,
231
+ .card-img-bottom {
232
+ border-radius: 0;
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
239
+
240
+
241
+ //
242
+ // Columns
243
+ //
244
+
245
+ .card-columns {
246
+ .card {
247
+ margin-bottom: $card-columns-margin;
248
+ }
249
+
250
+ @include media-breakpoint-up(sm) {
251
+ column-count: $card-columns-count;
252
+ column-gap: $card-columns-gap;
253
+
254
+ .card {
255
+ display: inline-block; // Don't let them vertically span multiple columns
256
+ width: 100%; // Don't let their width change
257
+ }
258
+ }
259
+ }
@@ -0,0 +1,191 @@
1
+ // Wrapper for the slide container and indicators
2
+ .carousel {
3
+ position: relative;
4
+ }
5
+
6
+ .carousel-inner {
7
+ position: relative;
8
+ width: 100%;
9
+ overflow: hidden;
10
+ }
11
+
12
+ .carousel-item {
13
+ position: relative;
14
+ display: none;
15
+ align-items: center;
16
+ width: 100%;
17
+ @include transition($carousel-transition);
18
+ backface-visibility: hidden;
19
+ perspective: 1000px;
20
+ }
21
+
22
+ .carousel-item.active,
23
+ .carousel-item-next,
24
+ .carousel-item-prev {
25
+ display: block;
26
+ }
27
+
28
+ .carousel-item-next,
29
+ .carousel-item-prev {
30
+ position: absolute;
31
+ top: 0;
32
+ }
33
+
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
+ }
42
+ }
43
+
44
+ .carousel-item-next,
45
+ .active.carousel-item-right {
46
+ transform: translateX(100%);
47
+
48
+ @supports (transform-style: preserve-3d) {
49
+ transform: translate3d(100%, 0, 0);
50
+ }
51
+ }
52
+
53
+ .carousel-item-prev,
54
+ .active.carousel-item-left {
55
+ transform: translateX(-100%);
56
+
57
+ @supports (transform-style: preserve-3d) {
58
+ transform: translate3d(-100%, 0, 0);
59
+ }
60
+ }
61
+
62
+
63
+ //
64
+ // Left/right controls for nav
65
+ //
66
+
67
+ .carousel-control-prev,
68
+ .carousel-control-next {
69
+ position: absolute;
70
+ top: 0;
71
+ bottom: 0;
72
+ // Use flex for alignment (1-3)
73
+ display: flex; // 1. allow flex styles
74
+ align-items: center; // 2. vertically center contents
75
+ justify-content: center; // 3. horizontally center contents
76
+ width: $carousel-control-width;
77
+ color: $carousel-control-color;
78
+ text-align: center;
79
+ 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.
82
+
83
+ // Hover/focus state
84
+ @include hover-focus {
85
+ color: $carousel-control-color;
86
+ text-decoration: none;
87
+ outline: 0;
88
+ opacity: .9;
89
+ }
90
+ }
91
+ .carousel-control-prev {
92
+ left: 0;
93
+ @if $enable-gradients {
94
+ background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.001));
95
+ }
96
+ }
97
+ .carousel-control-next {
98
+ right: 0;
99
+ @if $enable-gradients {
100
+ background: linear-gradient(270deg, rgba(0,0,0,.25), rgba(0,0,0,.001));
101
+ }
102
+ }
103
+
104
+ // Icons for within
105
+ .carousel-control-prev-icon,
106
+ .carousel-control-next-icon {
107
+ display: inline-block;
108
+ width: $carousel-control-icon-width;
109
+ height: $carousel-control-icon-width;
110
+ background: transparent no-repeat center center;
111
+ background-size: 100% 100%;
112
+ }
113
+ .carousel-control-prev-icon {
114
+ background-image: $carousel-control-prev-icon-bg;
115
+ }
116
+ .carousel-control-next-icon {
117
+ background-image: $carousel-control-next-icon-bg;
118
+ }
119
+
120
+
121
+ // Optional indicator pips
122
+ //
123
+ // Add an ordered list with the following class and add a list item for each
124
+ // slide your carousel holds.
125
+
126
+ .carousel-indicators {
127
+ position: absolute;
128
+ right: 0;
129
+ bottom: 10px;
130
+ left: 0;
131
+ z-index: 15;
132
+ display: flex;
133
+ justify-content: center;
134
+ padding-left: 0; // override <ol> default
135
+ // Use the .carousel-control's width as margin so we don't overlay those
136
+ margin-right: $carousel-control-width;
137
+ margin-left: $carousel-control-width;
138
+ list-style: none;
139
+
140
+ li {
141
+ position: relative;
142
+ flex: 0 1 auto;
143
+ width: $carousel-indicator-width;
144
+ height: $carousel-indicator-height;
145
+ margin-right: $carousel-indicator-spacer;
146
+ margin-left: $carousel-indicator-spacer;
147
+ 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
+ }
169
+ }
170
+
171
+ .active {
172
+ background-color: $carousel-indicator-active-bg;
173
+ }
174
+ }
175
+
176
+
177
+ // Optional captions
178
+ //
179
+ //
180
+
181
+ .carousel-caption {
182
+ position: absolute;
183
+ right: ((100% - $carousel-caption-width) / 2);
184
+ bottom: 20px;
185
+ left: ((100% - $carousel-caption-width) / 2);
186
+ z-index: 10;
187
+ padding-top: 20px;
188
+ padding-bottom: 20px;
189
+ color: $carousel-caption-color;
190
+ text-align: center;
191
+ }