@tabler/core 1.0.0-beta6 → 1.0.0-beta8

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 (59) hide show
  1. package/dist/css/demo.css +10 -11
  2. package/dist/css/demo.min.css +3 -3
  3. package/dist/css/demo.rtl.css +10 -11
  4. package/dist/css/demo.rtl.min.css +3 -3
  5. package/dist/css/tabler-flags.css +2 -2
  6. package/dist/css/tabler-flags.min.css +2 -2
  7. package/dist/css/tabler-flags.rtl.css +2 -2
  8. package/dist/css/tabler-flags.rtl.min.css +2 -2
  9. package/dist/css/tabler-payments.css +2 -2
  10. package/dist/css/tabler-payments.min.css +2 -2
  11. package/dist/css/tabler-payments.rtl.css +2 -2
  12. package/dist/css/tabler-payments.rtl.min.css +2 -2
  13. package/dist/css/tabler-vendors.css +12 -5
  14. package/dist/css/tabler-vendors.min.css +3 -3
  15. package/dist/css/tabler-vendors.rtl.css +12 -5
  16. package/dist/css/tabler-vendors.rtl.min.css +3 -3
  17. package/dist/css/tabler.css +480 -287
  18. package/dist/css/tabler.min.css +4 -4
  19. package/dist/css/tabler.rtl.css +480 -287
  20. package/dist/css/tabler.rtl.min.css +14 -0
  21. package/dist/fonts/inter-v7-latin-ext_latin-300.woff +0 -0
  22. package/dist/fonts/inter-v7-latin-ext_latin-300.woff2 +0 -0
  23. package/dist/fonts/inter-v7-latin-ext_latin-500.woff +0 -0
  24. package/dist/fonts/inter-v7-latin-ext_latin-500.woff2 +0 -0
  25. package/dist/fonts/inter-v7-latin-ext_latin-600.woff +0 -0
  26. package/dist/fonts/inter-v7-latin-ext_latin-600.woff2 +0 -0
  27. package/dist/fonts/inter-v7-latin-ext_latin-700.woff +0 -0
  28. package/dist/fonts/inter-v7-latin-ext_latin-700.woff2 +0 -0
  29. package/dist/fonts/inter-v7-latin-ext_latin-regular.woff +0 -0
  30. package/dist/fonts/inter-v7-latin-ext_latin-regular.woff2 +0 -0
  31. package/dist/js/demo.js +5 -5
  32. package/dist/js/demo.min.js +3 -3
  33. package/dist/js/tabler.esm.js +476 -233
  34. package/dist/js/tabler.esm.min.js +3 -3
  35. package/dist/js/tabler.js +476 -233
  36. package/dist/js/tabler.min.js +3 -3
  37. package/dist/libs/jsvectormap/dist/js/jsvectormap.min.js +1 -1
  38. package/dist/libs/jsvectormap/dist/maps/world.js +1 -1
  39. package/dist/libs/nouislider/dist/nouislider.min.js +1 -1
  40. package/package.json +16 -15
  41. package/src/js/demo.js +4 -5
  42. package/src/scss/_variables.scss +16 -15
  43. package/src/scss/demo/_highlight.scss +0 -1
  44. package/src/scss/demo.scss +2 -2
  45. package/src/scss/fonts/_webfonts.scss +51 -6
  46. package/src/scss/layout/_dark.scss +10 -1
  47. package/src/scss/layout/_navbar.scss +3 -1
  48. package/src/scss/mixins/_functions.scss +2 -2
  49. package/src/scss/ui/_avatars.scss +1 -5
  50. package/src/scss/ui/_badges.scss +7 -1
  51. package/src/scss/ui/_buttons.scss +46 -0
  52. package/src/scss/ui/_cards.scss +152 -60
  53. package/src/scss/ui/_dropdowns.scss +1 -0
  54. package/src/scss/ui/_forms.scss +2 -2
  55. package/src/scss/ui/_grid.scss +14 -0
  56. package/src/scss/ui/_markdown.scss +1 -0
  57. package/src/scss/ui/_nav.scss +0 -4
  58. package/src/scss/ui/_type.scss +1 -1
  59. package/src/scss/vendor/_jsvectormap.scss +7 -6
