@finqu/cool 1.2.28 → 1.3.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.
Files changed (207) hide show
  1. package/README.md +680 -1
  2. package/dist/css/cool.css +23510 -16076
  3. package/dist/css/cool.css.map +1 -154
  4. package/dist/css/cool.min.css +89 -3
  5. package/dist/css/cool.min.css.map +1 -1
  6. package/dist/js/cool.bundle.js +15397 -3775
  7. package/dist/js/cool.bundle.js.map +1 -1
  8. package/dist/js/cool.bundle.min.js +20 -8
  9. package/dist/js/cool.bundle.min.js.map +1 -1
  10. package/dist/js/cool.esm.js +4281 -3352
  11. package/dist/js/cool.esm.js.map +1 -1
  12. package/dist/js/cool.esm.min.js +9 -8
  13. package/dist/js/cool.esm.min.js.map +1 -1
  14. package/dist/js/cool.js +4283 -3354
  15. package/dist/js/cool.js.map +1 -1
  16. package/dist/js/cool.min.js +9 -8
  17. package/dist/js/cool.min.js.map +1 -1
  18. package/package.json +94 -61
  19. package/.babelrc.js +0 -20
  20. package/.browserslistrc +0 -13
  21. package/build/.eslintrc.json +0 -10
  22. package/build/banner.js +0 -14
  23. package/build/build-plugins.js +0 -92
  24. package/build/rollup.config.js +0 -46
  25. package/dist/css/cool-grid.css +0 -3704
  26. package/dist/css/cool-grid.css.map +0 -30
  27. package/dist/css/cool-grid.min.css +0 -7
  28. package/dist/css/cool-grid.min.css.map +0 -1
  29. package/dist/css/cool-reboot.css +0 -285
  30. package/dist/css/cool-reboot.css.map +0 -62
  31. package/dist/css/cool-reboot.min.css +0 -7
  32. package/dist/css/cool-reboot.min.css.map +0 -1
  33. package/html/dropdown-test.html +0 -200
  34. package/html/index.html +0 -2704
  35. package/js/dist/collapse.js +0 -5290
  36. package/js/dist/collapse.js.map +0 -1
  37. package/js/dist/common.js +0 -22152
  38. package/js/dist/common.js.map +0 -1
  39. package/js/dist/cooldropdown.js +0 -467
  40. package/js/dist/cooldropdown.js.map +0 -1
  41. package/js/dist/coolpopover.js +0 -391
  42. package/js/dist/coolpopover.js.map +0 -1
  43. package/js/dist/coolsectiontabs.js +0 -256
  44. package/js/dist/coolsectiontabs.js.map +0 -1
  45. package/js/dist/coolselect.js +0 -796
  46. package/js/dist/coolselect.js.map +0 -1
  47. package/js/dist/cooltooltip.js +0 -360
  48. package/js/dist/cooltooltip.js.map +0 -1
  49. package/js/dist/coolui.js +0 -73
  50. package/js/dist/coolui.js.map +0 -1
  51. package/js/dist/dropdown.js +0 -27421
  52. package/js/dist/dropdown.js.map +0 -1
  53. package/js/dist/popover.js +0 -9298
  54. package/js/dist/popover.js.map +0 -1
  55. package/js/dist/sectiontabs.js +0 -4483
  56. package/js/dist/sectiontabs.js.map +0 -1
  57. package/js/dist/select.js +0 -37052
  58. package/js/dist/select.js.map +0 -1
  59. package/js/dist/tooltip.js +0 -8786
  60. package/js/dist/tooltip.js.map +0 -1
  61. package/js/index.esm.js +0 -21
  62. package/js/index.umd.js +0 -21
  63. package/js/src/abstract-ui-component.js +0 -81
  64. package/js/src/collapse.js +0 -272
  65. package/js/src/common.js +0 -313
  66. package/js/src/dialog.js +0 -578
  67. package/js/src/dropdown.js +0 -525
  68. package/js/src/popover.js +0 -621
  69. package/js/src/section-tabs.js +0 -215
  70. package/js/src/select.js +0 -1341
  71. package/js/src/toast.js +0 -581
  72. package/js/src/tooltip.js +0 -591
  73. package/js/src/util/animate-css.js +0 -22
  74. package/js/src/util/index.js +0 -122
  75. package/js/src/util/perfect-scrollbar.js +0 -1316
  76. package/less/alert.less +0 -345
  77. package/less/badge.less +0 -38
  78. package/less/bootstrap-noconflict.less +0 -23
  79. package/less/bootstrap.less +0 -23
  80. package/less/button-group.less +0 -153
  81. package/less/buttons.less +0 -287
  82. package/less/dialog-noconflict.less +0 -174
  83. package/less/dialog.less +0 -203
  84. package/less/dropdown.less +0 -209
  85. package/less/forms.less +0 -770
  86. package/less/images.less +0 -242
  87. package/less/input-group.less +0 -163
  88. package/less/list-group.less +0 -73
  89. package/less/mixins/aspect-ratio.less +0 -23
  90. package/less/mixins/border-radius.less +0 -24
  91. package/less/mixins/box-shadow.less +0 -4
  92. package/less/mixins/buttons.less +0 -17
  93. package/less/mixins/caret.less +0 -51
  94. package/less/mixins/clearfix.less +0 -10
  95. package/less/mixins/gradients.less +0 -34
  96. package/less/mixins/nav-divider.less +0 -7
  97. package/less/mixins/object-fit.less +0 -13
  98. package/less/mixins/reset-text.less +0 -16
  99. package/less/mixins.less +0 -11
  100. package/less/package.json +0 -11
  101. package/less/pagination.less +0 -69
  102. package/less/popover.less +0 -143
  103. package/less/project.sublime-workspace +0 -774
  104. package/less/reboot.less +0 -235
  105. package/less/section.less +0 -793
  106. package/less/select.less +0 -150
  107. package/less/tables.less +0 -737
  108. package/less/tabs.less +0 -162
  109. package/less/tooltip.less +0 -87
  110. package/less/type.less +0 -71
  111. package/less/utilities/align.less +0 -27
  112. package/less/utilities/animate.less +0 -3512
  113. package/less/utilities/background.less +0 -70
  114. package/less/utilities/borders.less +0 -16
  115. package/less/utilities/color.less +0 -70
  116. package/less/utilities/cursor.less +0 -8
  117. package/less/utilities/display.less +0 -38
  118. package/less/utilities/embed.less +0 -61
  119. package/less/utilities/flex.less +0 -76
  120. package/less/utilities/jquery-ui.less +0 -116
  121. package/less/utilities/lazyload.less +0 -29
  122. package/less/utilities/overflow.less +0 -11
  123. package/less/utilities/pace.less +0 -25
  124. package/less/utilities/placeholder.less +0 -60
  125. package/less/utilities/position.less +0 -42
  126. package/less/utilities/scrollbar.less +0 -152
  127. package/less/utilities/spacing.less +0 -197
  128. package/less/utilities/text.less +0 -68
  129. package/less/utilities/transform.less +0 -7
  130. package/less/utilities.less +0 -21
  131. package/less/variables.less +0 -343
  132. package/scss/LISENCE +0 -15
  133. package/scss/_alert.scss +0 -106
  134. package/scss/_badge.scss +0 -71
  135. package/scss/_button-group.scss +0 -129
  136. package/scss/_buttons.scss +0 -207
  137. package/scss/_custom-forms.scss +0 -429
  138. package/scss/_dialog.scss +0 -161
  139. package/scss/_dropdown.scss +0 -231
  140. package/scss/_forms.scss +0 -257
  141. package/scss/_frame.scss +0 -548
  142. package/scss/_functions.scss +0 -124
  143. package/scss/_grid.scss +0 -35
  144. package/scss/_images.scss +0 -362
  145. package/scss/_input-group.scss +0 -271
  146. package/scss/_list-group.scss +0 -82
  147. package/scss/_mixins.scss +0 -34
  148. package/scss/_navbar.scss +0 -264
  149. package/scss/_notification.scss +0 -13
  150. package/scss/_pagination.scss +0 -79
  151. package/scss/_popover.scss +0 -165
  152. package/scss/_reboot.scss +0 -283
  153. package/scss/_root.scss +0 -15
  154. package/scss/_section.scss +0 -912
  155. package/scss/_select.scss +0 -175
  156. package/scss/_tables.scss +0 -716
  157. package/scss/_tabs.scss +0 -175
  158. package/scss/_toast.scss +0 -182
  159. package/scss/_tooltip.scss +0 -101
  160. package/scss/_type.scss +0 -121
  161. package/scss/_utilities.scss +0 -23
  162. package/scss/_variables.scss +0 -699
  163. package/scss/cool-grid.scss +0 -29
  164. package/scss/cool-reboot.scss +0 -11
  165. package/scss/cool.scss +0 -37
  166. package/scss/mixins/_alert-variant.scss +0 -25
  167. package/scss/mixins/_aspect-ratio.scss +0 -29
  168. package/scss/mixins/_background-variant.scss +0 -25
  169. package/scss/mixins/_badge-variant.scss +0 -36
  170. package/scss/mixins/_breakpoints.scss +0 -102
  171. package/scss/mixins/_buttons.scss +0 -104
  172. package/scss/mixins/_caret.scss +0 -80
  173. package/scss/mixins/_clearfix.scss +0 -10
  174. package/scss/mixins/_float.scss +0 -14
  175. package/scss/mixins/_forms.scss +0 -67
  176. package/scss/mixins/_gradients.scss +0 -40
  177. package/scss/mixins/_grid-framework.scss +0 -72
  178. package/scss/mixins/_grid.scss +0 -60
  179. package/scss/mixins/_nav-divider.scss +0 -9
  180. package/scss/mixins/_notification-variant.scss +0 -7
  181. package/scss/mixins/_object-fit.scss +0 -16
  182. package/scss/mixins/_reset-text.scss +0 -19
  183. package/scss/mixins/_text-emphasis.scss +0 -21
  184. package/scss/mixins/_text-hide.scss +0 -10
  185. package/scss/mixins/_text-truncate.scss +0 -81
  186. package/scss/mixins/_visibility.scss +0 -7
  187. package/scss/project.sublime-workspace +0 -491
  188. package/scss/utilities/_align.scss +0 -41
  189. package/scss/utilities/_animate.scss +0 -3512
  190. package/scss/utilities/_background.scss +0 -14
  191. package/scss/utilities/_borders.scss +0 -146
  192. package/scss/utilities/_clearfix.scss +0 -6
  193. package/scss/utilities/_collapse.scss +0 -33
  194. package/scss/utilities/_cursor.scss +0 -22
  195. package/scss/utilities/_display.scss +0 -16
  196. package/scss/utilities/_embed.scss +0 -78
  197. package/scss/utilities/_flex.scss +0 -52
  198. package/scss/utilities/_lazyload.scss +0 -31
  199. package/scss/utilities/_overflow.scss +0 -6
  200. package/scss/utilities/_perfect-scrollbar.scss +0 -141
  201. package/scss/utilities/_placeholder.scss +0 -76
  202. package/scss/utilities/_position.scss +0 -30
  203. package/scss/utilities/_sizing.scss +0 -32
  204. package/scss/utilities/_spacing.scss +0 -92
  205. package/scss/utilities/_text.scss +0 -99
  206. package/scss/utilities/_user-select.scss +0 -14
  207. package/scss/utilities/_visibility.scss +0 -10
