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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +46 -0
- data/_includes/footer.html +16 -0
- data/_includes/head.html +16 -0
- data/_includes/header.html +24 -0
- data/_layouts/default.html +9 -0
- data/_layouts/home.html +71 -0
- data/_layouts/page.html +11 -0
- data/_layouts/post.html +24 -0
- data/_sass/_alert.scss +49 -0
- data/_sass/_badge.scss +47 -0
- data/_sass/_breadcrumb.scss +38 -0
- data/_sass/_button-group.scss +207 -0
- data/_sass/_buttons.scss +136 -0
- data/_sass/_card.scss +259 -0
- data/_sass/_carousel.scss +191 -0
- data/_sass/_close.scss +29 -0
- data/_sass/_code.scss +64 -0
- data/_sass/_custom-forms.scss +257 -0
- data/_sass/_dropdown.scss +103 -0
- data/_sass/_forms.scss +358 -0
- data/_sass/_functions.scss +86 -0
- data/_sass/_grid.scss +52 -0
- data/_sass/_images.scss +43 -0
- data/_sass/_input-group.scss +186 -0
- data/_sass/_jumbotron.scss +16 -0
- data/_sass/_list-group.scss +114 -0
- data/_sass/_media.scss +8 -0
- data/_sass/_mixins.scss +42 -0
- data/_sass/_modal.scss +153 -0
- data/_sass/_nav.scss +118 -0
- data/_sass/_navbar.scss +306 -0
- data/_sass/_pagination.scss +64 -0
- data/_sass/_popover.scss +194 -0
- data/_sass/_print.scss +110 -0
- data/_sass/_progress.scss +30 -0
- data/_sass/_reboot.scss +504 -0
- data/_sass/_root.scss +19 -0
- data/_sass/_tables.scss +180 -0
- data/_sass/_tooltip.scss +107 -0
- data/_sass/_transitions.scss +36 -0
- data/_sass/_type.scss +125 -0
- data/_sass/_utilities.scss +14 -0
- data/_sass/_variables.scss +828 -0
- data/_sass/bootstrap-grid.scss +35 -0
- data/_sass/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap.scss +42 -0
- data/_sass/mixins/_alert.scss +13 -0
- data/_sass/mixins/_background-variant.scss +20 -0
- data/_sass/mixins/_badge.scss +12 -0
- data/_sass/mixins/_border-radius.scss +35 -0
- data/_sass/mixins/_box-shadow.scss +5 -0
- data/_sass/mixins/_breakpoints.scss +119 -0
- data/_sass/mixins/_buttons.scss +94 -0
- data/_sass/mixins/_caret.scss +35 -0
- data/_sass/mixins/_clearfix.scss +7 -0
- data/_sass/mixins/_float.scss +11 -0
- data/_sass/mixins/_forms.scss +108 -0
- data/_sass/mixins/_gradients.scss +45 -0
- data/_sass/mixins/_grid-framework.scss +69 -0
- data/_sass/mixins/_grid.scss +52 -0
- data/_sass/mixins/_hover.scss +61 -0
- data/_sass/mixins/_image.scss +36 -0
- data/_sass/mixins/_list-group.scss +24 -0
- data/_sass/mixins/_lists.scss +7 -0
- data/_sass/mixins/_nav-divider.scss +10 -0
- data/_sass/mixins/_navbar-align.scss +10 -0
- data/_sass/mixins/_pagination.scss +22 -0
- data/_sass/mixins/_reset-text.scss +17 -0
- data/_sass/mixins/_resize.scss +6 -0
- data/_sass/mixins/_screen-reader.scss +35 -0
- data/_sass/mixins/_size.scss +6 -0
- data/_sass/mixins/_table-row.scss +30 -0
- data/_sass/mixins/_text-emphasis.scss +14 -0
- data/_sass/mixins/_text-hide.scss +8 -0
- data/_sass/mixins/_text-truncate.scss +8 -0
- data/_sass/mixins/_transition.scss +9 -0
- data/_sass/mixins/_visibility.scss +7 -0
- data/_sass/syntax_highlight.scss +70 -0
- data/_sass/utilities/_align.scss +8 -0
- data/_sass/utilities/_background.scss +19 -0
- data/_sass/utilities/_borders.scss +54 -0
- data/_sass/utilities/_clearfix.scss +3 -0
- data/_sass/utilities/_display.scss +56 -0
- data/_sass/utilities/_embed.scss +52 -0
- data/_sass/utilities/_flex.scss +46 -0
- data/_sass/utilities/_float.scss +9 -0
- data/_sass/utilities/_position.scss +36 -0
- data/_sass/utilities/_screenreaders.scss +11 -0
- data/_sass/utilities/_sizing.scss +12 -0
- data/_sass/utilities/_spacing.scss +51 -0
- data/_sass/utilities/_text.scss +52 -0
- data/_sass/utilities/_visibility.scss +11 -0
- data/assets/css/main.scss +15 -0
- metadata +195 -0
data/_sass/_nav.scss
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
// Base class
|
2
|
+
//
|
3
|
+
// Kickstart any navigation component with a set of style resets. Works with
|
4
|
+
// `<nav>`s or `<ul>`s.
|
5
|
+
|
6
|
+
.nav {
|
7
|
+
display: flex;
|
8
|
+
flex-wrap: wrap;
|
9
|
+
padding-left: 0;
|
10
|
+
margin-bottom: 0;
|
11
|
+
list-style: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
.nav-link {
|
15
|
+
display: block;
|
16
|
+
padding: $nav-link-padding-y $nav-link-padding-x;
|
17
|
+
|
18
|
+
@include hover-focus {
|
19
|
+
text-decoration: none;
|
20
|
+
}
|
21
|
+
|
22
|
+
// Disabled state lightens text
|
23
|
+
&.disabled {
|
24
|
+
color: $nav-link-disabled-color;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
//
|
29
|
+
// Tabs
|
30
|
+
//
|
31
|
+
|
32
|
+
.nav-tabs {
|
33
|
+
border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
|
34
|
+
|
35
|
+
.nav-item {
|
36
|
+
margin-bottom: -$nav-tabs-border-width;
|
37
|
+
}
|
38
|
+
|
39
|
+
.nav-link {
|
40
|
+
border: $nav-tabs-border-width solid transparent;
|
41
|
+
@include border-top-radius($nav-tabs-border-radius);
|
42
|
+
|
43
|
+
@include hover-focus {
|
44
|
+
border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
|
45
|
+
}
|
46
|
+
|
47
|
+
&.disabled {
|
48
|
+
color: $nav-link-disabled-color;
|
49
|
+
background-color: transparent;
|
50
|
+
border-color: transparent;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.nav-link.active,
|
55
|
+
.nav-item.show .nav-link {
|
56
|
+
color: $nav-tabs-link-active-color;
|
57
|
+
background-color: $nav-tabs-link-active-bg;
|
58
|
+
border-color: $nav-tabs-link-active-border-color $nav-tabs-link-active-border-color $nav-tabs-link-active-bg;
|
59
|
+
}
|
60
|
+
|
61
|
+
.dropdown-menu {
|
62
|
+
// Make dropdown border overlap tab border
|
63
|
+
margin-top: -$nav-tabs-border-width;
|
64
|
+
// Remove the top rounded corners here since there is a hard edge above the menu
|
65
|
+
@include border-top-radius(0);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
//
|
71
|
+
// Pills
|
72
|
+
//
|
73
|
+
|
74
|
+
.nav-pills {
|
75
|
+
.nav-link {
|
76
|
+
@include border-radius($nav-pills-border-radius);
|
77
|
+
}
|
78
|
+
|
79
|
+
.nav-link.active,
|
80
|
+
.show > .nav-link {
|
81
|
+
color: $nav-pills-link-active-color;
|
82
|
+
background-color: $nav-pills-link-active-bg;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
|
87
|
+
//
|
88
|
+
// Justified variants
|
89
|
+
//
|
90
|
+
|
91
|
+
.nav-fill {
|
92
|
+
.nav-item {
|
93
|
+
flex: 1 1 auto;
|
94
|
+
text-align: center;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.nav-justified {
|
99
|
+
.nav-item {
|
100
|
+
flex-basis: 0;
|
101
|
+
flex-grow: 1;
|
102
|
+
text-align: center;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
// Tabbable tabs
|
108
|
+
//
|
109
|
+
// Hide tabbable panes to start, show them when `.active`
|
110
|
+
|
111
|
+
.tab-content {
|
112
|
+
> .tab-pane {
|
113
|
+
display: none;
|
114
|
+
}
|
115
|
+
> .active {
|
116
|
+
display: block;
|
117
|
+
}
|
118
|
+
}
|
data/_sass/_navbar.scss
ADDED
@@ -0,0 +1,306 @@
|
|
1
|
+
// Contents
|
2
|
+
//
|
3
|
+
// Navbar
|
4
|
+
// Navbar brand
|
5
|
+
// Navbar nav
|
6
|
+
// Navbar text
|
7
|
+
// Navbar divider
|
8
|
+
// Responsive navbar
|
9
|
+
// Navbar position
|
10
|
+
// Navbar themes
|
11
|
+
|
12
|
+
|
13
|
+
// Navbar
|
14
|
+
//
|
15
|
+
// Provide a static navbar from which we expand to create full-width, fixed, and
|
16
|
+
// other navbar variations.
|
17
|
+
|
18
|
+
.navbar {
|
19
|
+
position: relative;
|
20
|
+
display: flex;
|
21
|
+
flex-wrap: wrap; // allow us to do the line break for collapsing content
|
22
|
+
align-items: center;
|
23
|
+
justify-content: space-between; // space out brand from logo
|
24
|
+
padding: $navbar-padding-y $navbar-padding-x;
|
25
|
+
|
26
|
+
// Because flex properties aren't inherited, we need to redeclare these first
|
27
|
+
// few properities so that content nested within behave properly.
|
28
|
+
> .container,
|
29
|
+
> .container-fluid {
|
30
|
+
display: flex;
|
31
|
+
flex-wrap: wrap;
|
32
|
+
align-items: center;
|
33
|
+
justify-content: space-between;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
// Navbar brand
|
39
|
+
//
|
40
|
+
// Used for brand, project, or site names.
|
41
|
+
|
42
|
+
.navbar-brand {
|
43
|
+
display: inline-block;
|
44
|
+
padding-top: $navbar-brand-padding-y;
|
45
|
+
padding-bottom: $navbar-brand-padding-y;
|
46
|
+
margin-right: $navbar-padding-x;
|
47
|
+
font-size: $navbar-brand-font-size;
|
48
|
+
line-height: inherit;
|
49
|
+
white-space: nowrap;
|
50
|
+
|
51
|
+
@include hover-focus {
|
52
|
+
text-decoration: none;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
// Navbar nav
|
58
|
+
//
|
59
|
+
// Custom navbar navigation (doesn't require `.nav`, but does make use of `.nav-link`).
|
60
|
+
|
61
|
+
.navbar-nav {
|
62
|
+
display: flex;
|
63
|
+
flex-direction: column; // cannot use `inherit` to get the `.navbar`s value
|
64
|
+
padding-left: 0;
|
65
|
+
margin-bottom: 0;
|
66
|
+
list-style: none;
|
67
|
+
|
68
|
+
.nav-link {
|
69
|
+
padding-right: 0;
|
70
|
+
padding-left: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
.dropdown-menu {
|
74
|
+
position: static;
|
75
|
+
float: none;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
// Navbar text
|
81
|
+
//
|
82
|
+
//
|
83
|
+
|
84
|
+
.navbar-text {
|
85
|
+
display: inline-block;
|
86
|
+
padding-top: $nav-link-padding-y;
|
87
|
+
padding-bottom: $nav-link-padding-y;
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
// Responsive navbar
|
92
|
+
//
|
93
|
+
// Custom styles for responsive collapsing and toggling of navbar contents.
|
94
|
+
// Powered by the collapse Bootstrap JavaScript plugin.
|
95
|
+
|
96
|
+
// When collapsed, prevent the toggleable navbar contents from appearing in
|
97
|
+
// the default flexbox row orienation. Requires the use of `flex-wrap: wrap`
|
98
|
+
// on the `.navbar` parent.
|
99
|
+
.navbar-collapse {
|
100
|
+
flex-basis: 100%;
|
101
|
+
flex-grow: 1;
|
102
|
+
// For always expanded or extra full navbars, ensure content aligns itself
|
103
|
+
// properly vertically. Can be easily overridden with flex utilities.
|
104
|
+
align-items: center;
|
105
|
+
}
|
106
|
+
|
107
|
+
// Button for toggling the navbar when in its collapsed state
|
108
|
+
.navbar-toggler {
|
109
|
+
padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
|
110
|
+
font-size: $navbar-toggler-font-size;
|
111
|
+
line-height: 1;
|
112
|
+
background: transparent; // remove default button style
|
113
|
+
border: $border-width solid transparent; // remove default button style
|
114
|
+
@include border-radius($navbar-toggler-border-radius);
|
115
|
+
|
116
|
+
@include hover-focus {
|
117
|
+
text-decoration: none;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
// Keep as a separate element so folks can easily override it with another icon
|
122
|
+
// or image file as needed.
|
123
|
+
.navbar-toggler-icon {
|
124
|
+
display: inline-block;
|
125
|
+
width: 1.5em;
|
126
|
+
height: 1.5em;
|
127
|
+
vertical-align: middle;
|
128
|
+
content: "";
|
129
|
+
background: no-repeat center center;
|
130
|
+
background-size: 100% 100%;
|
131
|
+
}
|
132
|
+
|
133
|
+
// Generate series of `.navbar-expand-*` responsive classes for configuring
|
134
|
+
// where your navbar collapses.
|
135
|
+
.navbar-expand {
|
136
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
137
|
+
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
138
|
+
$infix: breakpoint-infix($next, $grid-breakpoints);
|
139
|
+
|
140
|
+
&#{$infix} {
|
141
|
+
@include media-breakpoint-down($breakpoint) {
|
142
|
+
> .container,
|
143
|
+
> .container-fluid {
|
144
|
+
padding-right: 0;
|
145
|
+
padding-left: 0;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
@include media-breakpoint-up($next) {
|
150
|
+
flex-flow: row nowrap;
|
151
|
+
justify-content: flex-start;
|
152
|
+
|
153
|
+
.navbar-nav {
|
154
|
+
flex-direction: row;
|
155
|
+
|
156
|
+
.dropdown-menu {
|
157
|
+
position: absolute;
|
158
|
+
}
|
159
|
+
|
160
|
+
.dropdown-menu-right {
|
161
|
+
right: 0;
|
162
|
+
left: auto; // Reset the default from `.dropdown-menu`
|
163
|
+
}
|
164
|
+
|
165
|
+
.nav-link {
|
166
|
+
padding-right: .5rem;
|
167
|
+
padding-left: .5rem;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
// For nesting containers, have to redeclare for alignment purposes
|
172
|
+
> .container,
|
173
|
+
> .container-fluid {
|
174
|
+
flex-wrap: nowrap;
|
175
|
+
}
|
176
|
+
|
177
|
+
.navbar-collapse {
|
178
|
+
display: flex !important; // stylelint-disable-line declaration-no-important
|
179
|
+
|
180
|
+
// Changes flex-bases to auto because of an IE10 bug
|
181
|
+
flex-basis: auto;
|
182
|
+
}
|
183
|
+
|
184
|
+
.navbar-toggler {
|
185
|
+
display: none;
|
186
|
+
}
|
187
|
+
|
188
|
+
.dropup {
|
189
|
+
.dropdown-menu {
|
190
|
+
top: auto;
|
191
|
+
bottom: 100%;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
// Navbar themes
|
201
|
+
//
|
202
|
+
// Styles for switching between navbars with light or dark background.
|
203
|
+
|
204
|
+
// Dark links against a light background
|
205
|
+
.navbar-light {
|
206
|
+
.navbar-brand {
|
207
|
+
color: $navbar-light-active-color;
|
208
|
+
|
209
|
+
@include hover-focus {
|
210
|
+
color: $navbar-light-active-color;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
.navbar-nav {
|
215
|
+
.nav-link {
|
216
|
+
color: $navbar-light-color;
|
217
|
+
|
218
|
+
@include hover-focus {
|
219
|
+
color: $navbar-light-hover-color;
|
220
|
+
}
|
221
|
+
|
222
|
+
&.disabled {
|
223
|
+
color: $navbar-light-disabled-color;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
.show > .nav-link,
|
228
|
+
.active > .nav-link,
|
229
|
+
.nav-link.show,
|
230
|
+
.nav-link.active {
|
231
|
+
color: $navbar-light-active-color;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
|
235
|
+
.navbar-toggler {
|
236
|
+
color: $navbar-light-color;
|
237
|
+
border-color: $navbar-light-toggler-border-color;
|
238
|
+
}
|
239
|
+
|
240
|
+
.navbar-toggler-icon {
|
241
|
+
background-image: $navbar-light-toggler-icon-bg;
|
242
|
+
}
|
243
|
+
|
244
|
+
.navbar-text {
|
245
|
+
color: $navbar-light-color;
|
246
|
+
a {
|
247
|
+
color: $navbar-light-active-color;
|
248
|
+
|
249
|
+
@include hover-focus {
|
250
|
+
color: $navbar-light-active-color;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
// White links against a dark background
|
257
|
+
.navbar-dark {
|
258
|
+
.navbar-brand {
|
259
|
+
color: $navbar-dark-active-color;
|
260
|
+
|
261
|
+
@include hover-focus {
|
262
|
+
color: $navbar-dark-active-color;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
.navbar-nav {
|
267
|
+
.nav-link {
|
268
|
+
color: $navbar-dark-color;
|
269
|
+
|
270
|
+
@include hover-focus {
|
271
|
+
color: $navbar-dark-hover-color;
|
272
|
+
}
|
273
|
+
|
274
|
+
&.disabled {
|
275
|
+
color: $navbar-dark-disabled-color;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
.show > .nav-link,
|
280
|
+
.active > .nav-link,
|
281
|
+
.nav-link.show,
|
282
|
+
.nav-link.active {
|
283
|
+
color: $navbar-dark-active-color;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
.navbar-toggler {
|
288
|
+
color: $navbar-dark-color;
|
289
|
+
border-color: $navbar-dark-toggler-border-color;
|
290
|
+
}
|
291
|
+
|
292
|
+
.navbar-toggler-icon {
|
293
|
+
background-image: $navbar-dark-toggler-icon-bg;
|
294
|
+
}
|
295
|
+
|
296
|
+
.navbar-text {
|
297
|
+
color: $navbar-dark-color;
|
298
|
+
a {
|
299
|
+
color: $navbar-dark-active-color;
|
300
|
+
|
301
|
+
@include hover-focus {
|
302
|
+
color: $navbar-dark-active-color;
|
303
|
+
}
|
304
|
+
}
|
305
|
+
}
|
306
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
.pagination {
|
2
|
+
display: flex;
|
3
|
+
@include list-unstyled();
|
4
|
+
@include border-radius();
|
5
|
+
}
|
6
|
+
|
7
|
+
.page-item {
|
8
|
+
&:first-child {
|
9
|
+
.page-link {
|
10
|
+
margin-left: 0;
|
11
|
+
@include border-left-radius($border-radius);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
&:last-child {
|
15
|
+
.page-link {
|
16
|
+
@include border-right-radius($border-radius);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
&.active .page-link {
|
21
|
+
z-index: 2;
|
22
|
+
color: $pagination-active-color;
|
23
|
+
background-color: $pagination-active-bg;
|
24
|
+
border-color: $pagination-active-border-color;
|
25
|
+
}
|
26
|
+
|
27
|
+
&.disabled .page-link {
|
28
|
+
color: $pagination-disabled-color;
|
29
|
+
pointer-events: none;
|
30
|
+
background-color: $pagination-disabled-bg;
|
31
|
+
border-color: $pagination-disabled-border-color;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.page-link {
|
36
|
+
position: relative;
|
37
|
+
display: block;
|
38
|
+
padding: $pagination-padding-y $pagination-padding-x;
|
39
|
+
margin-left: -$pagination-border-width;
|
40
|
+
line-height: $pagination-line-height;
|
41
|
+
color: $pagination-color;
|
42
|
+
background-color: $pagination-bg;
|
43
|
+
border: $pagination-border-width solid $pagination-border-color;
|
44
|
+
|
45
|
+
@include hover-focus {
|
46
|
+
color: $pagination-hover-color;
|
47
|
+
text-decoration: none;
|
48
|
+
background-color: $pagination-hover-bg;
|
49
|
+
border-color: $pagination-hover-border-color;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
//
|
55
|
+
// Sizing
|
56
|
+
//
|
57
|
+
|
58
|
+
.pagination-lg {
|
59
|
+
@include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $line-height-lg, $border-radius-lg);
|
60
|
+
}
|
61
|
+
|
62
|
+
.pagination-sm {
|
63
|
+
@include pagination-size($pagination-padding-y-sm, $pagination-padding-x-sm, $font-size-sm, $line-height-sm, $border-radius-sm);
|
64
|
+
}
|