@@ -1,17 +1,10 @@
1
- .border-0 {
2
- .card, .nav-link {
3
- border: 0 !important;
4
- }
5
-
6
- .card-stacked::after {
7
- border: 1px solid rgba($text-muted, 0.07) !important;
8
- }
9
- }
10
-
11
1
  .card {
2
+ --#{$variable-prefix}card-border-radius: #{$card-border-radius};
12
3
  box-shadow: $card-shadow;
13
4
  border: $card-border-width solid $card-border-color;
14
5
  background: var(--#{$variable-prefix}card-bg, #{$card-bg});
6
+ border-radius: var(--#{$variable-prefix}card-border-radius);
7
+ @include transition(transform $transition-time ease-out, opacity $transition-time ease-out, box-shadow $transition-time ease-out);
15
8
 
16
9
  @media print {
17
10
  border: none;
@@ -20,15 +13,67 @@
20
13
 
21
14
  @at-root a#{&} {
22
15
  color: inherit;
23
- @include transition(box-shadow $transition-time);
24
16
 
25
17
  &:hover {
26
18
  text-decoration: none;
27
19
  box-shadow: $card-shadow-hover;
28
20
  }
29
21
  }
22
+
23
+ .card {
24
+ box-shadow: none;
25
+ }
26
+ }
27
+
28
+ // Card borderless
29
+ .card-borderless {
30
+ &,
31
+ .card-header,
32
+ .card-footer {
33
+ border-color: transparent;
34
+ }
30
35
  }
31
36
 
37
+ // Card stamp
38
+ .card-stamp {
39
+ --stamp-size: 7rem;
40
+ position: absolute;
41
+ top: 0;
42
+ right: 0;
43
+ width: calc(var(--stamp-size) * 1);
44
+ height: calc(var(--stamp-size) * 1);
45
+ max-height: 100%;
46
+ border-top-right-radius: $border-radius;
47
+ overflow: hidden;
48
+ pointer-events: none;
49
+ }
50
+
51
+ .card-stamp-lg {
52
+ --stamp-size: 13rem;
53
+ }
54
+
55
+ .card-stamp-icon {
56
+ background: $text-muted;
57
+ color: $white;
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ border-radius: $border-radius-pill;
62
+ width: calc(var(--stamp-size) * 1);
63
+ height: calc(var(--stamp-size) * 1);
64
+ position: relative;
65
+ top: calc(var(--stamp-size) * -.25);
66
+ right: calc(var(--stamp-size) * -.25);
67
+ font-size: calc(var(--stamp-size) * .75);
68
+ transform: rotate(10deg);
69
+ opacity: .075;
70
+
71
+ .icon {
72
+ stroke-width: 2;
73
+ width: calc(var(--stamp-size) * .75);
74
+ height: calc(var(--stamp-size) * .75);
75
+ }
76
+ }
32
77
 
33
78
  // Card image
34
79
  .card-img,
@@ -77,16 +122,6 @@
77
122
  }
78
123
  }
79
124
 
80
- .card-link {
81
- color: inherit;
82
-
83
- &:hover {
84
- color: inherit;
85
- text-decoration: none;
86
- box-shadow: 0 1px 6px 0 rgba(0, 0, 0, .08);
87
- }
88
- }
89
-
90
125
  .card-btn {
91
126
  display: flex;
92
127
  align-items: center;
@@ -121,7 +156,7 @@
121
156
  content: "";
122
157
  background: $card-bg;
123
158
  border: 1px solid $card-border-color;
124
- border-radius: $card-border-radius $card-border-radius 0 0;
159
+ border-radius: var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius) 0 0;
125
160
  }
126
161
  }
127
162
 
@@ -153,42 +188,88 @@
153
188
  }
154
189
 
155
190
  .card-actions {
156
- margin-left: auto;
157
- font-size: $h5-font-size;
191
+ margin: -.5rem -.5rem -.5rem auto;
192
+ padding-left: .5rem;
158
193
 
159
194
  a {
160
195
  text-decoration: none;
161
196
  }
162
197
  }
163
198
 
199
+ // Card header
164
200
  .card-header {
165
201
  color: inherit;
166
202
  display: flex;
167
203
  align-items: center;
168
204
  background: transparent;
205
+
206
+ &:first-child {
207
+ border-radius: var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius) 0 0;
208
+ }
209
+ }
210
+
211
+ .card-header-light {
212
+ border-bottom-color: transparent;
213
+ background: var(--#{$variable-prefix}light);
169
214
  }
170
215
 
171
216
  .card-header-tabs {
172
217
  flex: 1;
173
- margin: (- $card-spacer-y) (- $card-spacer-x);
218
+ margin: (- $card-spacer-y * .5) (- $card-spacer-x * .5) (- $card-spacer-y );
174
219
  }
175
220
 
176
221
  .card-header-pills {
177
222
  flex: 1;
223
+ margin-top: -.5rem;
224
+ margin-bottom: -.5rem;
178
225
  }
179
226
 
180
- /*
181
- Card footer
182
- */
227
+ // Card rotate
228
+ .card-rotate-left {
229
+ transform: rotate(-1.5deg);
230
+ }
231
+
232
+ .card-rotate-right {
233
+ transform: rotate(1.5deg);
234
+ }
235
+
236
+ // Card link
237
+ .card-link {
238
+ color: inherit;
239
+
240
+ &:hover {
241
+ color: inherit;
242
+ text-decoration: none;
243
+ box-shadow: 0 1px 6px 0 rgba(0, 0, 0, .08);
244
+ }
245
+ }
246
+
247
+ .card-link-rotate:hover {
248
+ transform: rotate(1.5deg);
249
+ opacity: 1
250
+ }
251
+
252
+ .card-link-pop:hover {
253
+ transform: translateY(-2px);
254
+ opacity: 1
255
+ }
256
+
257
+ // Card footer
183
258
  .card-footer {
184
259
  margin-top: auto;
260
+
261
+ &:last-child {
262
+ border-radius: 0 0 var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius);
263
+ }
185
264
  }
