nex-bootstrap 4.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitattributes +14 -0
- data/.gitignore +19 -0
- data/.travis.yml +31 -0
- data/CHANGELOG.md +25 -0
- data/Gemfile +11 -0
- data/LICENSE +21 -0
- data/README.md +109 -0
- data/Rakefile +63 -0
- data/assets/javascripts/bootstrap/alert.js +183 -0
- data/assets/javascripts/bootstrap/button.js +225 -0
- data/assets/javascripts/bootstrap/carousel.js +640 -0
- data/assets/javascripts/bootstrap/collapse.js +394 -0
- data/assets/javascripts/bootstrap/dropdown.js +557 -0
- data/assets/javascripts/bootstrap/modal.js +660 -0
- data/assets/javascripts/bootstrap/popover.js +243 -0
- data/assets/javascripts/bootstrap/scrollspy.js +337 -0
- data/assets/javascripts/bootstrap/tab.js +259 -0
- data/assets/javascripts/bootstrap/toast.js +265 -0
- data/assets/javascripts/bootstrap/tooltip.js +886 -0
- data/assets/javascripts/bootstrap/util.js +189 -0
- data/assets/javascripts/bootstrap-sprockets.js +12 -0
- data/assets/javascripts/bootstrap.js +4356 -0
- data/assets/javascripts/bootstrap.min.js +6 -0
- data/assets/stylesheets/_bootstrap-grid.scss +30 -0
- data/assets/stylesheets/_bootstrap-reboot.scss +12 -0
- data/assets/stylesheets/_bootstrap.scss +44 -0
- data/assets/stylesheets/bootstrap/_alert.scss +52 -0
- data/assets/stylesheets/bootstrap/_badge.scss +54 -0
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +42 -0
- data/assets/stylesheets/bootstrap/_button-group.scss +163 -0
- data/assets/stylesheets/bootstrap/_buttons.scss +142 -0
- data/assets/stylesheets/bootstrap/_card.scss +286 -0
- data/assets/stylesheets/bootstrap/_carousel.scss +200 -0
- data/assets/stylesheets/bootstrap/_close.scss +40 -0
- data/assets/stylesheets/bootstrap/_code.scss +48 -0
- data/assets/stylesheets/bootstrap/_custom-forms.scss +526 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +192 -0
- data/assets/stylesheets/bootstrap/_forms.scss +347 -0
- data/assets/stylesheets/bootstrap/_functions.scss +190 -0
- data/assets/stylesheets/bootstrap/_grid.scss +73 -0
- data/assets/stylesheets/bootstrap/_images.scss +42 -0
- data/assets/stylesheets/bootstrap/_input-group.scss +211 -0
- data/assets/stylesheets/bootstrap/_jumbotron.scss +17 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +154 -0
- data/assets/stylesheets/bootstrap/_media.scss +8 -0
- data/assets/stylesheets/bootstrap/_mixins.scss +47 -0
- data/assets/stylesheets/bootstrap/_modal.scss +240 -0
- data/assets/stylesheets/bootstrap/_nav.scss +125 -0
- data/assets/stylesheets/bootstrap/_navbar.scss +332 -0
- data/assets/stylesheets/bootstrap/_pagination.scss +74 -0
- data/assets/stylesheets/bootstrap/_popover.scss +170 -0
- data/assets/stylesheets/bootstrap/_print.scss +132 -0
- data/assets/stylesheets/bootstrap/_progress.scss +47 -0
- data/assets/stylesheets/bootstrap/_reboot.scss +484 -0
- data/assets/stylesheets/bootstrap/_root.scss +19 -0
- data/assets/stylesheets/bootstrap/_spinners.scss +65 -0
- data/assets/stylesheets/bootstrap/_tables.scss +185 -0
- data/assets/stylesheets/bootstrap/_toasts.scss +46 -0
- data/assets/stylesheets/bootstrap/_tooltip.scss +115 -0
- data/assets/stylesheets/bootstrap/_transitions.scss +26 -0
- data/assets/stylesheets/bootstrap/_type.scss +125 -0
- data/assets/stylesheets/bootstrap/_utilities.scss +18 -0
- data/assets/stylesheets/bootstrap/_variables.scss +1149 -0
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +13 -0
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +23 -0
- data/assets/stylesheets/bootstrap/mixins/_badge.scss +17 -0
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +76 -0
- data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +20 -0
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +123 -0
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +110 -0
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +62 -0
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_deprecate.scss +10 -0
- data/assets/stylesheets/bootstrap/mixins/_float.scss +14 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +195 -0
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +45 -0
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +80 -0
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +69 -0
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +37 -0
- data/assets/stylesheets/bootstrap/mixins/_image.scss +36 -0
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +21 -0
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +11 -0
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +22 -0
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +17 -0
- data/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +34 -0
- data/assets/stylesheets/bootstrap/mixins/_size.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +39 -0
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +17 -0
- data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +11 -0
- data/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +8 -0
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +26 -0
- data/assets/stylesheets/bootstrap/mixins/_visibility.scss +8 -0
- data/assets/stylesheets/bootstrap/utilities/_align.scss +8 -0
- data/assets/stylesheets/bootstrap/utilities/_background.scss +19 -0
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +75 -0
- data/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
- data/assets/stylesheets/bootstrap/utilities/_display.scss +26 -0
- data/assets/stylesheets/bootstrap/utilities/_embed.scss +39 -0
- data/assets/stylesheets/bootstrap/utilities/_flex.scss +51 -0
- data/assets/stylesheets/bootstrap/utilities/_float.scss +11 -0
- data/assets/stylesheets/bootstrap/utilities/_interactions.scss +5 -0
- data/assets/stylesheets/bootstrap/utilities/_overflow.scss +5 -0
- data/assets/stylesheets/bootstrap/utilities/_position.scss +32 -0
- data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
- data/assets/stylesheets/bootstrap/utilities/_shadows.scss +6 -0
- data/assets/stylesheets/bootstrap/utilities/_sizing.scss +20 -0
- data/assets/stylesheets/bootstrap/utilities/_spacing.scss +73 -0
- data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +19 -0
- data/assets/stylesheets/bootstrap/utilities/_text.scss +72 -0
- data/assets/stylesheets/bootstrap/utilities/_visibility.scss +13 -0
- data/assets/stylesheets/bootstrap/vendor/_rfs.scss +228 -0
- data/bootstrap.gemspec +38 -0
- data/lib/bootstrap/engine.rb +15 -0
- data/lib/bootstrap/version.rb +6 -0
- data/lib/bootstrap.rb +75 -0
- data/tasks/updater/js.rb +68 -0
- data/tasks/updater/logger.rb +57 -0
- data/tasks/updater/network.rb +103 -0
- data/tasks/updater/scss.rb +26 -0
- data/tasks/updater.rb +67 -0
- data/test/dummy_rails/README.rdoc +3 -0
- data/test/dummy_rails/Rakefile +6 -0
- data/test/dummy_rails/app/assets/config/manifest.js +3 -0
- data/test/dummy_rails/app/assets/images/.keep +0 -0
- data/test/dummy_rails/app/assets/javascripts/application.js +7 -0
- data/test/dummy_rails/app/assets/stylesheets/.browserslistrc +1 -0
- data/test/dummy_rails/app/assets/stylesheets/application.sass +4 -0
- data/test/dummy_rails/app/controllers/application_controller.rb +5 -0
- data/test/dummy_rails/app/controllers/pages_controller.rb +4 -0
- data/test/dummy_rails/app/helpers/application_helper.rb +2 -0
- data/test/dummy_rails/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_rails/app/views/pages/root.html.slim +58 -0
- data/test/dummy_rails/config/application.rb +35 -0
- data/test/dummy_rails/config/boot.rb +5 -0
- data/test/dummy_rails/config/environment.rb +5 -0
- data/test/dummy_rails/config/environments/development.rb +23 -0
- data/test/dummy_rails/config/environments/production.rb +82 -0
- data/test/dummy_rails/config/environments/test.rb +38 -0
- data/test/dummy_rails/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy_rails/config/initializers/inflections.rb +16 -0
- data/test/dummy_rails/config/initializers/mime_types.rb +5 -0
- data/test/dummy_rails/config/initializers/secret_token.rb +18 -0
- data/test/dummy_rails/config/initializers/session_store.rb +3 -0
- data/test/dummy_rails/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy_rails/config/locales/en.yml +3 -0
- data/test/dummy_rails/config/locales/es.yml +3 -0
- data/test/dummy_rails/config/routes.rb +3 -0
- data/test/dummy_rails/config.ru +4 -0
- data/test/dummy_rails/log/.keep +0 -0
- data/test/gemfiles/rails_4_2.gemfile +7 -0
- data/test/gemfiles/rails_5_0.gemfile +8 -0
- data/test/gemfiles/rails_5_1.gemfile +8 -0
- data/test/gemfiles/rails_6_0.gemfile +7 -0
- data/test/rails_test.rb +24 -0
- data/test/support/dummy_rails_integration.rb +31 -0
- data/test/support/reporting.rb +27 -0
- data/test/test_helper.rb +41 -0
- data/test/test_helper_rails.rb +6 -0
- metadata +445 -0
@@ -0,0 +1,142 @@
|
|
1
|
+
// stylelint-disable selector-no-qualifying-type
|
2
|
+
|
3
|
+
//
|
4
|
+
// Base styles
|
5
|
+
//
|
6
|
+
|
7
|
+
.btn {
|
8
|
+
display: inline-block;
|
9
|
+
font-family: $btn-font-family;
|
10
|
+
font-weight: $btn-font-weight;
|
11
|
+
color: $body-color;
|
12
|
+
text-align: center;
|
13
|
+
text-decoration: if($link-decoration == none, null, none);
|
14
|
+
white-space: $btn-white-space;
|
15
|
+
vertical-align: middle;
|
16
|
+
user-select: none;
|
17
|
+
background-color: transparent;
|
18
|
+
border: $btn-border-width solid transparent;
|
19
|
+
@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
|
20
|
+
@include transition($btn-transition);
|
21
|
+
|
22
|
+
@include hover() {
|
23
|
+
color: $body-color;
|
24
|
+
text-decoration: none;
|
25
|
+
}
|
26
|
+
|
27
|
+
&:focus,
|
28
|
+
&.focus {
|
29
|
+
outline: 0;
|
30
|
+
box-shadow: $btn-focus-box-shadow;
|
31
|
+
}
|
32
|
+
|
33
|
+
// Disabled comes first so active can properly restyle
|
34
|
+
&.disabled,
|
35
|
+
&:disabled {
|
36
|
+
opacity: $btn-disabled-opacity;
|
37
|
+
@include box-shadow(none);
|
38
|
+
}
|
39
|
+
|
40
|
+
&:not(:disabled):not(.disabled) {
|
41
|
+
cursor: if($enable-pointer-cursor-for-buttons, pointer, null);
|
42
|
+
|
43
|
+
&:active,
|
44
|
+
&.active {
|
45
|
+
@include box-shadow($btn-active-box-shadow);
|
46
|
+
|
47
|
+
&:focus {
|
48
|
+
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// Future-proof disabling of clicks on `<a>` elements
|
55
|
+
a.btn.disabled,
|
56
|
+
fieldset:disabled a.btn {
|
57
|
+
pointer-events: none;
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
//
|
62
|
+
// Alternate buttons
|
63
|
+
//
|
64
|
+
|
65
|
+
@each $color, $value in $theme-colors {
|
66
|
+
.btn-#{$color} {
|
67
|
+
@include button-variant($value, $value);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
@each $color, $value in $theme-colors {
|
72
|
+
.btn-outline-#{$color} {
|
73
|
+
@include button-outline-variant($value);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
//
|
79
|
+
// Link buttons
|
80
|
+
//
|
81
|
+
|
82
|
+
// Make a button look and behave like a link
|
83
|
+
.btn-link {
|
84
|
+
font-weight: $font-weight-normal;
|
85
|
+
color: $link-color;
|
86
|
+
text-decoration: $link-decoration;
|
87
|
+
|
88
|
+
@include hover() {
|
89
|
+
color: $link-hover-color;
|
90
|
+
text-decoration: $link-hover-decoration;
|
91
|
+
}
|
92
|
+
|
93
|
+
&:focus,
|
94
|
+
&.focus {
|
95
|
+
text-decoration: $link-hover-decoration;
|
96
|
+
}
|
97
|
+
|
98
|
+
&:disabled,
|
99
|
+
&.disabled {
|
100
|
+
color: $btn-link-disabled-color;
|
101
|
+
pointer-events: none;
|
102
|
+
}
|
103
|
+
|
104
|
+
// No need for an active state here
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
//
|
109
|
+
// Button Sizes
|
110
|
+
//
|
111
|
+
|
112
|
+
.btn-lg {
|
113
|
+
@include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
|
114
|
+
}
|
115
|
+
|
116
|
+
.btn-sm {
|
117
|
+
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
|
118
|
+
}
|
119
|
+
|
120
|
+
|
121
|
+
//
|
122
|
+
// Block button
|
123
|
+
//
|
124
|
+
|
125
|
+
.btn-block {
|
126
|
+
display: block;
|
127
|
+
width: 100%;
|
128
|
+
|
129
|
+
// Vertically space out multiple block buttons
|
130
|
+
+ .btn-block {
|
131
|
+
margin-top: $btn-block-spacing-y;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
// Specificity overrides
|
136
|
+
input[type="submit"],
|
137
|
+
input[type="reset"],
|
138
|
+
input[type="button"] {
|
139
|
+
&.btn-block {
|
140
|
+
width: 100%;
|
141
|
+
}
|
142
|
+
}
|
@@ -0,0 +1,286 @@
|
|
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
|
+
// Due to specificity of the above selector (`.card > .list-group`), we must
|
38
|
+
// use a child selector here to prevent double borders.
|
39
|
+
> .card-header + .list-group,
|
40
|
+
> .list-group + .card-footer {
|
41
|
+
border-top: 0;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.card-body {
|
46
|
+
// Enable `flex-grow: 1` for decks and groups so that card blocks take up
|
47
|
+
// as much space as possible, ensuring footers are aligned to the bottom.
|
48
|
+
flex: 1 1 auto;
|
49
|
+
// Workaround for the image size bug in IE
|
50
|
+
// See: https://github.com/twbs/bootstrap/pull/28855
|
51
|
+
min-height: 1px;
|
52
|
+
padding: $card-spacer-x;
|
53
|
+
color: $card-color;
|
54
|
+
}
|
55
|
+
|
56
|
+
.card-title {
|
57
|
+
margin-bottom: $card-spacer-y;
|
58
|
+
}
|
59
|
+
|
60
|
+
.card-subtitle {
|
61
|
+
margin-top: -$card-spacer-y * .5;
|
62
|
+
margin-bottom: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
.card-text:last-child {
|
66
|
+
margin-bottom: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
.card-link {
|
70
|
+
@include hover() {
|
71
|
+
text-decoration: none;
|
72
|
+
}
|
73
|
+
|
74
|
+
+ .card-link {
|
75
|
+
margin-left: $card-spacer-x;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
//
|
80
|
+
// Optional textual caps
|
81
|
+
//
|
82
|
+
|
83
|
+
.card-header {
|
84
|
+
padding: $card-spacer-y $card-spacer-x;
|
85
|
+
margin-bottom: 0; // Removes the default margin-bottom of <hN>
|
86
|
+
color: $card-cap-color;
|
87
|
+
background-color: $card-cap-bg;
|
88
|
+
border-bottom: $card-border-width solid $card-border-color;
|
89
|
+
|
90
|
+
&:first-child {
|
91
|
+
@include border-radius($card-inner-border-radius $card-inner-border-radius 0 0);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
.card-footer {
|
96
|
+
padding: $card-spacer-y $card-spacer-x;
|
97
|
+
color: $card-cap-color;
|
98
|
+
background-color: $card-cap-bg;
|
99
|
+
border-top: $card-border-width solid $card-border-color;
|
100
|
+
|
101
|
+
&:last-child {
|
102
|
+
@include border-radius(0 0 $card-inner-border-radius $card-inner-border-radius);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
//
|
108
|
+
// Header navs
|
109
|
+
//
|
110
|
+
|
111
|
+
.card-header-tabs {
|
112
|
+
margin-right: -$card-spacer-x * .5;
|
113
|
+
margin-bottom: -$card-spacer-y;
|
114
|
+
margin-left: -$card-spacer-x * .5;
|
115
|
+
border-bottom: 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
.card-header-pills {
|
119
|
+
margin-right: -$card-spacer-x * .5;
|
120
|
+
margin-left: -$card-spacer-x * .5;
|
121
|
+
}
|
122
|
+
|
123
|
+
// Card image
|
124
|
+
.card-img-overlay {
|
125
|
+
position: absolute;
|
126
|
+
top: 0;
|
127
|
+
right: 0;
|
128
|
+
bottom: 0;
|
129
|
+
left: 0;
|
130
|
+
padding: $card-img-overlay-padding;
|
131
|
+
@include border-radius($card-inner-border-radius);
|
132
|
+
}
|
133
|
+
|
134
|
+
.card-img,
|
135
|
+
.card-img-top,
|
136
|
+
.card-img-bottom {
|
137
|
+
flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
|
138
|
+
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
|
139
|
+
}
|
140
|
+
|
141
|
+
.card-img,
|
142
|
+
.card-img-top {
|
143
|
+
@include border-top-radius($card-inner-border-radius);
|
144
|
+
}
|
145
|
+
|
146
|
+
.card-img,
|
147
|
+
.card-img-bottom {
|
148
|
+
@include border-bottom-radius($card-inner-border-radius);
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
// Card deck
|
153
|
+
|
154
|
+
.card-deck {
|
155
|
+
.card {
|
156
|
+
margin-bottom: $card-deck-margin;
|
157
|
+
}
|
158
|
+
|
159
|
+
@include media-breakpoint-up(sm) {
|
160
|
+
display: flex;
|
161
|
+
flex-flow: row wrap;
|
162
|
+
margin-right: -$card-deck-margin;
|
163
|
+
margin-left: -$card-deck-margin;
|
164
|
+
|
165
|
+
.card {
|
166
|
+
// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
167
|
+
flex: 1 0 0%;
|
168
|
+
margin-right: $card-deck-margin;
|
169
|
+
margin-bottom: 0; // Override the default
|
170
|
+
margin-left: $card-deck-margin;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
//
|
177
|
+
// Card groups
|
178
|
+
//
|
179
|
+
|
180
|
+
.card-group {
|
181
|
+
// The child selector allows nested `.card` within `.card-group`
|
182
|
+
// to display properly.
|
183
|
+
> .card {
|
184
|
+
margin-bottom: $card-group-margin;
|
185
|
+
}
|
186
|
+
|
187
|
+
@include media-breakpoint-up(sm) {
|
188
|
+
display: flex;
|
189
|
+
flex-flow: row wrap;
|
190
|
+
// The child selector allows nested `.card` within `.card-group`
|
191
|
+
// to display properly.
|
192
|
+
> .card {
|
193
|
+
// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
194
|
+
flex: 1 0 0%;
|
195
|
+
margin-bottom: 0;
|
196
|
+
|
197
|
+
+ .card {
|
198
|
+
margin-left: 0;
|
199
|
+
border-left: 0;
|
200
|
+
}
|
201
|
+
|
202
|
+
// Handle rounded corners
|
203
|
+
@if $enable-rounded {
|
204
|
+
&:not(:last-child) {
|
205
|
+
@include border-right-radius(0);
|
206
|
+
|
207
|
+
.card-img-top,
|
208
|
+
.card-header {
|
209
|
+
// stylelint-disable-next-line property-disallowed-list
|
210
|
+
border-top-right-radius: 0;
|
211
|
+
}
|
212
|
+
.card-img-bottom,
|
213
|
+
.card-footer {
|
214
|
+
// stylelint-disable-next-line property-disallowed-list
|
215
|
+
border-bottom-right-radius: 0;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
&:not(:first-child) {
|
220
|
+
@include border-left-radius(0);
|
221
|
+
|
222
|
+
.card-img-top,
|
223
|
+
.card-header {
|
224
|
+
// stylelint-disable-next-line property-disallowed-list
|
225
|
+
border-top-left-radius: 0;
|
226
|
+
}
|
227
|
+
.card-img-bottom,
|
228
|
+
.card-footer {
|
229
|
+
// stylelint-disable-next-line property-disallowed-list
|
230
|
+
border-bottom-left-radius: 0;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
237
|
+
|
238
|
+
|
239
|
+
//
|
240
|
+
// Columns
|
241
|
+
//
|
242
|
+
|
243
|
+
.card-columns {
|
244
|
+
.card {
|
245
|
+
margin-bottom: $card-columns-margin;
|
246
|
+
}
|
247
|
+
|
248
|
+
@include media-breakpoint-up(sm) {
|
249
|
+
column-count: $card-columns-count;
|
250
|
+
column-gap: $card-columns-gap;
|
251
|
+
orphans: 1;
|
252
|
+
widows: 1;
|
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
|
+
}
|
260
|
+
|
261
|
+
|
262
|
+
//
|
263
|
+
// Accordion
|
264
|
+
//
|
265
|
+
|
266
|
+
.accordion {
|
267
|
+
overflow-anchor: none;
|
268
|
+
|
269
|
+
> .card {
|
270
|
+
overflow: hidden;
|
271
|
+
|
272
|
+
&:not(:last-of-type) {
|
273
|
+
border-bottom: 0;
|
274
|
+
@include border-bottom-radius(0);
|
275
|
+
}
|
276
|
+
|
277
|
+
&:not(:first-of-type) {
|
278
|
+
@include border-top-radius(0);
|
279
|
+
}
|
280
|
+
|
281
|
+
> .card-header {
|
282
|
+
@include border-radius(0);
|
283
|
+
margin-bottom: -$card-border-width;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
@@ -0,0 +1,200 @@
|
|
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
|
+
padding: 0;
|
99
|
+
color: $carousel-control-color;
|
100
|
+
text-align: center;
|
101
|
+
background: none;
|
102
|
+
border: 0;
|
103
|
+
opacity: $carousel-control-opacity;
|
104
|
+
@include transition($carousel-control-transition);
|
105
|
+
|
106
|
+
// Hover/focus state
|
107
|
+
@include hover-focus() {
|
108
|
+
color: $carousel-control-color;
|
109
|
+
text-decoration: none;
|
110
|
+
outline: 0;
|
111
|
+
opacity: $carousel-control-hover-opacity;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
.carousel-control-prev {
|
115
|
+
left: 0;
|
116
|
+
@if $enable-gradients {
|
117
|
+
background-image: linear-gradient(90deg, rgba($black, .25), rgba($black, .001));
|
118
|
+
}
|
119
|
+
}
|
120
|
+
.carousel-control-next {
|
121
|
+
right: 0;
|
122
|
+
@if $enable-gradients {
|
123
|
+
background-image: linear-gradient(270deg, rgba($black, .25), rgba($black, .001));
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
// Icons for within
|
128
|
+
.carousel-control-prev-icon,
|
129
|
+
.carousel-control-next-icon {
|
130
|
+
display: inline-block;
|
131
|
+
width: $carousel-control-icon-width;
|
132
|
+
height: $carousel-control-icon-width;
|
133
|
+
background: 50% / 100% 100% no-repeat;
|
134
|
+
}
|
135
|
+
.carousel-control-prev-icon {
|
136
|
+
background-image: escape-svg($carousel-control-prev-icon-bg);
|
137
|
+
}
|
138
|
+
.carousel-control-next-icon {
|
139
|
+
background-image: escape-svg($carousel-control-next-icon-bg);
|
140
|
+
}
|
141
|
+
|
142
|
+
|
143
|
+
// Optional indicator pips
|
144
|
+
//
|
145
|
+
// Add an ordered list with the following class and add a list item for each
|
146
|
+
// slide your carousel holds.
|
147
|
+
|
148
|
+
.carousel-indicators {
|
149
|
+
position: absolute;
|
150
|
+
right: 0;
|
151
|
+
bottom: 0;
|
152
|
+
left: 0;
|
153
|
+
z-index: 15;
|
154
|
+
display: flex;
|
155
|
+
justify-content: center;
|
156
|
+
padding-left: 0; // override <ol> default
|
157
|
+
// Use the .carousel-control's width as margin so we don't overlay those
|
158
|
+
margin-right: $carousel-control-width;
|
159
|
+
margin-left: $carousel-control-width;
|
160
|
+
list-style: none;
|
161
|
+
|
162
|
+
li {
|
163
|
+
box-sizing: content-box;
|
164
|
+
flex: 0 1 auto;
|
165
|
+
width: $carousel-indicator-width;
|
166
|
+
height: $carousel-indicator-height;
|
167
|
+
margin-right: $carousel-indicator-spacer;
|
168
|
+
margin-left: $carousel-indicator-spacer;
|
169
|
+
text-indent: -999px;
|
170
|
+
cursor: pointer;
|
171
|
+
background-color: $carousel-indicator-active-bg;
|
172
|
+
background-clip: padding-box;
|
173
|
+
// Use transparent borders to increase the hit area by 10px on top and bottom.
|
174
|
+
border-top: $carousel-indicator-hit-area-height solid transparent;
|
175
|
+
border-bottom: $carousel-indicator-hit-area-height solid transparent;
|
176
|
+
opacity: .5;
|
177
|
+
@include transition($carousel-indicator-transition);
|
178
|
+
}
|
179
|
+
|
180
|
+
.active {
|
181
|
+
opacity: 1;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
// Optional captions
|
187
|
+
//
|
188
|
+
//
|
189
|
+
|
190
|
+
.carousel-caption {
|
191
|
+
position: absolute;
|
192
|
+
right: (100% - $carousel-caption-width) * .5;
|
193
|
+
bottom: 20px;
|
194
|
+
left: (100% - $carousel-caption-width) * .5;
|
195
|
+
z-index: 10;
|
196
|
+
padding-top: 20px;
|
197
|
+
padding-bottom: 20px;
|
198
|
+
color: $carousel-caption-color;
|
199
|
+
text-align: center;
|
200
|
+
}
|
@@ -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
|
+
}
|