nex-bootstrap 4.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +7 -0
  2. data/.gitattributes +14 -0
  3. data/.gitignore +19 -0
  4. data/.travis.yml +31 -0
  5. data/CHANGELOG.md +25 -0
  6. data/Gemfile +11 -0
  7. data/LICENSE +21 -0
  8. data/README.md +109 -0
  9. data/Rakefile +63 -0
  10. data/assets/javascripts/bootstrap/alert.js +183 -0
  11. data/assets/javascripts/bootstrap/button.js +225 -0
  12. data/assets/javascripts/bootstrap/carousel.js +640 -0
  13. data/assets/javascripts/bootstrap/collapse.js +394 -0
  14. data/assets/javascripts/bootstrap/dropdown.js +557 -0
  15. data/assets/javascripts/bootstrap/modal.js +660 -0
  16. data/assets/javascripts/bootstrap/popover.js +243 -0
  17. data/assets/javascripts/bootstrap/scrollspy.js +337 -0
  18. data/assets/javascripts/bootstrap/tab.js +259 -0
  19. data/assets/javascripts/bootstrap/toast.js +265 -0
  20. data/assets/javascripts/bootstrap/tooltip.js +886 -0
  21. data/assets/javascripts/bootstrap/util.js +189 -0
  22. data/assets/javascripts/bootstrap-sprockets.js +12 -0
  23. data/assets/javascripts/bootstrap.js +4356 -0
  24. data/assets/javascripts/bootstrap.min.js +6 -0
  25. data/assets/stylesheets/_bootstrap-grid.scss +30 -0
  26. data/assets/stylesheets/_bootstrap-reboot.scss +12 -0
  27. data/assets/stylesheets/_bootstrap.scss +44 -0
  28. data/assets/stylesheets/bootstrap/_alert.scss +52 -0
  29. data/assets/stylesheets/bootstrap/_badge.scss +54 -0
  30. data/assets/stylesheets/bootstrap/_breadcrumb.scss +42 -0
  31. data/assets/stylesheets/bootstrap/_button-group.scss +163 -0
  32. data/assets/stylesheets/bootstrap/_buttons.scss +142 -0
  33. data/assets/stylesheets/bootstrap/_card.scss +286 -0
  34. data/assets/stylesheets/bootstrap/_carousel.scss +200 -0
  35. data/assets/stylesheets/bootstrap/_close.scss +40 -0
  36. data/assets/stylesheets/bootstrap/_code.scss +48 -0
  37. data/assets/stylesheets/bootstrap/_custom-forms.scss +526 -0
  38. data/assets/stylesheets/bootstrap/_dropdown.scss +192 -0
  39. data/assets/stylesheets/bootstrap/_forms.scss +347 -0
  40. data/assets/stylesheets/bootstrap/_functions.scss +190 -0
  41. data/assets/stylesheets/bootstrap/_grid.scss +73 -0
  42. data/assets/stylesheets/bootstrap/_images.scss +42 -0
  43. data/assets/stylesheets/bootstrap/_input-group.scss +211 -0
  44. data/assets/stylesheets/bootstrap/_jumbotron.scss +17 -0
  45. data/assets/stylesheets/bootstrap/_list-group.scss +154 -0
  46. data/assets/stylesheets/bootstrap/_media.scss +8 -0
  47. data/assets/stylesheets/bootstrap/_mixins.scss +47 -0
  48. data/assets/stylesheets/bootstrap/_modal.scss +240 -0
  49. data/assets/stylesheets/bootstrap/_nav.scss +125 -0
  50. data/assets/stylesheets/bootstrap/_navbar.scss +332 -0
  51. data/assets/stylesheets/bootstrap/_pagination.scss +74 -0
  52. data/assets/stylesheets/bootstrap/_popover.scss +170 -0
  53. data/assets/stylesheets/bootstrap/_print.scss +132 -0
  54. data/assets/stylesheets/bootstrap/_progress.scss +47 -0
  55. data/assets/stylesheets/bootstrap/_reboot.scss +484 -0
  56. data/assets/stylesheets/bootstrap/_root.scss +19 -0
  57. data/assets/stylesheets/bootstrap/_spinners.scss +65 -0
  58. data/assets/stylesheets/bootstrap/_tables.scss +185 -0
  59. data/assets/stylesheets/bootstrap/_toasts.scss +46 -0
  60. data/assets/stylesheets/bootstrap/_tooltip.scss +115 -0
  61. data/assets/stylesheets/bootstrap/_transitions.scss +26 -0
  62. data/assets/stylesheets/bootstrap/_type.scss +125 -0
  63. data/assets/stylesheets/bootstrap/_utilities.scss +18 -0
  64. data/assets/stylesheets/bootstrap/_variables.scss +1149 -0
  65. data/assets/stylesheets/bootstrap/mixins/_alert.scss +13 -0
  66. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +23 -0
  67. data/assets/stylesheets/bootstrap/mixins/_badge.scss +17 -0
  68. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +76 -0
  69. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +20 -0
  70. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +123 -0
  71. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +110 -0
  72. data/assets/stylesheets/bootstrap/mixins/_caret.scss +62 -0
  73. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +7 -0
  74. data/assets/stylesheets/bootstrap/mixins/_deprecate.scss +10 -0
  75. data/assets/stylesheets/bootstrap/mixins/_float.scss +14 -0
  76. data/assets/stylesheets/bootstrap/mixins/_forms.scss +195 -0
  77. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +45 -0
  78. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +80 -0
  79. data/assets/stylesheets/bootstrap/mixins/_grid.scss +69 -0
  80. data/assets/stylesheets/bootstrap/mixins/_hover.scss +37 -0
  81. data/assets/stylesheets/bootstrap/mixins/_image.scss +36 -0
  82. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +21 -0
  83. data/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
  84. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +11 -0
  85. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +22 -0
  86. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +17 -0
  87. data/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  88. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +34 -0
  89. data/assets/stylesheets/bootstrap/mixins/_size.scss +7 -0
  90. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +39 -0
  91. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +17 -0
  92. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +11 -0
  93. data/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +8 -0
  94. data/assets/stylesheets/bootstrap/mixins/_transition.scss +26 -0
  95. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +8 -0
  96. data/assets/stylesheets/bootstrap/utilities/_align.scss +8 -0
  97. data/assets/stylesheets/bootstrap/utilities/_background.scss +19 -0
  98. data/assets/stylesheets/bootstrap/utilities/_borders.scss +75 -0
  99. data/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
  100. data/assets/stylesheets/bootstrap/utilities/_display.scss +26 -0
  101. data/assets/stylesheets/bootstrap/utilities/_embed.scss +39 -0
  102. data/assets/stylesheets/bootstrap/utilities/_flex.scss +51 -0
  103. data/assets/stylesheets/bootstrap/utilities/_float.scss +11 -0
  104. data/assets/stylesheets/bootstrap/utilities/_interactions.scss +5 -0
  105. data/assets/stylesheets/bootstrap/utilities/_overflow.scss +5 -0
  106. data/assets/stylesheets/bootstrap/utilities/_position.scss +32 -0
  107. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
  108. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +6 -0
  109. data/assets/stylesheets/bootstrap/utilities/_sizing.scss +20 -0
  110. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +73 -0
  111. data/assets/stylesheets/bootstrap/utilities/_stretched-link.scss +19 -0
  112. data/assets/stylesheets/bootstrap/utilities/_text.scss +72 -0
  113. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +13 -0
  114. data/assets/stylesheets/bootstrap/vendor/_rfs.scss +228 -0
  115. data/bootstrap.gemspec +38 -0
  116. data/lib/bootstrap/engine.rb +15 -0
  117. data/lib/bootstrap/version.rb +6 -0
  118. data/lib/bootstrap.rb +75 -0
  119. data/tasks/updater/js.rb +68 -0
  120. data/tasks/updater/logger.rb +57 -0
  121. data/tasks/updater/network.rb +103 -0
  122. data/tasks/updater/scss.rb +26 -0
  123. data/tasks/updater.rb +67 -0
  124. data/test/dummy_rails/README.rdoc +3 -0
  125. data/test/dummy_rails/Rakefile +6 -0
  126. data/test/dummy_rails/app/assets/config/manifest.js +3 -0
  127. data/test/dummy_rails/app/assets/images/.keep +0 -0
  128. data/test/dummy_rails/app/assets/javascripts/application.js +7 -0
  129. data/test/dummy_rails/app/assets/stylesheets/.browserslistrc +1 -0
  130. data/test/dummy_rails/app/assets/stylesheets/application.sass +4 -0
  131. data/test/dummy_rails/app/controllers/application_controller.rb +5 -0
  132. data/test/dummy_rails/app/controllers/pages_controller.rb +4 -0
  133. data/test/dummy_rails/app/helpers/application_helper.rb +2 -0
  134. data/test/dummy_rails/app/views/layouts/application.html.erb +14 -0
  135. data/test/dummy_rails/app/views/pages/root.html.slim +58 -0
  136. data/test/dummy_rails/config/application.rb +35 -0
  137. data/test/dummy_rails/config/boot.rb +5 -0
  138. data/test/dummy_rails/config/environment.rb +5 -0
  139. data/test/dummy_rails/config/environments/development.rb +23 -0
  140. data/test/dummy_rails/config/environments/production.rb +82 -0
  141. data/test/dummy_rails/config/environments/test.rb +38 -0
  142. data/test/dummy_rails/config/initializers/backtrace_silencers.rb +7 -0
  143. data/test/dummy_rails/config/initializers/filter_parameter_logging.rb +4 -0
  144. data/test/dummy_rails/config/initializers/inflections.rb +16 -0
  145. data/test/dummy_rails/config/initializers/mime_types.rb +5 -0
  146. data/test/dummy_rails/config/initializers/secret_token.rb +18 -0
  147. data/test/dummy_rails/config/initializers/session_store.rb +3 -0
  148. data/test/dummy_rails/config/initializers/wrap_parameters.rb +14 -0
  149. data/test/dummy_rails/config/locales/en.yml +3 -0
  150. data/test/dummy_rails/config/locales/es.yml +3 -0
  151. data/test/dummy_rails/config/routes.rb +3 -0
  152. data/test/dummy_rails/config.ru +4 -0
  153. data/test/dummy_rails/log/.keep +0 -0
  154. data/test/gemfiles/rails_4_2.gemfile +7 -0
  155. data/test/gemfiles/rails_5_0.gemfile +8 -0
  156. data/test/gemfiles/rails_5_1.gemfile +8 -0
  157. data/test/gemfiles/rails_6_0.gemfile +7 -0
  158. data/test/rails_test.rb +24 -0
  159. data/test/support/dummy_rails_integration.rb +31 -0
  160. data/test/support/reporting.rb +27 -0
  161. data/test/test_helper.rb +41 -0
  162. data/test/test_helper_rails.rb +6 -0
  163. metadata +445 -0