186
265
 
187
- .card-footer-gray {
188
- border-top: 0;
189
- background: $gray-50;
266
+ .card-footer-transparent {
267
+ background: transparent;
268
+ border-color: transparent;
269
+ padding-top: 0;
190
270
  }
191
271
 
272
+ // Card progress
192
273
  .card-progress {
193
274
  height: .25rem;
194
275
 
@@ -218,17 +299,23 @@ Card footer
218
299
  }
219
300
 
220
301
  .card-header & {
221
- margin: .125rem 0;
302
+ margin: 0;
222
303
  }
223
304
  }
224
305
 
225
306
  .card-subtitle {
226
- margin-top: -$card-spacer-y;
307
+ margin-top: divide(-$card-spacer-y, 2);
227
308
  margin-bottom: $card-title-spacer-y;
228
309
  color: $text-muted;
310
+ font-weight: normal;
229
311
 
230
312
  .card-header & {
231
- margin: -.125rem 0 0;
313
+ margin: 0;
314
+ }
315
+
316
+ .card-title & {
317
+ margin: 0 0 0 .25rem;
318
+ font-size: $h4-font-size;
232
319
  }
233
320
  }
234
321
 
@@ -243,7 +330,7 @@ Card footer
243
330
 
244
331
  .card-md > & {
245
332
  @include media-breakpoint-up(md) {
246
- padding: 2rem;
333
+ padding: 2.5rem;
247
334
  }
248
335
  }
249
336
 
@@ -287,17 +374,6 @@ Card optinos
287
374
  color: $text-muted;
288
375
  }
289
376
 
290
- .card-dropdown {
291
- line-height: 1;
292
- color: $text-muted;
293
-
294
- .icon {
295
- width: 1.5rem;
296
- height: 1.5rem;
297
- font-size: 1.5rem;
298
- stroke-width: 1;
299
- }
300
- }
301
377
 