package/scss/_frame.scss DELETED
@@ -1,548 +0,0 @@
1
- // Frame
2
- // -----------------------------------------------------------------------------------------
3
-
4
- @if $frame-enable {
5
-
6
- // Html
7
- html.dom-ready {
8
-
9
- @include media-breakpoint-down(sm) {
10
- .sidebar-left,
11
- .sidebar-right {
12
- transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
13
- }
14
- }
15
- }
16
-
17
- html {
18
- overflow-y: hidden;
19
- }
20
-
21
- html,
22
- body {
23
- width: 100%;
24
- height: 100%;
25
- overflow-x: hidden;
26
- }
27
-
28
- // Body
29
- body {
30
- @include media-breakpoint-down(sm) {
31
- &.sidebar-left-open {
32
- .site-main > .sidebar-left {
33
- transform: translate3d(0px, 0, 0);
34
- }
35
-
36
- .site-header,
37
- .site-main > .content {
38
- transform: translate3d($frame-sidebar-left-width, 0, 0);
39
- }
40
- }
41
-
42
- &.sidebar-right-open {
43
- .site-main > .sidebar-right {
44
- transform: translate3d(0px, 0, 0);
45
- }
46
-
47
- .site-header,
48
- .site-main > .content {
49
- transform: translate3d(-#{$frame-sidebar-right-width}, 0, 0);
50
- }
51
- }
52
- }
53
- }
54
-
55
-
56
- // Site header
57
- .site-header {
58
- @include media-breakpoint-down(sm) {
59
- transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
60
- }
61
-
62
- & + .site-main {
63
- height: calc(100% - #{$navbar-height + $navbar-border-width});
64
-
65
- @include media-breakpoint-down(sm) {
66
- height: calc(100% - #{$navbar-height-sm + $navbar-border-width});
67
- }
68
- }
69
- }
70
-
71
-
72
- // Site main
73
- .site-main {
74
- position: relative;
75
- overflow: visible;
76
- z-index: 1;
77
-
78
- // Site content
79
- .content {
80
- position: relative;
81
- width: 100%;
82
- height: 100%;
83
- overflow-x: hidden;
84
- overflow-y: auto;
85
- float: none;
86
- transition: all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1);
87
- -webkit-overflow-scrolling: touch;
88
-
89
- @include media-breakpoint-up(md) {
90
- transition-property: top, bottom, width;
91
- transition-duration: 0.2s, 0.2s, 0.35s;
92
- transition-timing-function: linear, linear, ease;
93
- }
94
-
95
- .content-inner {
96
- position: relative;
97
- margin: 20px 0;
98
- overflow: visible;
99
-
100
- @include media-breakpoint-up(md) {
101
- margin: 20px 0;
102
- }
103
- }
104
-
105
- .content-header {
106
- position: relative;
107
- width: 100%;
108
- margin: 20px 0;
109
-
110
- & + .content-inner {
111
- margin-top: 0;
112
- }
113
-
114
- @include media-breakpoint-up(md) {
115
- margin: 20px 0;
116
- }
117
-
118
- .content-header-title {
119
- font-size: $h3-font-size;
120
- margin-bottom: 0;
121
-
122
- @include media-breakpoint-up(sm) {
123
- font-size: $h1-font-size;
124
- }
125
- }
126
-
127
- .content-header-primary-action .btn {
128
- @include media-breakpoint-up(sm) {
129
- @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size , $btn-line-height, $btn-border-radius);
130
- }
131
- }
132
-
133
- .content-header-secondary-actions {
134
- font-size: 0;
135
-
136
- &.has-content {
137
- margin-top: 20px;
138
- margin-bottom: 20px;
139
-
140
- @include media-breakpoint-up(md) {
141
- margin-top: 10px;
142
- margin-bottom: 0;
143
- }
144
- }
145
- }
146
- }
147
- }
148
-
149
-
150
- // Sidebar left
151
- .sidebar-left {
152
- display: flex;
153
- flex-direction: column;
154
- position: absolute;
155
- top: 0;
156
- bottom: 0;
157
- left: 0;
158
- overflow: hidden;
159
- transform: translate3d(-#{$frame-sidebar-left-width}, 0, 0);
160
- width: $frame-sidebar-left-width;
161
- height: 100%;
162
- max-height: 100%;
163
- overflow-y: auto;
164
- background-color: $frame-sidebar-left-bg-mobile;
165
- border-right: $frame-sidebar-left-border-width solid $frame-sidebar-left-border-color;
166
- transition-property: top, bottom, width;
167
- transition-duration: 0.2s, 0.2s, 0.35s;
168
- transition-timing-function: linear, linear, ease;
169
- z-index: 1000;
170
-
171
- @include media-breakpoint-down(sm) {
172
- position: fixed;
173
- right: auto;
174
- visibility: visible;
175
- }
176
-
177
- @include media-breakpoint-up(md) {
178
- background-color: $frame-sidebar-left-bg;
179
-
180
- &.visible {
181
- transform: translate3d(0, 0, 0);
182
-
183
- & + .content {
184
- width: calc(100% - #{$frame-sidebar-left-width});
185
- float: right;
186
-
187
- .container-content {
188
- max-width: 100%;
189
- }
190
- }
191
- }
192
- }
193
-
194
- .sidebar-header {
195
- padding: 20px;
196
-
197
- & + .sidebar-content {
198
- &:before {
199
- content: '';
200
- display: block;
201
- border-top: $frame-sidebar-left-border-width solid $frame-sidebar-left-border-color;
202
- }
203
- }
204
-
205
- @include media-breakpoint-up(md) {
206
- & + .sidebar-content {
207
- &:before {
208
- display: none;
209
- }
210
- }
211
- }
212
- }
213
-
214
- .sidebar-content {
215
- position: relative;
216
- height: 100%;
217
- z-index: 10;
218
-
219
- .ps__thumb-y {
220
- background-color: rgba(0,0,0,0.5);
221
- }
222
-
223
- .ps__rail-y:focus > .ps__thumb-y {
224
- background-color: rgba(0,0,0,0.8);
225
- }
226
-
227
- .collapse,
228
- .collapsing {
229
- width: 100%;
230
- }
231
-
232
- .nav {
233
- position: relative;
234
- margin: 0;
235
- padding: 0;
236
- list-style: none;
237
-
238
- li {
239
- display: flex;
240
- align-items: center;
241
- flex-wrap: wrap;
242
- position: relative;
243
-
244
- [data-collapse-indicator] {
245
- width: 21px;
246
- }
247
-
248
- .nav-additional-action {
249
- padding: 8px 10px;
250
- flex: 0 auto;
251
- border: 0;
252
- background: none;
253
- margin: 0 10px 0 0;
254
- width: 16px;
255
- text-align: center;
256
- box-sizing: content-box;
257
- outline: 0;
258
-
259
- &:hover {
260
- .icon {
261
- color: $frame-sidebar-nav-icon-hover-color;
262
- }
263
- }
264
-
265
- .icon {
266
- color: $frame-sidebar-nav-icon-color;
267
- }
268
- }
269
-
270
- &.nav-parent {
271
- > .nav-item {
272
-
273
- &[disabled] {
274
- cursor: default;
275
- }
276
-
277
- &:hover,
278
- &:focus {
279
- .nav-item-title {
280
- color: $frame-sidebar-nav-item-parent-hover-color;
281
- }
282
- .nav-icon,
283
- .icon {
284
- color: $frame-sidebar-nav-icon-hover-color;
285
- }
286
- }
287
-
288
- &.active,
289
- &[aria-expanded="true"] {
290
- .nav-item-title {
291
- color: $frame-sidebar-nav-item-parent-active-color;
292
- }
293
- .nav-icon {
294
- color: $frame-sidebar-nav-icon-active-color;
295
- }
296
- }
297
-
298
- .nav-item-title {
299
- display: block;
300
- position: relative;
301
- font-size: $frame-sidebar-nav-item-parent-font-size;
302
- font-weight: $font-weight-normal;
303
- color: $frame-sidebar-nav-item-parent-color;
304
- line-height: 25px;
305
- align-self: center;
306
- text-align: left;
307
- width: 100%;
308
-
309
- @include media-breakpoint-up(sm) {
310
- font-weight: $font-weight-bold;
311
- }
312
- }
313
-
314
- .nav-icon {
315
- align-self: center;
316
- float: left;
317
- text-align: center;
318
- line-height: 25px;
319
- font-size: $frame-sidebar-nav-icon-size;
320
- margin: 0 auto;
321
- color: $frame-sidebar-nav-icon-color;
322
- min-width: 23px;
323
-
324
- & + span {
325
- margin-left: 20px;
326
- }
327
- }
328
-
329
- .icon {
330
- color: $frame-sidebar-nav-icon-color;
331
- }
332
- }
333
- }
334
-
335
- .nav-item {
336
- position: relative;
337
- display: inline-flex;
338
- flex: 1 0;
339
- cursor: pointer;
340
- padding: 8px 20px;
341
- margin: 0;
342
- opacity: .85;
343
- border: 0;
344
- background: none;
345
- outline: 0;
346
- word-break: break-all;
347
-
348
- .nav-item-title {
349
- color: $frame-sidebar-nav-item-child-color;
350
- }
351
-
352
- &:hover,
353
- &:focus {
354
- outline: 0;
355
-
356
- .nav-item-title {
357
- color: $frame-sidebar-nav-item-child-hover-color;
358
- }
359
- }
360
-
361
- &.active {
362
- outline: 0;
363
-
364
- .nav-item-title {
365
- color: $frame-sidebar-nav-item-child-active-color;
366
- font-weight: $font-weight-bold;
367
- }
368
- }
369
- }
370
-
371
- // Sub links
372
- li {
373
-
374
- &.divider {
375
- margin-left: 65px;
376
- margin-right: 20px;
377
- border-bottom: 1px solid $frame-sidebar-nav-item-border-color;
378
- }
379
-
380
- > .nav-item {
381
- padding-left: 65px;
382
- }
383
- }
384
- }
385
- }
386
-
387
- > .nav {
388
- padding: 20px 0;
389
- }
390
- }
391
- }
392
-
393
-
394
- // Sidebar right
395
- .sidebar-right {
396
- display: flex;
397
- flex-direction: column;
398
- position: absolute;
399
- top: 0;
400
- right: 0;
401
- bottom: 0;
402
- width: $frame-sidebar-right-width;
403
- transform: translate3d($frame-sidebar-right-width, 0, 0);
404
- height: 100%;
405
- max-height: 100%;
406
- overflow-y: auto;
407
- background-color: $frame-sidebar-right-bg-mobile;
408
- border-left: $frame-sidebar-right-border-width solid $frame-sidebar-right-border-color;
409
- box-sizing: border-box;
410
-
411
- @include media-breakpoint-up(md) {
412
- background-color: $frame-sidebar-right-bg;
413
- }
414
-
415
- @include media-breakpoint-down(sm) {
416
- position: fixed;
417
- left: auto;
418
- visibility: visible;
419
- overflow-y: visible;
420
- }
421
-
422
- .sidebar-tabs {
423
- display: flex;
424
- flex-wrap: wrap;
425
- padding: 0;
426
- margin: 0;
427
- list-style: none;
428
- border-bottom: 1px solid $frame-sidebar-tabs-border-color;
429
- min-height: 49px;
430
-
431
- .tab-item {
432
- display: flex;
433
- align-items: center;
434
- justify-content: center;
435
- flex: 1;
436
- margin-bottom: -1px;
437
-
438
- .tab-item-action {
439
- display: block;
440
- border-left: 0;
441
- border-top: 0;
442
- border-right: 0;
443
- border-bottom: 2px solid transparent;
444
- cursor: pointer;
445
- padding: 0;
446
- margin: 0;
447
- background: $frame-sidebar-tabs-bg;
448
- outline: 0;
449
- width: 100%;
450
- height: 100%;
451
- color: $frame-sidebar-tabs-color;
452
-
453
- &.active {
454
- color: $frame-sidebar-tabs-active-color;
455
- border-color: $frame-sidebar-tabs-active-border-color;
456
- background-color: $frame-sidebar-tabs-active-bg;
457
- }
458
-
459
- &:hover:not(.active) {
460
- color: $frame-sidebar-tabs-hover-color;
461
- border-color: $frame-sidebar-tabs-hover-border-color;
462
- }
463
- }
464
- }
465
- }
466
-
467
- .sidebar-tab-content {
468
- position: relative;
469
- overflow: hidden;
470
- display: flex;
471
- height: 100%;
472
- transition: height .5s cubic-bezier(.35,0,.25,1);
473
-
474
- .sidebar-tab {
475
- top: 0;
476
- left: 0;
477
- right: 0;
478
- bottom: 0;
479
- position: absolute;
480
- display: block;
481
- overflow: hidden;
482
-
483
- &.active {
484
- position: relative;
485
- overflow-x: hidden;
486
- overflow-y: auto;
487
- z-index: 1;
488
- flex-grow: 1;
489
- }
490
-
491
- .tab-content {
492
- position: relative;
493
- backface-visibility: hidden;
494
- height: 100%;
495
- overflow: auto;
496
- transition: all .3s ease-in-out;
497
- padding: 15px;
498
- }
499
- }
500
- }
501
- }
502
- }
503
-
504
- } @else {
505
-
506
- .content-header {
507
- position: relative;
508
- width: 100%;
509
- margin: 20px 0;
510
-
511
- @include media-breakpoint-up(md) {
512
- margin: 20px 0;
513
- }
514
-
515
- & + .content-inner {
516
- margin-top: 0;
517
- }
518
-
519
- .content-header-title {
520
- font-size: $h3-font-size;
521
- margin-bottom: 0;
522
-
523
- @include media-breakpoint-up(sm) {
524
- font-size: $h1-font-size;
525
- }
526
- }
527
-
528
- .content-header-primary-action .btn {
529
- @include media-breakpoint-up(sm) {
530
- @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size , $btn-line-height, $btn-border-radius);
531
- }
532
- }
533
-
534
- .content-header-secondary-actions {
535
- font-size: 0;
536
-
537
- &.has-content {
538
- margin-top: 20px;
539
- margin-bottom: 20px;
540
-
541
- @include media-breakpoint-up(md) {
542
- margin-top: 10px;
543
- margin-bottom: 0;
544
- }
545
- }
546
- }
547
- }
548
- }
@@ -1,124 +0,0 @@
1
- // Functions
2
- // ---------------------------------------------------------------------------------------------------------------
3
-
4
- // Ascending
5
- // Used to evaluate Sass maps like our grid breakpoints.
6
- @mixin _assert-ascending($map, $map-name) {
7
-
8
- $prev-key: null;
9
- $prev-num: null;
10
-
11
- @each $key, $num in $map {
12
- @if $prev-num == null or unit($num) == "%" {
13
- // Do nothing
14
- } @else if not comparable($prev-num, $num) {
15
- @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
16
- } @else if $prev-num >= $num {
17
- @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
18
- }
19
- $prev-key: $key;
20
- $prev-num: $num;
21
- }
22
- }
23
-
24
-
25
- // Starts at zero
26
- // Used to ensure the min-width of the lowest breakpoint starts at 0.
27
- @mixin _assert-starts-at-zero($map, $map-name: '$grid-breakpoints') {
28
-
29
- $values: map-values($map);
30
- $first-value: nth($values, 1);
31
-
32
- @if $first-value != 0 {
33
- @warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
34
- }
35
- }
36
-
37
-
38
- // Make spacers
39
- @function spacer($key) {
40
-
41
- @if map-has-key($spacers, $key) {
42
- @return map-get($spacers, $key);
43
- }
44
-
45
- @warn "Unknown `#{$key}` in $spacers.";
46
- @return null;
47
- }
48
-
49
-
50
- // Replace `$search` with `$replace` in `$string`
51
- // Used on our SVG icon backgrounds for custom forms.
52
- //
53
- // @author Hugo Giraudel
54
- // @param {String} $string - Initial string
55
- // @param {String} $search - Substring to replace
56
- // @param {String} $replace ('') - New value
57
- // @return {String} - Updated string
58
- @function str-replace($string, $search, $replace: '') {
59
-
60
- $index: str-index($string, $search);
61
-
62
- @if $index {
63
- @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
64
- }
65
-
66
- @return $string;
67
- }
68
-
69
-
70
- // Color contrast
71
- @function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) {
72
-
73
- @if type-of($color) == 'color' {
74
-
75
- $r: red($color);
76
- $g: green($color);
77
- $b: blue($color);
78
-
79
- $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
80
-
81
- @if ($yiq >= $yiq-contrasted-threshold) {
82
- @return $dark;
83
- } @else {
84
- @return $light;
85
- }
86
- }
87
-
88
- @warn "`#{$color}` is not a color.";
89
- @return null;
90
- }
91
-
92
-
93
- // Color
94
- @function color($key) {
95
-
96
- @if map-has-key($colors, $key) {
97
- @return map-get($colors, $key);
98
- }
99
-
100
- @warn "Unknown `#{$key}` in $colors.";
101
- @return null;
102
- }
103
-
104
-
105
- // Theme color
106
- @function theme-color($key) {
107
-
108
- @if map-has-key($theme-colors, $key) {
109
- @return map-get($theme-colors, $key);
110
- }
111
-
112
- @warn "Unknown `#{$key}` in $theme-colors.";
113
- @return null;
114
- }
115
-
116
- // Strip unit
117
- @function strip-unit($number) {
118
-
119
- @if type-of($number) == 'number' and not unitless($number) {
120
- @return $number / ($number * 0 + 1);
121
- }
122
-
123
- @return $number;
124
- }
package/scss/_grid.scss DELETED
@@ -1,35 +0,0 @@
1
- // Grid
2
- // ---------------------------------------------------------------------------------------------------------------
3
-
4
- .container {
5
- @include make-container();
6
- @include make-container-max-widths();
7
- }
8
-
9
- .container-fluid {
10
- @include make-container();
11
- }
12
-
13
- .container-content {
14
- position: relative;
15
- @include make-container-content();
16
- }
17
-
18
- .row {
19
- @include make-row();
20
- }
21
-
22
- // Remove the negative margin from default .row, then the horizontal padding
23
- // from all immediate children columns (to prevent runaway style inheritance).
24
- .no-gutters {
25
- margin-right: 0;
26
- margin-left: 0;
27
-
28
- > .col,
29
- > [class*="col-"] {
30
- padding-right: 0;
31
- padding-left: 0;
32
- }
33
- }
34
-
35
- @include make-grid-columns();