@@ -0,0 +1,125 @@
1
+ // Base class
2
+ //
3
+ // Kickstart any navigation component with a set of style resets. Works with
4
+ // `<nav>`s, `<ul>`s or `<ol>`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
+ text-decoration: if($link-decoration == none, null, none);
18
+
19
+ @include hover-focus() {
20
+ text-decoration: none;
21
+ }
22
+
23
+ // Disabled state lightens text
24
+ &.disabled {
25
+ color: $nav-link-disabled-color;
26
+ pointer-events: none;
27
+ cursor: default;
28
+ }
29
+ }
30
+
31
+ //
32
+ // Tabs
33
+ //
34
+
35
+ .nav-tabs {
36
+ border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
37
+
38
+ .nav-link {
39
+ margin-bottom: -$nav-tabs-border-width;
40
+ background-color: transparent;
41
+ border: $nav-tabs-border-width solid transparent;
42
+ @include border-top-radius($nav-tabs-border-radius);
43
+
44
+ @include hover-focus() {
45
+ // Prevents active .nav-link tab overlapping focus outline of previous/next .nav-link
46
+ isolation: isolate;
47
+ border-color: $nav-tabs-link-hover-border-color;
48
+ }
49
+
50
+ &.disabled {
51
+ color: $nav-link-disabled-color;
52
+ background-color: transparent;
53
+ border-color: transparent;
54
+ }
55
+ }
56
+
57
+ .nav-link.active,
58
+ .nav-item.show .nav-link {
59
+ color: $nav-tabs-link-active-color;
60
+ background-color: $nav-tabs-link-active-bg;
61
+ border-color: $nav-tabs-link-active-border-color;
62
+ }
63
+
64
+ .dropdown-menu {
65
+ // Make dropdown border overlap tab border
66
+ margin-top: -$nav-tabs-border-width;
67
+ // Remove the top rounded corners here since there is a hard edge above the menu
68
+ @include border-top-radius(0);
69
+ }
70
+ }
71
+
72
+
73
+ //
74
+ // Pills
75
+ //
76
+
77
+ .nav-pills {
78
+ .nav-link {
79
+ background: none;
80
+ border: 0;
81
+ @include border-radius($nav-pills-border-radius);
82
+ }
83
+
84
+ .nav-link.active,
85
+ .show > .nav-link {
86
+ color: $nav-pills-link-active-color;
87
+ background-color: $nav-pills-link-active-bg;
88
+ }
89
+ }
90
+
91
+
92
+ //
93
+ // Justified variants
94
+ //
95
+
96
+ .nav-fill {
97
+ > .nav-link,
98
+ .nav-item {
99
+ flex: 1 1 auto;
100
+ text-align: center;
101
+ }
102
+ }
103
+
104
+ .nav-justified {
105
+ > .nav-link,
106
+ .nav-item {
107
+ flex-basis: 0;
108
+ flex-grow: 1;
109
+ text-align: center;
110
+ }
111
+ }
112
+
113
+
114
+ // Tabbable tabs
115
+ //
116
+ // Hide tabbable panes to start, show them when `.active`
117
+
118
+ .tab-content {
119
+ > .tab-pane {
120
+ display: none;
121
+ }
122
+ > .active {
123
+ display: block;
124
+ }
125
+ }
@@ -0,0 +1,332 @@
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 properties so that content nested within behave properly.
28
+ %container-flex-properties {
29
+ display: flex;
30
+ flex-wrap: wrap;
31
+ align-items: center;
32
+ justify-content: space-between;
33
+ }
34
+
35
+ .container,
36
+ .container-fluid {
37
+ @extend %container-flex-properties;
38
+ }
39
+
40
+ @each $breakpoint, $container-max-width in $container-max-widths {
41
+ > .container#{breakpoint-infix($breakpoint, $container-max-widths)} {
42
+ @extend %container-flex-properties;
43
+ }
44
+ }
45
+ }
46
+
47
+
48
+ // Navbar brand
49
+ //
50
+ // Used for brand, project, or site names.
51
+
52
+ .navbar-brand {
53
+ display: inline-block;
54
+ padding-top: $navbar-brand-padding-y;
55
+ padding-bottom: $navbar-brand-padding-y;
56
+ margin-right: $navbar-padding-x;
57
+ @include font-size($navbar-brand-font-size);
58
+ line-height: inherit;
59
+ white-space: nowrap;
60
+
61
+ @include hover-focus() {
62
+ text-decoration: none;
63
+ }
64
+ }
65
+
66
+
67
+ // Navbar nav
68
+ //
69
+ // Custom navbar navigation (doesn't require `.nav`, but does make use of `.nav-link`).
70
+
71
+ .navbar-nav {
72
+ display: flex;
73
+ flex-direction: column; // cannot use `inherit` to get the `.navbar`s value
74
+ padding-left: 0;
75
+ margin-bottom: 0;
76
+ list-style: none;
77
+
78
+ .nav-link {
79
+ padding-right: 0;
80
+ padding-left: 0;
81
+ }
82
+
83
+ .dropdown-menu {
84
+ position: static;
85
+ float: none;
86
+ }
87
+ }
88
+
89
+
90
+ // Navbar text
91
+ //
92
+ //
93
+
94
+ .navbar-text {
95
+ display: inline-block;
96
+ padding-top: $nav-link-padding-y;
97
+ padding-bottom: $nav-link-padding-y;
98
+ }
99
+
100
+
101
+ // Responsive navbar
102
+ //
103
+ // Custom styles for responsive collapsing and toggling of navbar contents.
104
+ // Powered by the collapse Bootstrap JavaScript plugin.
105
+
106
+ // When collapsed, prevent the toggleable navbar contents from appearing in
107
+ // the default flexbox row orientation. Requires the use of `flex-wrap: wrap`
108
+ // on the `.navbar` parent.
109
+ .navbar-collapse {
110
+ flex-basis: 100%;
111
+ flex-grow: 1;
112
+ // For always expanded or extra full navbars, ensure content aligns itself
113
+ // properly vertically. Can be easily overridden with flex utilities.
114
+ align-items: center;
115
+ }
116
+
117
+ // Button for toggling the navbar when in its collapsed state
118
+ .navbar-toggler {
119
+ padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
120
+ @include font-size($navbar-toggler-font-size);
121
+ line-height: 1;
122
+ background-color: transparent; // remove default button style
123
+ border: $border-width solid transparent; // remove default button style
124
+ @include border-radius($navbar-toggler-border-radius);
125
+
126
+ @include hover-focus() {
127
+ text-decoration: none;
128
+ }
129
+ }
130
+
131
+ // Keep as a separate element so folks can easily override it with another icon
132
+ // or image file as needed.
133
+ .navbar-toggler-icon {
134
+ display: inline-block;
135
+ width: 1.5em;
136
+ height: 1.5em;
137
+ vertical-align: middle;
138
+ content: "";
139
+ background: 50% / 100% 100% no-repeat;
140
+ }
141
+
142
+ .navbar-nav-scroll {
143
+ max-height: $navbar-nav-scroll-max-height;
144
+ overflow-y: auto;
145
+ }
146
+
147
+ // Generate series of `.navbar-expand-*` responsive classes for configuring
148
+ // where your navbar collapses.
149
+ .navbar-expand {
150
+ @each $breakpoint in map-keys($grid-breakpoints) {
151
+ $next: breakpoint-next($breakpoint, $grid-breakpoints);
152
+ $infix: breakpoint-infix($next, $grid-breakpoints);
153
+
154
+ &#{$infix} {
155
+ @include media-breakpoint-down($breakpoint) {
156
+ %container-navbar-expand-#{$breakpoint} {
157
+ padding-right: 0;
158
+ padding-left: 0;
159
+ }
160
+
161
+ > .container,
162
+ > .container-fluid {
163
+ @extend %container-navbar-expand-#{$breakpoint};
164
+ }
165
+
166
+ @each $size, $container-max-width in $container-max-widths {
167
+ > .container#{breakpoint-infix($size, $container-max-widths)} {
168
+ @extend %container-navbar-expand-#{$breakpoint};
169
+ }
170
+ }
171
+ }
172
+
173
+ @include media-breakpoint-up($next) {
174
+ flex-flow: row nowrap;
175
+ justify-content: flex-start;
176
+
177
+ .navbar-nav {
178
+ flex-direction: row;
179
+
180
+ .dropdown-menu {
181
+ position: absolute;
182
+ }
183
+
184
+ .nav-link {
185
+ padding-right: $navbar-nav-link-padding-x;
186
+ padding-left: $navbar-nav-link-padding-x;
187
+ }
188
+ }
189
+
190
+ // For nesting containers, have to redeclare for alignment purposes
191
+ %container-nesting-#{$breakpoint} {
192
+ flex-wrap: nowrap;
193
+ }
194
+
195
+ > .container,
196
+ > .container-fluid {
197
+ @extend %container-nesting-#{$breakpoint};
198
+ }
199
+
200
+ @each $size, $container-max-width in $container-max-widths {
201
+ > .container#{breakpoint-infix($size, $container-max-widths)} {
202
+ @extend %container-nesting-#{$breakpoint};
203
+ }
204
+ }
205
+
206
+ .navbar-nav-scroll {
207
+ overflow: visible;
208
+ }
209
+
210
+ .navbar-collapse {
211
+ display: flex !important; // stylelint-disable-line declaration-no-important
212
+
213
+ // Changes flex-bases to auto because of an IE10 bug
214
+ flex-basis: auto;
215
+ }
216
+
217
+ .navbar-toggler {
218
+ display: none;
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+
225
+
226
+ // Navbar themes
227
+ //
228
+ // Styles for switching between navbars with light or dark background.
229
+
230
+ // Dark links against a light background
231
+ .navbar-light {
232
+ .navbar-brand {
233
+ color: $navbar-light-brand-color;
234
+
235
+ @include hover-focus() {
236
+ color: $navbar-light-brand-hover-color;
237
+ }
238
+ }
239
+
240
+ .navbar-nav {
241
+ .nav-link {
242
+ color: $navbar-light-color;
243
+
244
+ @include hover-focus() {
245
+ color: $navbar-light-hover-color;
246
+ }
247
+
248
+ &.disabled {
249
+ color: $navbar-light-disabled-color;
250
+ }
251
+ }
252
+
253
+ .show > .nav-link,
254
+ .active > .nav-link,
255
+ .nav-link.show,
256
+ .nav-link.active {
257
+ color: $navbar-light-active-color;
258
+ }
259
+ }
260
+
261
+ .navbar-toggler {
262
+ color: $navbar-light-color;
263
+ border-color: $navbar-light-toggler-border-color;
264
+ }
265
+
266
+ .navbar-toggler-icon {
267
+ background-image: escape-svg($navbar-light-toggler-icon-bg);
268
+ }
269
+
270
+ .navbar-text {
271
+ color: $navbar-light-color;
272
+ a {
273
+ color: $navbar-light-active-color;
274
+
275
+ @include hover-focus() {
276
+ color: $navbar-light-active-color;
277
+ }
278
+ }
279
+ }
280
+ }
281
+
282
+ // White links against a dark background
283
+ .navbar-dark {
284
+ .navbar-brand {
285
+ color: $navbar-dark-brand-color;
286
+
287
+ @include hover-focus() {
288
+ color: $navbar-dark-brand-hover-color;
289
+ }
290
+ }
291
+
292
+ .navbar-nav {
293
+ .nav-link {
294
+ color: $navbar-dark-color;
295
+
296
+ @include hover-focus() {
297
+ color: $navbar-dark-hover-color;
298
+ }
299
+
300
+ &.disabled {
301
+ color: $navbar-dark-disabled-color;
302
+ }
303
+ }
304
+
305
+ .show > .nav-link,
306
+ .active > .nav-link,
307
+ .nav-link.show,
308
+ .nav-link.active {
309
+ color: $navbar-dark-active-color;
310
+ }
311
+ }
312
+
313
+ .navbar-toggler {
314
+ color: $navbar-dark-color;
315
+ border-color: $navbar-dark-toggler-border-color;
316
+ }
317
+
318
+ .navbar-toggler-icon {
319
+ background-image: escape-svg($navbar-dark-toggler-icon-bg);
320
+ }
321
+
322
+ .navbar-text {
323
+ color: $navbar-dark-color;
324
+ a {
325
+ color: $navbar-dark-active-color;
326
+
327
+ @include hover-focus() {
328
+ color: $navbar-dark-active-color;
329
+ }
330
+ }
331
+ }
332
+ }
@@ -0,0 +1,74 @@
1
+ .pagination {
2
+ display: flex;
3
+ @include list-unstyled();
4
+ @include border-radius();
5
+ }
6
+
7
+ .page-link {
8
+ position: relative;
9
+ display: block;
10
+ padding: $pagination-padding-y $pagination-padding-x;
11
+ margin-left: -$pagination-border-width;
12
+ line-height: $pagination-line-height;
13
+ color: $pagination-color;
14
+ text-decoration: if($link-decoration == none, null, none);
15
+ background-color: $pagination-bg;
16
+ border: $pagination-border-width solid $pagination-border-color;
17
+
18
+ &:hover {
19
+ z-index: 2;
20
+ color: $pagination-hover-color;
21
+ text-decoration: none;
22
+ background-color: $pagination-hover-bg;
23
+ border-color: $pagination-hover-border-color;
24
+ }
25
+
26
+ &:focus {
27
+ z-index: 3;
28
+ outline: $pagination-focus-outline;
29
+ box-shadow: $pagination-focus-box-shadow;
30
+ }
31
+ }
32
+
33
+ .page-item {
34
+ &:first-child {
35
+ .page-link {
36
+ margin-left: 0;
37
+ @include border-left-radius($border-radius);
38
+ }
39
+ }
40
+ &:last-child {
41
+ .page-link {
42
+ @include border-right-radius($border-radius);
43
+ }
44
+ }
45
+
46
+ &.active .page-link {
47
+ z-index: 3;
48
+ color: $pagination-active-color;
49
+ background-color: $pagination-active-bg;
50
+ border-color: $pagination-active-border-color;
51
+ }
52
+
53
+ &.disabled .page-link {
54
+ color: $pagination-disabled-color;
55
+ pointer-events: none;
56
+ // Opinionated: remove the "hand" cursor set previously for .page-link
57
+ cursor: auto;
58
+ background-color: $pagination-disabled-bg;
59
+ border-color: $pagination-disabled-border-color;
60
+ }
61
+ }
62
+
63
+
64
+ //
65
+ // Sizing
66
+ //
67
+
68
+ .pagination-lg {
69
+ @include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $line-height-lg, $pagination-border-radius-lg);
70
+ }
71
+
72
+ .pagination-sm {
73
+ @include pagination-size($pagination-padding-y-sm, $pagination-padding-x-sm, $font-size-sm, $line-height-sm, $pagination-border-radius-sm);
74
+ }
@@ -0,0 +1,170 @@
1
+ .popover {
2
+ position: absolute;
3
+ top: 0;
4
+ left: 0;
5
+ z-index: $zindex-popover;
6
+ display: block;
7
+ max-width: $popover-max-width;
8
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
9
+ // So reset our font and text properties to avoid inheriting weird values.
10
+ @include reset-text();
11
+ @include font-size($popover-font-size);
12
+ // Allow breaking very long words so they don't overflow the popover's bounds
13
+ word-wrap: break-word;
14
+ background-color: $popover-bg;
15
+ background-clip: padding-box;
16
+ border: $popover-border-width solid $popover-border-color;
17
+ @include border-radius($popover-border-radius);
18
+ @include box-shadow($popover-box-shadow);
19
+
20
+ .arrow {
21
+ position: absolute;
22
+ display: block;
23
+ width: $popover-arrow-width;
24
+ height: $popover-arrow-height;
25
+ margin: 0 $popover-border-radius;
26
+
27
+ &::before,
28
+ &::after {
29
+ position: absolute;
30
+ display: block;
31
+ content: "";
32
+ border-color: transparent;
33
+ border-style: solid;
34
+ }
35
+ }
36
+ }
37
+
38
+ .bs-popover-top {
39
+ margin-bottom: $popover-arrow-height;
40
+
41
+ > .arrow {
42
+ bottom: subtract(-$popover-arrow-height, $popover-border-width);
43
+
44
+ &::before {
45
+ bottom: 0;
46
+ border-width: $popover-arrow-height ($popover-arrow-width * .5) 0;
47
+ border-top-color: $popover-arrow-outer-color;
48
+ }
49
+
50
+ &::after {
51
+ bottom: $popover-border-width;
52
+ border-width: $popover-arrow-height ($popover-arrow-width * .5) 0;
53
+ border-top-color: $popover-arrow-color;
54
+ }
55
+ }
56
+ }
57
+
58
+ .bs-popover-right {
59
+ margin-left: $popover-arrow-height;
60
+
61
+ > .arrow {
62
+ left: subtract(-$popover-arrow-height, $popover-border-width);
63
+ width: $popover-arrow-height;
64
+ height: $popover-arrow-width;
65
+ margin: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners
66
+
67
+ &::before {
68
+ left: 0;
69
+ border-width: ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5) 0;
70
+ border-right-color: $popover-arrow-outer-color;
71
+ }
72
+
73
+ &::after {
74
+ left: $popover-border-width;
75
+ border-width: ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5) 0;
76
+ border-right-color: $popover-arrow-color;
77
+ }
78
+ }
79
+ }
80
+
81
+ .bs-popover-bottom {
82
+ margin-top: $popover-arrow-height;
83
+
84
+ > .arrow {
85
+ top: subtract(-$popover-arrow-height, $popover-border-width);
86
+
87
+ &::before {
88
+ top: 0;
89
+ border-width: 0 ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5);
90
+ border-bottom-color: $popover-arrow-outer-color;
91
+ }
92
+
93
+ &::after {
94
+ top: $popover-border-width;
95
+ border-width: 0 ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5);
96
+ border-bottom-color: $popover-arrow-color;
97
+ }
98
+ }
99
+
100
+ // This will remove the popover-header's border just below the arrow
101
+ .popover-header::before {
102
+ position: absolute;
103
+ top: 0;
104
+ left: 50%;
105
+ display: block;
106
+ width: $popover-arrow-width;
107
+ margin-left: -$popover-arrow-width * .5;
108
+ content: "";
109
+ border-bottom: $popover-border-width solid $popover-header-bg;
110
+ }
111
+ }
112
+
113
+ .bs-popover-left {
114
+ margin-right: $popover-arrow-height;
115
+
116
+ > .arrow {
117
+ right: subtract(-$popover-arrow-height, $popover-border-width);
118
+ width: $popover-arrow-height;
119
+ height: $popover-arrow-width;
120
+ margin: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners
121
+
122
+ &::before {
123
+ right: 0;
124
+ border-width: ($popover-arrow-width * .5) 0 ($popover-arrow-width * .5) $popover-arrow-height;
125
+ border-left-color: $popover-arrow-outer-color;
126
+ }
127
+
128
+ &::after {
129
+ right: $popover-border-width;
130
+ border-width: ($popover-arrow-width * .5) 0 ($popover-arrow-width * .5) $popover-arrow-height;
131
+ border-left-color: $popover-arrow-color;
132
+ }
133
+ }
134
+ }
135
+
136
+ .bs-popover-auto {
137
+ &[x-placement^="top"] {
138
+ @extend .bs-popover-top;
139
+ }
140
+ &[x-placement^="right"] {
141
+ @extend .bs-popover-right;
142
+ }
143
+ &[x-placement^="bottom"] {
144
+ @extend .bs-popover-bottom;
145
+ }
146
+ &[x-placement^="left"] {
147
+ @extend .bs-popover-left;
148
+ }
149
+ }
150
+
151
+
152
+ // Offset the popover to account for the popover arrow
153
+ .popover-header {
154
+ padding: $popover-header-padding-y $popover-header-padding-x;
155
+ margin-bottom: 0; // Reset the default from Reboot
156
+ @include font-size($font-size-base);
157
+ color: $popover-header-color;
158
+ background-color: $popover-header-bg;
159
+ border-bottom: $popover-border-width solid darken($popover-header-bg, 5%);
160
+ @include border-top-radius($popover-inner-border-radius);
161
+
162
+ &:empty {
163
+ display: none;
164
+ }
165
+ }
166
+
167
+ .popover-body {
168
+ padding: $popover-body-padding-y $popover-body-padding-x;
169
+ color: $popover-body-color;
170
+ }