302
378
  /**
303
379
  Card status
@@ -308,7 +384,7 @@ Card status
308
384
  right: 0;
309
385
  left: 0;
310
386
  height: $card-status-size;
311
- border-radius: $card-border-radius $card-border-radius 0 0;
387
+ border-radius: var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius) 0 0;
312
388
  }
313
389
 
314
390
  .card-status-start {
@@ -317,7 +393,7 @@ Card status
317
393
  bottom: 0;
318
394
  width: $card-status-size;
319
395
  height: 100%;
320
- border-radius: $card-border-radius 0 0 $card-border-radius;
396
+ border-radius: var(--#{$variable-prefix}card-border-radius) 0 0 var(--#{$variable-prefix}card-border-radius);
321
397
  }
322
398
 
323
399
  .card-status-bottom {
@@ -326,7 +402,7 @@ Card status
326
402
  bottom: 0;
327
403
  width: 100%;
328
404
  height: $card-status-size;
329
- border-radius: 0 0 $card-border-radius $card-border-radius;
405
+ border-radius: 0 0 var(--#{$variable-prefix}card-border-radius) var(--#{$variable-prefix}card-border-radius);
330
406
  }
331
407
 
332
408
  /**
@@ -443,30 +519,29 @@ Card list group
443
519
  }
444
520
  }
445
521
 
446
- /**
447
- Card tabs
448
- */
522
+ // Card tabs
449
523
  .card-tabs {
450
-
451
524
  .nav-tabs {
452
525
  position: relative;
453
526
  z-index: $zindex-dropdown;
454
527
  border-bottom: 0;
455
528
 
456
529
  .nav-link {
530
+ color: $text-muted;
457
531
  background: $card-cap-bg;
458
532
  border: $card-border-width solid $card-border-color;
459
- border-bottom: 0;
460
533
 
461
534
  &.active,
462
535
  &:active,
463
536
  &:hover {
464
537
  border-color: $card-border-color;
538
+ color: $body-color;
465
539
  }
466
540
 
467
541
  &.active {
468
542
  color: $headings-color;
469
543
  background: $card-bg;
544
+ border-bottom-color: transparent;
470
545
  }
471
546
  }
472
547
 
@@ -492,22 +567,39 @@ Card tabs
492
567
  .nav-tabs-bottom {
493
568
  margin-bottom: 0;
494
569
 
570
+ .nav-link {
571
+ margin-bottom: 0;
572
+
573
+ &.active {
574
+ border-top-color: transparent;
575
+ }
576
+ }
577
+
495
578
  .nav-item {
496
- margin-top: -1px;
579
+ margin-top: -$card-border-width;
497
580
  margin-bottom: 0;
498
581
 
499
582
  .nav-link {
500
- border-top-width: 0;
501
583
  border-bottom: $card-border-width solid $card-border-color;
584
+ border-radius: 0 0 $card-border-radius $card-border-radius;
585
+ }
502
586
 
503
- border-top-left-radius: 0;
504
- border-top-right-radius: 0;
587
+ &:not(:first-child) .nav-link {
588
+ border-bottom-left-radius: 0;
589
+ }
590
+
591
+ &:not(:last-child) .nav-link {
592
+ border-bottom-right-radius: 0;
505
593
  }
506
594
  }
507
595
  }
508
596
 
509
597
  .card {
510
- margin: 0;
598
+ border-bottom-left-radius: 0;
599
+ }
600
+
601
+ .nav-tabs + .tab-content .card {
602
+ border-bottom-left-radius: var(--#{$variable-prefix}card-border-radius);
511
603
  border-top-left-radius: 0;
512
604
  }
513
- }
605
+ }
@@ -63,6 +63,7 @@
63
63
 
64
64
  .dropdown-menu-columns {
65
65
  display: flex;
66
+ flex: 0 .25rem;
66
67
  }
67
68
 
68
69
  .dropdown-menu-arrow {
@@ -129,7 +129,7 @@ Form control
129
129
  .form-fieldset {
130
130
  padding: 1rem;
131
131
  margin-bottom: 1rem;
132
- background: var(--#{$variable-prefix}border-color-light);
132
+ background: var(--#{$variable-prefix}body-bg);
133
133
  border: 1px solid var(--#{$variable-prefix}border-color);
134
134
  border-radius: $border-radius;
135
135
  }
@@ -150,7 +150,7 @@ Form help
150
150
  text-decoration: none;
151
151
  cursor: pointer;
152
152
  user-select: none;
153
- background: $gray-100;
153
+ background: var(--tblr-border-color-light);
154
154
  border-radius: $border-radius-pill;
155
155
  @include transition(background-color $transition-time, color $transition-time);
156
156
 
@@ -58,6 +58,7 @@
58
58
  .row-cards {
59
59
  --#{$variable-prefix}gutter-x: #{$cards-grid-gap};
60
60
  --#{$variable-prefix}gutter-y: #{$cards-grid-gap};
61
+ min-width: 0;
61
62
 
62
63
  .row-cards {
63
64
  flex: 1;
@@ -115,4 +116,17 @@
115
116
  padding-right: $size !important;
116
117
  }
117
118
  }
119
+ }
120
+
121
+ .divide-y-fill {
122
+ display: flex;
123
+ flex-direction: column;
124
+ height: 100%;
125
+
126
+ > :not(template) {
127
+ flex: 1;
128
+ display: flex;
129
+ justify-content: center;
130
+ flex-direction: column;
131
+ }
118
132
  }
@@ -2,6 +2,7 @@
2
2
  Markdown
3
3
  */
4
4
  .markdown {
5
+ font-size: 1rem;
5
6
  line-height: $line-height-lg;
6
7
 
7
8
  > :first-child {
@@ -1,7 +1,3 @@
1
- .nav {
2
- margin: 0;
3
- }
4
-
5
1
  .nav-vertical {
6
2
  &,
7
3
  .nav {
@@ -105,7 +105,7 @@ code {
105
105
  pre {
106
106
  padding: 1rem;
107
107
  overflow: auto;
108
- font-size: $code-font-size;
108
+ font-size: $h5-font-size;;
109
109
  hyphens: none;
110
110
  line-height: $code-line-height;
111
111
  tab-size: 3;
@@ -1,11 +1,12 @@
1
- $tooltip-bg-color: $dark;
2
- $tooltip-font-family: inherit;
3
- $tooltip-font-size: $h5-font-size;
4
- $box-shadow: $card-shadow;
5
- $legend-tick-sample-radius: $border-radius-pill;
6
-
7
1
  @import "~jsvectormap/dist/css/jsvectormap";
8
2
 
3
+ .jvm-tooltip {
4
+ background: $dark;
5
+ font-family: inherit;
6
+ font-size: $h5-font-size;
7
+ box-shadow: $card-shadow;
8
+ }
9
+
9
10
  .jvm-series-container .jvm-legend .jvm-legend-title {
10
11
  border-bottom: 0;
11
12
  font-weight: $font-weight-medium;