@clayui/css 3.88.0 → 3.90.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.
- package/lib/css/atlas.css +100 -176
- package/lib/css/atlas.css.map +1 -1
- package/lib/css/base.css +76 -126
- package/lib/css/base.css.map +1 -1
- package/lib/css/cadmin.css +118 -147
- package/lib/css/cadmin.css.map +1 -1
- package/lib/images/icons/angle-double-left-small.svg +10 -0
- package/lib/images/icons/angle-double-left.svg +10 -0
- package/lib/images/icons/angle-double-right-small.svg +10 -0
- package/lib/images/icons/angle-double-right.svg +10 -0
- package/lib/images/icons/field-area.svg +10 -0
- package/lib/images/icons/flags-km-KH.svg +12 -0
- package/lib/images/icons/icons.svg +1 -1
- package/package.json +2 -2
- package/src/images/icons/angle-double-left-small.svg +10 -0
- package/src/images/icons/angle-double-left.svg +10 -0
- package/src/images/icons/angle-double-right-small.svg +10 -0
- package/src/images/icons/angle-double-right.svg +10 -0
- package/src/images/icons/field-area.svg +10 -0
- package/src/images/icons/flags-km-KH.svg +12 -0
- package/src/scss/_license-text.scss +1 -1
- package/src/scss/_variables.scss +2 -0
- package/src/scss/atlas/_variables.scss +2 -0
- package/src/scss/atlas/variables/_c-root.scss +3 -0
- package/src/scss/atlas/variables/_globals.scss +1 -0
- package/src/scss/atlas/variables/_menubar.scss +68 -62
- package/src/scss/atlas/variables/_navs.scss +1 -1
- package/src/scss/cadmin/variables/_buttons.scss +1 -1
- package/src/scss/cadmin/variables/_globals.scss +1 -10
- package/src/scss/cadmin/variables/_menubar.scss +204 -189
- package/src/scss/cadmin/variables/_navigation-bar.scss +17 -1
- package/src/scss/cadmin/variables/_navs.scss +1 -1
- package/src/scss/cadmin/variables/_pagination.scss +3 -3
- package/src/scss/components/_root.scss +17 -13
- package/src/scss/functions/_global-functions.scss +21 -0
- package/src/scss/functions/_lx-icons-generated.scss +12 -0
- package/src/scss/mixins/_breakpoints.scss +44 -40
- package/src/scss/mixins/_menubar.scss +131 -10
- package/src/scss/variables/_buttons.scss +1 -1
- package/src/scss/variables/_c-root.scss +3 -0
- package/src/scss/variables/_globals.scss +1 -10
- package/src/scss/variables/_menubar.scss +158 -161
- package/src/scss/variables/_navigation-bar.scss +17 -1
- package/src/scss/variables/_navs.scss +1 -1
|
@@ -7,33 +7,35 @@
|
|
|
7
7
|
/// @param {Map} $breakpoints[$grid-breakpoints] - A map that defines the breakpoints
|
|
8
8
|
|
|
9
9
|
@mixin media-breakpoint-up($name, $breakpoints: null) {
|
|
10
|
-
$
|
|
11
|
-
$breakpoints
|
|
12
|
-
|
|
13
|
-
variable-exists(grid-breakpoints),
|
|
14
|
-
$grid-breakpoints,
|
|
10
|
+
@if ($name != c-unset) {
|
|
11
|
+
$breakpoints: setter(
|
|
12
|
+
$breakpoints,
|
|
15
13
|
if(
|
|
16
|
-
variable-exists(
|
|
17
|
-
$
|
|
18
|
-
(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
variable-exists(grid-breakpoints),
|
|
15
|
+
$grid-breakpoints,
|
|
16
|
+
if(
|
|
17
|
+
variable-exists(cadmin-grid-breakpoints),
|
|
18
|
+
$cadmin-grid-breakpoints,
|
|
19
|
+
(
|
|
20
|
+
xs: 0,
|
|
21
|
+
sm: 576px,
|
|
22
|
+
md: 768px,
|
|
23
|
+
lg: 992px,
|
|
24
|
+
xl: 1280px,
|
|
25
|
+
)
|
|
24
26
|
)
|
|
25
27
|
)
|
|
26
|
-
)
|
|
27
|
-
);
|
|
28
|
+
);
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
@if $min {
|
|
33
|
+
@media (min-width: $min) {
|
|
34
|
+
@content;
|
|
35
|
+
}
|
|
36
|
+
} @else {
|
|
33
37
|
@content;
|
|
34
38
|
}
|
|
35
|
-
} @else {
|
|
36
|
-
@content;
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -42,33 +44,35 @@
|
|
|
42
44
|
/// @param {Map} $breakpoints[$grid-breakpoints] - A map that defines the breakpoints
|
|
43
45
|
|
|
44
46
|
@mixin media-breakpoint-down($name, $breakpoints: null) {
|
|
45
|
-
$
|
|
46
|
-
$breakpoints
|
|
47
|
-
|
|
48
|
-
variable-exists(grid-breakpoints),
|
|
49
|
-
$grid-breakpoints,
|
|
47
|
+
@if ($name != c-unset) {
|
|
48
|
+
$breakpoints: setter(
|
|
49
|
+
$breakpoints,
|
|
50
50
|
if(
|
|
51
|
-
variable-exists(
|
|
52
|
-
$
|
|
53
|
-
(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
variable-exists(grid-breakpoints),
|
|
52
|
+
$grid-breakpoints,
|
|
53
|
+
if(
|
|
54
|
+
variable-exists(cadmin-grid-breakpoints),
|
|
55
|
+
$cadmin-grid-breakpoints,
|
|
56
|
+
(
|
|
57
|
+
xs: 0,
|
|
58
|
+
sm: 576px,
|
|
59
|
+
md: 768px,
|
|
60
|
+
lg: 992px,
|
|
61
|
+
xl: 1280px,
|
|
62
|
+
)
|
|
59
63
|
)
|
|
60
64
|
)
|
|
61
|
-
)
|
|
62
|
-
);
|
|
65
|
+
);
|
|
63
66
|
|
|
64
|
-
|
|
67
|
+
$max: breakpoint-max($name, $breakpoints);
|
|
65
68
|
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
@if $max {
|
|
70
|
+
@media (max-width: $max) {
|
|
71
|
+
@content;
|
|
72
|
+
}
|
|
73
|
+
} @else {
|
|
68
74
|
@content;
|
|
69
75
|
}
|
|
70
|
-
} @else {
|
|
71
|
-
@content;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
|
|
@@ -46,11 +46,16 @@
|
|
|
46
46
|
@mixin clay-menubar-vertical-expand($map) {
|
|
47
47
|
@if (type-of($map) == 'map') {
|
|
48
48
|
$enabled: setter(map-get($map, enabled), true);
|
|
49
|
-
$breakpoint-up:
|
|
50
|
-
$breakpoint-down: setter(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
$breakpoint-up: map-get($map, breakpoint-up);
|
|
50
|
+
$breakpoint-down: setter(map-get($map, breakpoint-down), c-unset);
|
|
51
|
+
|
|
52
|
+
@if ($breakpoint-up) and ($breakpoint-up != c-unset) {
|
|
53
|
+
@warn "`breakpoint-up` is deprecated in the mixin `clay-menubar-vertical-expand`, use the key `media-breakpoint-down: (sm: ())` instead.";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@if ($breakpoint-down) and ($breakpoint-down != c-unset) {
|
|
57
|
+
@warn "`breakpoint-down` is deprecated in the mixin `clay-menubar-vertical-expand`, use the key `media-breakpoint-down: (sm: ())` instead.";
|
|
58
|
+
}
|
|
54
59
|
|
|
55
60
|
// .menubar-vertical-expand-{md}
|
|
56
61
|
|
|
@@ -312,7 +317,13 @@
|
|
|
312
317
|
}
|
|
313
318
|
|
|
314
319
|
.menubar-collapse {
|
|
315
|
-
|
|
320
|
+
$_menubar-collapse: setter(map-get($map, collapse), ());
|
|
321
|
+
$_menubar-collapse: map-deep-merge(
|
|
322
|
+
setter(map-get($map, menubar-collapse), ()),
|
|
323
|
+
$_menubar-collapse
|
|
324
|
+
);
|
|
325
|
+
|
|
326
|
+
@include clay-css($_menubar-collapse);
|
|
316
327
|
|
|
317
328
|
@include media-breakpoint-down($breakpoint-down) {
|
|
318
329
|
@include clay-css($collapse-mobile);
|
|
@@ -367,6 +378,46 @@
|
|
|
367
378
|
}
|
|
368
379
|
}
|
|
369
380
|
}
|
|
381
|
+
|
|
382
|
+
@if (map-get($map, media-breakpoint-down)) {
|
|
383
|
+
@each $breakpoint
|
|
384
|
+
in map-keys(map-get($map, media-breakpoint-down))
|
|
385
|
+
{
|
|
386
|
+
$media-breakpoint-down: map-deep-get(
|
|
387
|
+
$map,
|
|
388
|
+
media-breakpoint-down,
|
|
389
|
+
$breakpoint
|
|
390
|
+
);
|
|
391
|
+
|
|
392
|
+
@if ($breakpoint) {
|
|
393
|
+
@include media-breakpoint-down($breakpoint) {
|
|
394
|
+
@include clay-menubar-vertical-variant(
|
|
395
|
+
$media-breakpoint-down
|
|
396
|
+
);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@if (map-get($map, media-breakpoint-up)) {
|
|
403
|
+
@each $breakpoint
|
|
404
|
+
in map-keys(map-get($map, media-breakpoint-up))
|
|
405
|
+
{
|
|
406
|
+
$media-breakpoint-up: map-deep-get(
|
|
407
|
+
$map,
|
|
408
|
+
media-breakpoint-up,
|
|
409
|
+
$breakpoint
|
|
410
|
+
);
|
|
411
|
+
|
|
412
|
+
@if ($breakpoint) {
|
|
413
|
+
@include media-breakpoint-up($breakpoint) {
|
|
414
|
+
@include clay-menubar-vertical-variant(
|
|
415
|
+
$media-breakpoint-up
|
|
416
|
+
);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
370
421
|
} @else {
|
|
371
422
|
.menubar-collapse {
|
|
372
423
|
display: block;
|
|
@@ -462,8 +513,16 @@
|
|
|
462
513
|
|
|
463
514
|
@mixin clay-menubar-vertical-variant($map) {
|
|
464
515
|
$enable: setter(map-get($map, enable), true);
|
|
465
|
-
$breakpoint-up:
|
|
466
|
-
$breakpoint-down:
|
|
516
|
+
$breakpoint-up: map-get($map, breakpoint-up);
|
|
517
|
+
$breakpoint-down: setter(map-get($map, breakpoint-down), c-unset);
|
|
518
|
+
|
|
519
|
+
@if ($breakpoint-up) and ($breakpoint-up != c-unset) {
|
|
520
|
+
@warn "`breakpoint-up` is deprecated in the mixin `clay-menubar-vertical-variant`, use the key `media-breakpoint-down: (sm: ())` instead.";
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
@if ($breakpoint-down) and ($breakpoint-down != c-unset) {
|
|
524
|
+
@warn "`breakpoint-down` is deprecated in the mixin `clay-menubar-vertical-variant`, use the key `media-breakpoint-down: (sm: ())` instead.";
|
|
525
|
+
}
|
|
467
526
|
|
|
468
527
|
// .menubar-vertical-expand-{md}.menubar-{variant}
|
|
469
528
|
|
|
@@ -855,7 +914,13 @@
|
|
|
855
914
|
}
|
|
856
915
|
|
|
857
916
|
.menubar-collapse {
|
|
858
|
-
|
|
917
|
+
$_menubar-collapse: setter(map-get($map, collapse), ());
|
|
918
|
+
$_menubar-collapse: map-merge(
|
|
919
|
+
setter(map-get($map, menubar-collapse), ()),
|
|
920
|
+
$_menubar-collapse
|
|
921
|
+
);
|
|
922
|
+
|
|
923
|
+
@include clay-css($_menubar-collapse);
|
|
859
924
|
|
|
860
925
|
@include media-breakpoint-down($breakpoint-down) {
|
|
861
926
|
@include clay-css($collapse-mobile);
|
|
@@ -863,11 +928,27 @@
|
|
|
863
928
|
}
|
|
864
929
|
|
|
865
930
|
.menubar-toggler {
|
|
931
|
+
$_menubar-toggler: setter(map-get($map, menubar-toggler), ());
|
|
932
|
+
|
|
933
|
+
@include clay-css($_menubar-toggler);
|
|
934
|
+
|
|
935
|
+
.c-inner {
|
|
936
|
+
@include clay-css(map-get($_menubar-toggler, c-inner));
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.lexicon-icon {
|
|
940
|
+
@include clay-css(map-get($_menubar-toggler, lexicon-icon));
|
|
941
|
+
}
|
|
942
|
+
|
|
866
943
|
@include media-breakpoint-down($breakpoint-down) {
|
|
867
944
|
@include clay-button-variant($toggler-mobile);
|
|
868
945
|
}
|
|
869
946
|
}
|
|
870
947
|
|
|
948
|
+
.nav-nested {
|
|
949
|
+
@include clay-css(map-get($map, nav-nested));
|
|
950
|
+
}
|
|
951
|
+
|
|
871
952
|
.nav-nested-margins {
|
|
872
953
|
> li .nav > li {
|
|
873
954
|
@include clay-css(map-get($map, nav-nested-margins-item));
|
|
@@ -881,11 +962,51 @@
|
|
|
881
962
|
}
|
|
882
963
|
|
|
883
964
|
.nav-link {
|
|
884
|
-
|
|
965
|
+
$_nav-link: setter(map-get($map, nav-link), ());
|
|
966
|
+
$_nav-link: map-deep-merge($link, $_nav-link);
|
|
967
|
+
|
|
968
|
+
@include clay-link($_nav-link);
|
|
885
969
|
|
|
886
970
|
@include media-breakpoint-down($breakpoint-down) {
|
|
887
971
|
@include clay-link($link-mobile);
|
|
888
972
|
}
|
|
889
973
|
}
|
|
974
|
+
|
|
975
|
+
@if (map-get($map, media-breakpoint-down)) {
|
|
976
|
+
@each $breakpoint in map-keys(map-get($map, media-breakpoint-down))
|
|
977
|
+
{
|
|
978
|
+
$media-breakpoint-down: map-deep-get(
|
|
979
|
+
$map,
|
|
980
|
+
media-breakpoint-down,
|
|
981
|
+
$breakpoint
|
|
982
|
+
);
|
|
983
|
+
|
|
984
|
+
@if ($breakpoint) {
|
|
985
|
+
@include media-breakpoint-down($breakpoint) {
|
|
986
|
+
@include clay-menubar-vertical-variant(
|
|
987
|
+
$media-breakpoint-down
|
|
988
|
+
);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
@if (map-get($map, media-breakpoint-up)) {
|
|
995
|
+
@each $breakpoint in map-keys(map-get($map, media-breakpoint-up)) {
|
|
996
|
+
$media-breakpoint-up: map-deep-get(
|
|
997
|
+
$map,
|
|
998
|
+
media-breakpoint-up,
|
|
999
|
+
$breakpoint
|
|
1000
|
+
);
|
|
1001
|
+
|
|
1002
|
+
@if ($breakpoint) {
|
|
1003
|
+
@include media-breakpoint-up($breakpoint) {
|
|
1004
|
+
@include clay-menubar-vertical-variant(
|
|
1005
|
+
$media-breakpoint-up
|
|
1006
|
+
);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
890
1011
|
}
|
|
891
1012
|
}
|
|
@@ -27,7 +27,7 @@ $btn-disabled-opacity: $component-disabled-opacity !default;
|
|
|
27
27
|
$btn-inline-item-font-size: null !default;
|
|
28
28
|
|
|
29
29
|
$btn-section-font-size: 0.6875rem !default; // 11px
|
|
30
|
-
$btn-section-font-weight: $font-weight-
|
|
30
|
+
$btn-section-font-weight: $font-weight-semi-bold !default;
|
|
31
31
|
$btn-section-line-height: 1 !default;
|
|
32
32
|
|
|
33
33
|
$btn: () !default;
|
|
@@ -104,6 +104,7 @@ $colors: map-merge(
|
|
|
104
104
|
$primary: $blue !default;
|
|
105
105
|
$primary-d1: clay-darken($primary, 7.5) !default;
|
|
106
106
|
$primary-d2: clay-darken($primary, 10) !default;
|
|
107
|
+
$primary-l0: clay-lighten($primary, 13.92) !default;
|
|
107
108
|
$primary-l1: clay-lighten($primary, 22.94) !default;
|
|
108
109
|
$primary-l2: clay-lighten($primary, 32.94) !default;
|
|
109
110
|
$primary-l3: clay-lighten($primary, 44.9) !default;
|
|
@@ -585,16 +586,6 @@ $link: map-deep-merge(
|
|
|
585
586
|
color: $link-hover-color,
|
|
586
587
|
text-decoration: $link-hover-decoration,
|
|
587
588
|
),
|
|
588
|
-
inline-item-before: (
|
|
589
|
-
margin-right: 0.25rem,
|
|
590
|
-
),
|
|
591
|
-
inline-item-middle: (
|
|
592
|
-
margin-left: 0.25rem,
|
|
593
|
-
margin-right: 0.25rem,
|
|
594
|
-
),
|
|
595
|
-
inline-item-after: (
|
|
596
|
-
margin-left: 0.25rem,
|
|
597
|
-
),
|
|
598
589
|
),
|
|
599
590
|
$link
|
|
600
591
|
);
|