chulapa-jekyll 1.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 +7 -0
- data/CHANGELOG.md +27 -0
- data/LICENSE +21 -0
- data/README.md +126 -0
- data/_includes/components/author.html +40 -0
- data/_includes/components/breadcrumbdatesocial.html +63 -0
- data/_includes/components/categories.html +15 -0
- data/_includes/components/disqus.html +24 -0
- data/_includes/components/headers.html +124 -0
- data/_includes/components/indexcards.html +48 -0
- data/_includes/components/navbeforeafter.html +22 -0
- data/_includes/components/tags.html +15 -0
- data/_includes/components/toc.html +112 -0
- data/_includes/custom/custom_bottomscripts.html +5 -0
- data/_includes/custom/custom_head.html +8 -0
- data/_includes/custom/custom_head_before_css.html +5 -0
- data/_includes/custom/giscus.html +1 -0
- data/_includes/footer.html +129 -0
- data/_includes/head.html +309 -0
- data/_includes/navbar.html +205 -0
- data/_includes/search/algolia.html +3 -0
- data/_includes/search/google.html +11 -0
- data/_includes/search/lunr.html +7 -0
- data/_includes/snippets/bootstrapdemo.html +1390 -0
- data/_includes/snippets/carousel.html +61 -0
- data/_includes/snippets/datetranslate.html +48 -0
- data/_includes/snippets/masonry.html +23 -0
- data/_includes/snippets/video.html +26 -0
- data/_includes/snippets/youtube.html +6 -0
- data/_layouts/archive.html +82 -0
- data/_layouts/cloudcategory.html +89 -0
- data/_layouts/cloudtag.html +86 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +39 -0
- data/_layouts/indexcategory.html +36 -0
- data/_layouts/landingpage.html +51 -0
- data/_layouts/minimal.html +21 -0
- data/_layouts/search.html +59 -0
- data/_sass/bootstrap/_alert.scss +51 -0
- data/_sass/bootstrap/_badge.scss +54 -0
- data/_sass/bootstrap/_breadcrumb.scss +44 -0
- data/_sass/bootstrap/_button-group.scss +163 -0
- data/_sass/bootstrap/_buttons.scss +142 -0
- data/_sass/bootstrap/_card.scss +282 -0
- data/_sass/bootstrap/_carousel.scss +197 -0
- data/_sass/bootstrap/_close.scss +40 -0
- data/_sass/bootstrap/_code.scss +48 -0
- data/_sass/bootstrap/_custom-forms.scss +522 -0
- data/_sass/bootstrap/_dropdown.scss +192 -0
- data/_sass/bootstrap/_forms.scss +347 -0
- data/_sass/bootstrap/_functions.scss +141 -0
- data/_sass/bootstrap/_grid.scss +77 -0
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_input-group.scss +192 -0
- data/_sass/bootstrap/_jumbotron.scss +17 -0
- data/_sass/bootstrap/_list-group.scss +154 -0
- data/_sass/bootstrap/_media.scss +8 -0
- data/_sass/bootstrap/_mixins.scss +47 -0
- data/_sass/bootstrap/_modal.scss +241 -0
- data/_sass/bootstrap/_nav.scss +121 -0
- data/_sass/bootstrap/_navbar.scss +324 -0
- data/_sass/bootstrap/_pagination.scss +74 -0
- data/_sass/bootstrap/_popover.scss +170 -0
- data/_sass/bootstrap/_print.scss +141 -0
- data/_sass/bootstrap/_progress.scss +47 -0
- data/_sass/bootstrap/_reboot.scss +480 -0
- data/_sass/bootstrap/_root.scss +20 -0
- data/_sass/bootstrap/_spinners.scss +56 -0
- data/_sass/bootstrap/_tables.scss +185 -0
- data/_sass/bootstrap/_toasts.scss +44 -0
- data/_sass/bootstrap/_tooltip.scss +115 -0
- data/_sass/bootstrap/_transitions.scss +20 -0
- data/_sass/bootstrap/_type.scss +125 -0
- data/_sass/bootstrap/_utilities.scss +18 -0
- data/_sass/bootstrap/_variables.scss +1147 -0
- data/_sass/bootstrap/bootstrap-grid.scss +29 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap/bootstrap.scss +44 -0
- data/_sass/bootstrap/mixins/_alert.scss +13 -0
- data/_sass/bootstrap/mixins/_background-variant.scss +23 -0
- data/_sass/bootstrap/mixins/_badge.scss +17 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +76 -0
- data/_sass/bootstrap/mixins/_box-shadow.scss +20 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
- data/_sass/bootstrap/mixins/_buttons.scss +110 -0
- data/_sass/bootstrap/mixins/_caret.scss +62 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +7 -0
- data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/mixins/_float.scss +14 -0
- data/_sass/bootstrap/mixins/_forms.scss +177 -0
- data/_sass/bootstrap/mixins/_gradients.scss +45 -0
- data/_sass/bootstrap/mixins/_grid-framework.scss +81 -0
- data/_sass/bootstrap/mixins/_grid.scss +69 -0
- data/_sass/bootstrap/mixins/_hover.scss +37 -0
- data/_sass/bootstrap/mixins/_image.scss +36 -0
- data/_sass/bootstrap/mixins/_list-group.scss +21 -0
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_nav-divider.scss +11 -0
- data/_sass/bootstrap/mixins/_pagination.scss +22 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_screen-reader.scss +34 -0
- data/_sass/bootstrap/mixins/_size.scss +7 -0
- data/_sass/bootstrap/mixins/_table-row.scss +39 -0
- data/_sass/bootstrap/mixins/_text-emphasis.scss +17 -0
- data/_sass/bootstrap/mixins/_text-hide.scss +11 -0
- data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/mixins/_transition.scss +26 -0
- data/_sass/bootstrap/mixins/_visibility.scss +8 -0
- data/_sass/bootstrap/utilities/_align.scss +8 -0
- data/_sass/bootstrap/utilities/_background.scss +19 -0
- data/_sass/bootstrap/utilities/_borders.scss +75 -0
- data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
- data/_sass/bootstrap/utilities/_display.scss +26 -0
- data/_sass/bootstrap/utilities/_embed.scss +39 -0
- data/_sass/bootstrap/utilities/_flex.scss +51 -0
- data/_sass/bootstrap/utilities/_float.scss +11 -0
- data/_sass/bootstrap/utilities/_interactions.scss +5 -0
- data/_sass/bootstrap/utilities/_overflow.scss +5 -0
- data/_sass/bootstrap/utilities/_position.scss +32 -0
- data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
- data/_sass/bootstrap/utilities/_shadows.scss +6 -0
- data/_sass/bootstrap/utilities/_sizing.scss +20 -0
- data/_sass/bootstrap/utilities/_spacing.scss +73 -0
- data/_sass/bootstrap/utilities/_stretched-link.scss +19 -0
- data/_sass/bootstrap/utilities/_text.scss +71 -0
- data/_sass/bootstrap/utilities/_visibility.scss +13 -0
- data/_sass/bootstrap/vendor/_rfs.scss +204 -0
- data/_sass/bootstrapv5-migration.scss +79 -0
- data/_sass/chulapa-classes.scss +844 -0
- data/_sass/chulapa-master.scss +11 -0
- data/_sass/chulapa-misc.scss +105 -0
- data/_sass/chulapa-mixins.scss +77 -0
- data/_sass/chulapa-vars.scss +48 -0
- data/_sass/highlight/README.md +23 -0
- data/_sass/highlight/UNLICENSE.txt +24 -0
- data/_sass/highlight/autumn.scss +58 -0
- data/_sass/highlight/borland.scss +46 -0
- data/_sass/highlight/bw.scss +34 -0
- data/_sass/highlight/colorful.scss +61 -0
- data/_sass/highlight/cran.scss +169 -0
- data/_sass/highlight/default.scss +61 -0
- data/_sass/highlight/dracula.scss +169 -0
- data/_sass/highlight/emacs.scss +61 -0
- data/_sass/highlight/friendly.scss +61 -0
- data/_sass/highlight/fruity.scss +70 -0
- data/_sass/highlight/github.scss +61 -0
- data/_sass/highlight/gruvbox.light.scss +84 -0
- data/_sass/highlight/manni.scss +61 -0
- data/_sass/highlight/monokai.scss +65 -0
- data/_sass/highlight/murphy.scss +61 -0
- data/_sass/highlight/native.scss +70 -0
- data/_sass/highlight/pastie.scss +60 -0
- data/_sass/highlight/perldoc.scss +58 -0
- data/_sass/highlight/skeletor.scss +140 -0
- data/_sass/highlight/tango.scss +69 -0
- data/_sass/highlight/thankful_eyes.scss +173 -0
- data/_sass/highlight/trac.scss +59 -0
- data/_sass/highlight/vim.scss +70 -0
- data/_sass/highlight/vs.scss +33 -0
- data/_sass/highlight/zenburn.scss +136 -0
- data/_sass/reset-algolia.scss +24 -0
- data/_sass/skins/academia.scss +26 -0
- data/_sass/skins/auto.scss +26 -0
- data/_sass/skins/chulapa.scss +52 -0
- data/_sass/skins/deeply.scss +89 -0
- data/_sass/skins/graymor.scss +26 -0
- data/_sass/skins/hootstrap.scss +17 -0
- data/_sass/skins/journal.scss +142 -0
- data/_sass/skins/lux.scss +377 -0
- data/_sass/skins/lymcha.scss +14 -0
- data/_sass/skins/minty.scss +165 -0
- data/_sass/skins/none.scss +2 -0
- data/_sass/skins/pear.scss +21 -0
- data/_sass/skins/preptor.scss +19 -0
- data/_sass/skins/sketchy.scss +745 -0
- data/_sass/skins/sunset.scss +14 -0
- data/_sass/skins/twitter-dim.scss +30 -0
- data/_sass/skins/twitter-lights-out.scss +31 -0
- data/_sass/skins/twitter.scss +30 -0
- data/_sass/skins/universal.scss +24 -0
- data/_sass/skins/wandoo.scss +15 -0
- data/assets/atom.xml +72 -0
- data/assets/css/custom.scss +4 -0
- data/assets/css/highlighter.scss +5 -0
- data/assets/css/main.scss +35 -0
- data/assets/fonts/Chulapa/Chulapa-Bold.otf +0 -0
- data/assets/fonts/Chulapa/Chulapa-Bold_v2.1.otf +0 -0
- data/assets/fonts/Chulapa/Chulapa-Bold_v2.2.otf +0 -0
- data/assets/fonts/Chulapa/Chulapa-Bold_v2.otf +0 -0
- data/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf +0 -0
- data/assets/fonts/Chulapa/Chulapa-Light.otf +0 -0
- data/assets/fonts/Chulapa/Chulapa-Regular.otf +0 -0
- data/assets/fonts/Chulapa/LICENCIA DE USO.txt +2 -0
- data/assets/fonts/Ferpal/Ferpal-Regular.otf +0 -0
- data/assets/js/algolia/algolia-search.js +148 -0
- data/assets/js/ch_ytdefer/ch_ytdefer.js +81 -0
- data/assets/js/ch_ytdefer/ch_ytdefer.min.js +1 -0
- data/assets/js/clipboardrouge.js +95 -0
- data/assets/js/google/google-search.js +24 -0
- data/assets/js/lunr/lunr-search.js +122 -0
- data/assets/js/lunr/lunr-store.js +35 -0
- data/assets/rss.xml +65 -0
- metadata +356 -0
@@ -0,0 +1,282 @@
|
|
1
|
+
//
|
2
|
+
// Base styles
|
3
|
+
//
|
4
|
+
|
5
|
+
.card {
|
6
|
+
position: relative;
|
7
|
+
display: flex;
|
8
|
+
flex-direction: column;
|
9
|
+
min-width: 0; // See https://github.com/twbs/bootstrap/pull/22740#issuecomment-305868106
|
10
|
+
height: $card-height;
|
11
|
+
word-wrap: break-word;
|
12
|
+
background-color: $card-bg;
|
13
|
+
background-clip: border-box;
|
14
|
+
border: $card-border-width solid $card-border-color;
|
15
|
+
@include border-radius($card-border-radius);
|
16
|
+
|
17
|
+
> hr {
|
18
|
+
margin-right: 0;
|
19
|
+
margin-left: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
> .list-group {
|
23
|
+
border-top: inherit;
|
24
|
+
border-bottom: inherit;
|
25
|
+
|
26
|
+
&:first-child {
|
27
|
+
border-top-width: 0;
|
28
|
+
@include border-top-radius($card-inner-border-radius);
|
29
|
+
}
|
30
|
+
|
31
|
+
&:last-child {
|
32
|
+
border-bottom-width: 0;
|
33
|
+
@include border-bottom-radius($card-inner-border-radius);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.card-body {
|
39
|
+
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
|
40
|
+
// as much space as possible, ensuring footers are aligned to the bottom.
|
41
|
+
flex: 1 1 auto;
|
42
|
+
// Workaround for the image size bug in IE
|
43
|
+
// See: https://github.com/twbs/bootstrap/pull/28855
|
44
|
+
min-height: 1px;
|
45
|
+
padding: $card-spacer-x;
|
46
|
+
color: $card-color;
|
47
|
+
}
|
48
|
+
|
49
|
+
.card-title {
|
50
|
+
margin-bottom: $card-spacer-y;
|
51
|
+
}
|
52
|
+
|
53
|
+
.card-subtitle {
|
54
|
+
margin-top: -$card-spacer-y / 2;
|
55
|
+
margin-bottom: 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
.card-text:last-child {
|
59
|
+
margin-bottom: 0;
|
60
|
+
}
|
61
|
+
|
62
|
+
.card-link {
|
63
|
+
@include hover() {
|
64
|
+
text-decoration: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
+ .card-link {
|
68
|
+
margin-left: $card-spacer-x;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
//
|
73
|
+
// Optional textual caps
|
74
|
+
//
|
75
|
+
|
76
|
+
.card-header {
|
77
|
+
padding: $card-spacer-y $card-spacer-x;
|
78
|
+
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
79
|
+
color: $card-cap-color;
|
80
|
+
background-color: $card-cap-bg;
|
81
|
+
border-bottom: $card-border-width solid $card-border-color;
|
82
|
+
|
83
|
+
&:first-child {
|
84
|
+
@include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
|
85
|
+
}
|
86
|
+
|
87
|
+
+ .list-group {
|
88
|
+
.list-group-item:first-child {
|
89
|
+
border-top: 0;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
.card-footer {
|
95
|
+
padding: $card-spacer-y $card-spacer-x;
|
96
|
+
color: $card-cap-color;
|
97
|
+
background-color: $card-cap-bg;
|
98
|
+
border-top: $card-border-width solid $card-border-color;
|
99
|
+
|
100
|
+
&:last-child {
|
101
|
+
@include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
//
|
107
|
+
// Header navs
|
108
|
+
//
|
109
|
+
|
110
|
+
.card-header-tabs {
|
111
|
+
margin-right: -$card-spacer-x / 2;
|
112
|
+
margin-bottom: -$card-spacer-y;
|
113
|
+
margin-left: -$card-spacer-x / 2;
|
114
|
+
border-bottom: 0;
|
115
|
+
}
|
116
|
+
|
117
|
+
.card-header-pills {
|
118
|
+
margin-right: -$card-spacer-x / 2;
|
119
|
+
margin-left: -$card-spacer-x / 2;
|
120
|
+
}
|
121
|
+
|
122
|
+
// Card image
|
123
|
+
.card-img-overlay {
|
124
|
+
position: absolute;
|
125
|
+
top: 0;
|
126
|
+
right: 0;
|
127
|
+
bottom: 0;
|
128
|
+
left: 0;
|
129
|
+
padding: $card-img-overlay-padding;
|
130
|
+
}
|
131
|
+
|
132
|
+
.card-img,
|
133
|
+
.card-img-top,
|
134
|
+
.card-img-bottom {
|
135
|
+
flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
|
136
|
+
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
137
|
+
}
|
138
|
+
|
139
|
+
.card-img,
|
140
|
+
.card-img-top {
|
141
|
+
@include border-top-radius($card-inner-border-radius);
|
142
|
+
}
|
143
|
+
|
144
|
+
.card-img,
|
145
|
+
.card-img-bottom {
|
146
|
+
@include border-bottom-radius($card-inner-border-radius);
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
// Card deck
|
151
|
+
|
152
|
+
.card-deck {
|
153
|
+
.card {
|
154
|
+
margin-bottom: $card-deck-margin;
|
155
|
+
}
|
156
|
+
|
157
|
+
@include media-breakpoint-up(sm) {
|
158
|
+
display: flex;
|
159
|
+
flex-flow: row wrap;
|
160
|
+
margin-right: -$card-deck-margin;
|
161
|
+
margin-left: -$card-deck-margin;
|
162
|
+
|
163
|
+
.card {
|
164
|
+
// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
165
|
+
flex: 1 0 0%;
|
166
|
+
margin-right: $card-deck-margin;
|
167
|
+
margin-bottom: 0; // Override the default
|
168
|
+
margin-left: $card-deck-margin;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
//
|
175
|
+
// Card groups
|
176
|
+
//
|
177
|
+
|
178
|
+
.card-group {
|
179
|
+
// The child selector allows nested `.card` within `.card-group`
|
180
|
+
// to display properly.
|
181
|
+
> .card {
|
182
|
+
margin-bottom: $card-group-margin;
|
183
|
+
}
|
184
|
+
|
185
|
+
@include media-breakpoint-up(sm) {
|
186
|
+
display: flex;
|
187
|
+
flex-flow: row wrap;
|
188
|
+
// The child selector allows nested `.card` within `.card-group`
|
189
|
+
// to display properly.
|
190
|
+
> .card {
|
191
|
+
// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
192
|
+
flex: 1 0 0%;
|
193
|
+
margin-bottom: 0;
|
194
|
+
|
195
|
+
+ .card {
|
196
|
+
margin-left: 0;
|
197
|
+
border-left: 0;
|
198
|
+
}
|
199
|
+
|
200
|
+
// Handle rounded corners
|
201
|
+
@if $enable-rounded {
|
202
|
+
&:not(:last-child) {
|
203
|
+
@include border-right-radius(0);
|
204
|
+
|
205
|
+
.card-img-top,
|
206
|
+
.card-header {
|
207
|
+
// stylelint-disable-next-line property-blacklist
|
208
|
+
border-top-right-radius: 0;
|
209
|
+
}
|
210
|
+
.card-img-bottom,
|
211
|
+
.card-footer {
|
212
|
+
// stylelint-disable-next-line property-blacklist
|
213
|
+
border-bottom-right-radius: 0;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
&:not(:first-child) {
|
218
|
+
@include border-left-radius(0);
|
219
|
+
|
220
|
+
.card-img-top,
|
221
|
+
.card-header {
|
222
|
+
// stylelint-disable-next-line property-blacklist
|
223
|
+
border-top-left-radius: 0;
|
224
|
+
}
|
225
|
+
.card-img-bottom,
|
226
|
+
.card-footer {
|
227
|
+
// stylelint-disable-next-line property-blacklist
|
228
|
+
border-bottom-left-radius: 0;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
|
237
|
+
//
|
238
|
+
// Columns
|
239
|
+
//
|
240
|
+
|
241
|
+
.card-columns {
|
242
|
+
.card {
|
243
|
+
margin-bottom: $card-columns-margin;
|
244
|
+
}
|
245
|
+
|
246
|
+
@include media-breakpoint-up(sm) {
|
247
|
+
column-count: $card-columns-count;
|
248
|
+
column-gap: $card-columns-gap;
|
249
|
+
orphans: 1;
|
250
|
+
widows: 1;
|
251
|
+
|
252
|
+
.card {
|
253
|
+
display: inline-block; // Don't let them vertically span multiple columns
|
254
|
+
width: 100%; // Don't let their width change
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
|
260
|
+
//
|
261
|
+
// Accordion
|
262
|
+
//
|
263
|
+
|
264
|
+
.accordion {
|
265
|
+
> .card {
|
266
|
+
overflow: hidden;
|
267
|
+
|
268
|
+
&:not(:last-of-type) {
|
269
|
+
border-bottom: 0;
|
270
|
+
@include border-bottom-radius(0);
|
271
|
+
}
|
272
|
+
|
273
|
+
&:not(:first-of-type) {
|
274
|
+
@include border-top-radius(0);
|
275
|
+
}
|
276
|
+
|
277
|
+
> .card-header {
|
278
|
+
@include border-radius(0);
|
279
|
+
margin-bottom: -$card-border-width;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
@@ -0,0 +1,197 @@
|
|
1
|
+
// Notes on the classes:
|
2
|
+
//
|
3
|
+
// 1. .carousel.pointer-event should ideally be pan-y (to allow for users to scroll vertically)
|
4
|
+
// even when their scroll action started on a carousel, but for compatibility (with Firefox)
|
5
|
+
// we're preventing all actions instead
|
6
|
+
// 2. The .carousel-item-left and .carousel-item-right is used to indicate where
|
7
|
+
// the active slide is heading.
|
8
|
+
// 3. .active.carousel-item is the current slide.
|
9
|
+
// 4. .active.carousel-item-left and .active.carousel-item-right is the current
|
10
|
+
// slide in its in-transition state. Only one of these occurs at a time.
|
11
|
+
// 5. .carousel-item-next.carousel-item-left and .carousel-item-prev.carousel-item-right
|
12
|
+
// is the upcoming slide in transition.
|
13
|
+
|
14
|
+
.carousel {
|
15
|
+
position: relative;
|
16
|
+
}
|
17
|
+
|
18
|
+
.carousel.pointer-event {
|
19
|
+
touch-action: pan-y;
|
20
|
+
}
|
21
|
+
|
22
|
+
.carousel-inner {
|
23
|
+
position: relative;
|
24
|
+
width: 100%;
|
25
|
+
overflow: hidden;
|
26
|
+
@include clearfix();
|
27
|
+
}
|
28
|
+
|
29
|
+
.carousel-item {
|
30
|
+
position: relative;
|
31
|
+
display: none;
|
32
|
+
float: left;
|
33
|
+
width: 100%;
|
34
|
+
margin-right: -100%;
|
35
|
+
backface-visibility: hidden;
|
36
|
+
@include transition($carousel-transition);
|
37
|
+
}
|
38
|
+
|
39
|
+
.carousel-item.active,
|
40
|
+
.carousel-item-next,
|
41
|
+
.carousel-item-prev {
|
42
|
+
display: block;
|
43
|
+
}
|
44
|
+
|
45
|
+
.carousel-item-next:not(.carousel-item-left),
|
46
|
+
.active.carousel-item-right {
|
47
|
+
transform: translateX(100%);
|
48
|
+
}
|
49
|
+
|
50
|
+
.carousel-item-prev:not(.carousel-item-right),
|
51
|
+
.active.carousel-item-left {
|
52
|
+
transform: translateX(-100%);
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
//
|
57
|
+
// Alternate transitions
|
58
|
+
//
|
59
|
+
|
60
|
+
.carousel-fade {
|
61
|
+
.carousel-item {
|
62
|
+
opacity: 0;
|
63
|
+
transition-property: opacity;
|
64
|
+
transform: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
.carousel-item.active,
|
68
|
+
.carousel-item-next.carousel-item-left,
|
69
|
+
.carousel-item-prev.carousel-item-right {
|
70
|
+
z-index: 1;
|
71
|
+
opacity: 1;
|
72
|
+
}
|
73
|
+
|
74
|
+
.active.carousel-item-left,
|
75
|
+
.active.carousel-item-right {
|
76
|
+
z-index: 0;
|
77
|
+
opacity: 0;
|
78
|
+
@include transition(opacity 0s $carousel-transition-duration);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
//
|
84
|
+
// Left/right controls for nav
|
85
|
+
//
|
86
|
+
|
87
|
+
.carousel-control-prev,
|
88
|
+
.carousel-control-next {
|
89
|
+
position: absolute;
|
90
|
+
top: 0;
|
91
|
+
bottom: 0;
|
92
|
+
z-index: 1;
|
93
|
+
// Use flex for alignment (1-3)
|
94
|
+
display: flex; // 1. allow flex styles
|
95
|
+
align-items: center; // 2. vertically center contents
|
96
|
+
justify-content: center; // 3. horizontally center contents
|
97
|
+
width: $carousel-control-width;
|
98
|
+
color: $carousel-control-color;
|
99
|
+
text-align: center;
|
100
|
+
opacity: $carousel-control-opacity;
|
101
|
+
@include transition($carousel-control-transition);
|
102
|
+
|
103
|
+
// Hover/focus state
|
104
|
+
@include hover-focus() {
|
105
|
+
color: $carousel-control-color;
|
106
|
+
text-decoration: none;
|
107
|
+
outline: 0;
|
108
|
+
opacity: $carousel-control-hover-opacity;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
.carousel-control-prev {
|
112
|
+
left: 0;
|
113
|
+
@if $enable-gradients {
|
114
|
+
background-image: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
|
115
|
+
}
|
116
|
+
}
|
117
|
+
.carousel-control-next {
|
118
|
+
right: 0;
|
119
|
+
@if $enable-gradients {
|
120
|
+
background-image: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
// Icons for within
|
125
|
+
.carousel-control-prev-icon,
|
126
|
+
.carousel-control-next-icon {
|
127
|
+
display: inline-block;
|
128
|
+
width: $carousel-control-icon-width;
|
129
|
+
height: $carousel-control-icon-width;
|
130
|
+
background: no-repeat 50% / 100% 100%;
|
131
|
+
}
|
132
|
+
.carousel-control-prev-icon {
|
133
|
+
background-image: escape-svg($carousel-control-prev-icon-bg);
|
134
|
+
}
|
135
|
+
.carousel-control-next-icon {
|
136
|
+
background-image: escape-svg($carousel-control-next-icon-bg);
|
137
|
+
}
|
138
|
+
|
139
|
+
|
140
|
+
// Optional indicator pips
|
141
|
+
//
|
142
|
+
// Add an ordered list with the following class and add a list item for each
|
143
|
+
// slide your carousel holds.
|
144
|
+
|
145
|
+
.carousel-indicators {
|
146
|
+
position: absolute;
|
147
|
+
right: 0;
|
148
|
+
bottom: 0;
|
149
|
+
left: 0;
|
150
|
+
z-index: 15;
|
151
|
+
display: flex;
|
152
|
+
justify-content: center;
|
153
|
+
padding-left: 0; // override <ol> default
|
154
|
+
// Use the .carousel-control's width as margin so we don't overlay those
|
155
|
+
margin-right: $carousel-control-width;
|
156
|
+
margin-left: $carousel-control-width;
|
157
|
+
list-style: none;
|
158
|
+
|
159
|
+
li {
|
160
|
+
box-sizing: content-box;
|
161
|
+
flex: 0 1 auto;
|
162
|
+
width: $carousel-indicator-width;
|
163
|
+
height: $carousel-indicator-height;
|
164
|
+
margin-right: $carousel-indicator-spacer;
|
165
|
+
margin-left: $carousel-indicator-spacer;
|
166
|
+
text-indent: -999px;
|
167
|
+
cursor: pointer;
|
168
|
+
background-color: $carousel-indicator-active-bg;
|
169
|
+
background-clip: padding-box;
|
170
|
+
// Use transparent borders to increase the hit area by 10px on top and bottom.
|
171
|
+
border-top: $carousel-indicator-hit-area-height solid transparent;
|
172
|
+
border-bottom: $carousel-indicator-hit-area-height solid transparent;
|
173
|
+
opacity: .5;
|
174
|
+
@include transition($carousel-indicator-transition);
|
175
|
+
}
|
176
|
+
|
177
|
+
.active {
|
178
|
+
opacity: 1;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
|
183
|
+
// Optional captions
|
184
|
+
//
|
185
|
+
//
|
186
|
+
|
187
|
+
.carousel-caption {
|
188
|
+
position: absolute;
|
189
|
+
right: (100% - $carousel-caption-width) / 2;
|
190
|
+
bottom: 20px;
|
191
|
+
left: (100% - $carousel-caption-width) / 2;
|
192
|
+
z-index: 10;
|
193
|
+
padding-top: 20px;
|
194
|
+
padding-bottom: 20px;
|
195
|
+
color: $carousel-caption-color;
|
196
|
+
text-align: center;
|
197
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
.close {
|
2
|
+
float: right;
|
3
|
+
@include font-size($close-font-size);
|
4
|
+
font-weight: $close-font-weight;
|
5
|
+
line-height: 1;
|
6
|
+
color: $close-color;
|
7
|
+
text-shadow: $close-text-shadow;
|
8
|
+
opacity: .5;
|
9
|
+
|
10
|
+
// Override <a>'s hover style
|
11
|
+
@include hover() {
|
12
|
+
color: $close-color;
|
13
|
+
text-decoration: none;
|
14
|
+
}
|
15
|
+
|
16
|
+
&:not(:disabled):not(.disabled) {
|
17
|
+
@include hover-focus() {
|
18
|
+
opacity: .75;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// Additional properties for button version
|
24
|
+
// iOS requires the button element instead of an anchor tag.
|
25
|
+
// If you want the anchor version, it requires `href="#"`.
|
26
|
+
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
27
|
+
|
28
|
+
// stylelint-disable-next-line selector-no-qualifying-type
|
29
|
+
button.close {
|
30
|
+
padding: 0;
|
31
|
+
background-color: transparent;
|
32
|
+
border: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Future-proof disabling of clicks on `<a>` elements
|
36
|
+
|
37
|
+
// stylelint-disable-next-line selector-no-qualifying-type
|
38
|
+
a.close.disabled {
|
39
|
+
pointer-events: none;
|
40
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
// Inline code
|
2
|
+
code {
|
3
|
+
@include font-size($code-font-size);
|
4
|
+
color: $code-color;
|
5
|
+
word-wrap: break-word;
|
6
|
+
|
7
|
+
// Streamline the style when inside anchors to avoid broken underline and more
|
8
|
+
a > & {
|
9
|
+
color: inherit;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
// User input typically entered via keyboard
|
14
|
+
kbd {
|
15
|
+
padding: $kbd-padding-y $kbd-padding-x;
|
16
|
+
@include font-size($kbd-font-size);
|
17
|
+
color: $kbd-color;
|
18
|
+
background-color: $kbd-bg;
|
19
|
+
@include border-radius($border-radius-sm);
|
20
|
+
@include box-shadow($kbd-box-shadow);
|
21
|
+
|
22
|
+
kbd {
|
23
|
+
padding: 0;
|
24
|
+
@include font-size(100%);
|
25
|
+
font-weight: $nested-kbd-font-weight;
|
26
|
+
@include box-shadow(none);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
// Blocks of code
|
31
|
+
pre {
|
32
|
+
display: block;
|
33
|
+
@include font-size($code-font-size);
|
34
|
+
color: $pre-color;
|
35
|
+
|
36
|
+
// Account for some code outputs that place code tags in pre tags
|
37
|
+
code {
|
38
|
+
@include font-size(inherit);
|
39
|
+
color: inherit;
|
40
|
+
word-break: normal;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// Enable scrollable blocks of code
|
45
|
+
.pre-scrollable {
|
46
|
+
max-height: $pre-scrollable-max-height;
|
47
|
+
overflow-y: scroll;
|
48
|
+
}
|