@lucca-front/scss 20.2.2 → 20.3.0-rc.2

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 (164) hide show
  1. package/dist/lucca-front.min.css +1 -1
  2. package/package.json +2 -2
  3. package/src/commons/config.scss +12 -1
  4. package/src/commons/core.scss +3 -3
  5. package/src/commons/exports.scss +0 -1
  6. package/src/commons/index.scss +9 -2
  7. package/src/commons/utils/color.scss +14 -0
  8. package/src/commons/utils/index.scss +480 -478
  9. package/src/commons/utils/reset.scss +1 -1
  10. package/src/components/_sample/index.scss +14 -6
  11. package/src/components/appLayout/index.scss +11 -7
  12. package/src/components/avatar/component.scss +4 -3
  13. package/src/components/avatar/index.scss +46 -34
  14. package/src/components/avatar/mods.scss +17 -2
  15. package/src/components/avatar/vars.scss +4 -0
  16. package/src/components/box/index.scss +20 -14
  17. package/src/components/breadcrumbs/index.scss +16 -10
  18. package/src/components/button/index.scss +143 -123
  19. package/src/components/button/mods.scss +33 -1
  20. package/src/components/button/states.scss +29 -3
  21. package/src/components/button/vars.scss +1 -1
  22. package/src/components/buttonGroup/component.scss +1 -1
  23. package/src/components/buttonGroup/index.scss +20 -8
  24. package/src/components/calendar/index.scss +56 -44
  25. package/src/components/callout/component.scss +13 -4
  26. package/src/components/callout/index.scss +17 -4
  27. package/src/components/callout/mods.scss +30 -2
  28. package/src/components/callout/vars.scss +5 -0
  29. package/src/components/calloutDisclosure/index.scss +15 -9
  30. package/src/components/calloutFeedbackList/index.scss +8 -4
  31. package/src/components/calloutPopover/index.scss +18 -12
  32. package/src/components/card/index.scss +26 -20
  33. package/src/components/checkbox/index.scss +36 -30
  34. package/src/components/checkboxField/index.scss +90 -80
  35. package/src/components/chip/index.scss +23 -17
  36. package/src/components/clear/index.scss +23 -17
  37. package/src/components/code/index.scss +8 -4
  38. package/src/components/collapse/index.scss +11 -7
  39. package/src/components/comment/index.scss +30 -20
  40. package/src/components/container/index.scss +29 -25
  41. package/src/components/contentSection/index.scss +4 -2
  42. package/src/components/dataTable/component.scss +2 -0
  43. package/src/components/dataTable/index.scss +85 -49
  44. package/src/components/dataTable/mods.scss +4 -5
  45. package/src/components/dataTable/states.scss +12 -0
  46. package/src/components/dataTableSticked/index.scss +32 -24
  47. package/src/components/dateField/index.scss +24 -20
  48. package/src/components/dateRangeField/index.scss +29 -25
  49. package/src/components/dialog/index.scss +40 -32
  50. package/src/components/dialog/mods.scss +4 -0
  51. package/src/components/divider/index.scss +11 -7
  52. package/src/components/dropdown/index.scss +12 -6
  53. package/src/components/emptyState/index.scss +11 -7
  54. package/src/components/errorPage/index.scss +8 -4
  55. package/src/components/fancyBox/index.scss +8 -4
  56. package/src/components/field/index.scss +96 -76
  57. package/src/components/fieldset/index.scss +18 -12
  58. package/src/components/file/index.scss +38 -30
  59. package/src/components/fileEntry/index.scss +24 -18
  60. package/src/components/fileToolbar/index.scss +10 -6
  61. package/src/components/fileUpload/index.scss +37 -31
  62. package/src/components/filterBar/index.scss +17 -13
  63. package/src/components/filterBarDeprecated/index.scss +8 -4
  64. package/src/components/filterPill/index.scss +56 -48
  65. package/src/components/filters/index.scss +14 -8
  66. package/src/components/footer/component.scss +0 -1
  67. package/src/components/footer/index.scss +38 -34
  68. package/src/components/form/component.scss +10 -0
  69. package/src/components/form/index.scss +114 -84
  70. package/src/components/form/mods.scss +7 -5
  71. package/src/components/formLabel/index.scss +19 -13
  72. package/src/components/gauge/component.scss +71 -14
  73. package/src/components/gauge/index.scss +31 -6
  74. package/src/components/gauge/mods.scss +21 -7
  75. package/src/components/gauge/states.scss +8 -0
  76. package/src/components/gauge/vars.scss +16 -1
  77. package/src/components/grid/index.scss +25 -21
  78. package/src/components/header/index.scss +18 -12
  79. package/src/components/highlightData/index.scss +28 -24
  80. package/src/components/horizontalNavigation/index.scss +42 -36
  81. package/src/components/index.scss +58 -55
  82. package/src/components/indexTable/index.scss +54 -56
  83. package/src/components/inlineMessage/index.scss +18 -12
  84. package/src/components/inputFramed/component.scss +1 -0
  85. package/src/components/inputFramed/index.scss +34 -24
  86. package/src/components/inputFramed/mods.scss +3 -0
  87. package/src/components/inputFramed/vars.scss +1 -0
  88. package/src/components/label/index.scss +13 -9
  89. package/src/components/layout/index.scss +51 -45
  90. package/src/components/link/index.scss +14 -8
  91. package/src/components/link/mods.scss +1 -1
  92. package/src/components/list/index.scss +15 -11
  93. package/src/components/listboxOption/index.scss +131 -115
  94. package/src/components/listing/index.scss +22 -18
  95. package/src/components/loading/index.scss +27 -23
  96. package/src/components/main/index.scss +21 -15
  97. package/src/components/mainLayout/index.scss +26 -20
  98. package/src/components/mobileHeader/index.scss +8 -4
  99. package/src/components/mobileNavigation/index.scss +4 -2
  100. package/src/components/mobilePush/index.scss +8 -4
  101. package/src/components/multiSelect/index.scss +46 -36
  102. package/src/components/navside/index.scss +78 -56
  103. package/src/components/newBadge/index.scss +8 -4
  104. package/src/components/notchBox/index.scss +17 -13
  105. package/src/components/notchBox/mods.scss +137 -125
  106. package/src/components/numericBadge/index.scss +22 -16
  107. package/src/components/pageHeader/index.scss +26 -22
  108. package/src/components/pagination/index.scss +12 -6
  109. package/src/components/plgPush/index.scss +4 -2
  110. package/src/components/popover/index.scss +4 -2
  111. package/src/components/progress/index.scss +15 -9
  112. package/src/components/radio/index.scss +18 -12
  113. package/src/components/radioButtons/index.scss +15 -9
  114. package/src/components/radioField/index.scss +46 -40
  115. package/src/components/readMore/index.scss +21 -15
  116. package/src/components/richText/index.scss +20 -14
  117. package/src/components/scrollBox/index.scss +14 -10
  118. package/src/components/section/index.scss +16 -12
  119. package/src/components/segmentedControl/component.scss +1 -0
  120. package/src/components/segmentedControl/index.scss +25 -15
  121. package/src/components/simpleSelect/index.scss +41 -33
  122. package/src/components/skeleton/index.scss +43 -37
  123. package/src/components/skipLinks/index.scss +4 -2
  124. package/src/components/sortableList/index.scss +12 -6
  125. package/src/components/statusBadge/index.scss +8 -4
  126. package/src/components/suggestion/component.scss +19 -0
  127. package/src/components/suggestion/exports.scss +4 -0
  128. package/src/components/suggestion/index.scss +16 -0
  129. package/src/components/suggestion/mods.scss +0 -0
  130. package/src/components/suggestion/states.scss +12 -0
  131. package/src/components/suggestion/vars.scss +4 -0
  132. package/src/components/switch/index.scss +35 -29
  133. package/src/components/switchField/index.scss +22 -16
  134. package/src/components/table/index.scss +78 -64
  135. package/src/components/tableFixed/index.scss +13 -11
  136. package/src/components/tableFixedDeprecated/index.scss +14 -10
  137. package/src/components/tableOfContent/index.scss +28 -24
  138. package/src/components/tableSortable/index.scss +22 -16
  139. package/src/components/tableSticked/index.scss +28 -24
  140. package/src/components/tableSticked/mods.scss +6 -6
  141. package/src/components/tableStickedDeprecated/index.scss +46 -40
  142. package/src/components/tag/component.scss +4 -1
  143. package/src/components/tag/index.scss +32 -14
  144. package/src/components/tag/mods.scss +30 -3
  145. package/src/components/tag/states.scss +6 -0
  146. package/src/components/tag/vars.scss +2 -0
  147. package/src/components/textField/component.scss +1 -0
  148. package/src/components/textField/index.scss +33 -21
  149. package/src/components/textField/mods.scss +1 -1
  150. package/src/components/textField/states.scss +5 -0
  151. package/src/components/textField/vars.scss +1 -0
  152. package/src/components/textFlow/index.scss +4 -2
  153. package/src/components/textfields/index.scss +279 -258
  154. package/src/components/timeline/index.scss +72 -66
  155. package/src/components/timepicker/index.scss +21 -15
  156. package/src/components/title/index.scss +44 -27
  157. package/src/components/title/mods.scss +7 -1
  158. package/src/components/titleSection/index.scss +31 -23
  159. package/src/components/toast/index.scss +8 -4
  160. package/src/components/tooltip/index.scss +25 -21
  161. package/src/components/userPopover/component.scss +1 -0
  162. package/src/components/userPopover/index.scss +4 -2
  163. package/src/components/userTile/index.scss +26 -22
  164. package/src/components/verticalNavigation/index.scss +26 -16
@@ -1,61 +1,71 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .multiSelect {
4
- @include vars;
5
- @include component;
6
-
7
- &.mod-S {
8
- @include S;
4
+ @layer components {
5
+ @include vars;
6
+ @include component;
9
7
  }
10
8
 
11
- &:has(.multipleSelect-displayer-search:focus-visible) {
12
- @include focused;
13
- }
9
+ @layer mods {
10
+ &.mod-S {
11
+ @include S;
12
+ }
14
13
 
15
- &:has(.multipleSelect-displayer-search[aria-invalid='true']) {
16
- @include invalid;
14
+ &.mod-filterPill {
15
+ @include filterPill;
16
+ }
17
17
  }
18
18
 
19
- &:has(.multipleSelect-displayer-search:disabled) {
20
- @include disabled;
21
- }
19
+ @layer states {
20
+ &.is-selected {
21
+ @include selected;
22
+ }
22
23
 
23
- &:has([aria-expanded='true']) {
24
- @include expanded;
25
- }
24
+ &:has(.multipleSelect-displayer-search:focus-visible) {
25
+ @include focused;
26
+ }
26
27
 
27
- &:not(.mod-noClueIcon) {
28
- &:has(.multipleSelect-displayer-search:focus-visible),
29
- &:has([aria-expanded='true']) {
30
- &:not(:has(.multipleSelect-displayer-search:read-only)) {
31
- @include searchable;
32
- }
28
+ &:has(.multipleSelect-displayer-search[aria-invalid='true']) {
29
+ @include invalid;
33
30
  }
34
- }
35
31
 
36
- &.is-selected {
37
- @include selected;
38
- }
32
+ &:has(.multipleSelect-displayer-search:disabled) {
33
+ @include disabled;
34
+ }
35
+
36
+ &:has([aria-expanded='true']) {
37
+ @include expanded;
38
+ }
39
39
 
40
- &.mod-filterPill {
41
- @include filterPill;
40
+ &:not(.mod-noClueIcon) {
41
+ &:has(.multipleSelect-displayer-search:focus-visible),
42
+ &:has([aria-expanded='true']) {
43
+ &:not(:has(.multipleSelect-displayer-search:read-only)) {
44
+ @include searchable;
45
+ }
46
+ }
47
+ }
42
48
  }
43
49
  }
44
50
 
45
51
  .multipleSelect-displayer-filter {
46
- min-inline-size: 0;
52
+ @layer components {
53
+ min-inline-size: 0;
54
+ }
47
55
  }
48
56
 
49
57
  .multipleSelect-displayer {
50
- &.mod-filter {
51
- @include displayerFilter;
58
+ @layer mods {
59
+ &.mod-filter {
60
+ @include displayerFilter;
52
61
 
53
- &.is-filled {
54
- @include displayerFilterFilled;
55
- }
62
+ &.is-filled {
63
+ @include displayerFilterFilled;
64
+ }
56
65
 
57
- &:has([aria-expanded='true']):not(:has(:placeholder-shown)) {
58
- @include displayerFilterExpanded;
66
+ &:has([aria-expanded='true']):not(:has(:placeholder-shown)) {
67
+ @include displayerFilterExpanded;
68
+ }
59
69
  }
60
70
  }
61
71
  }
@@ -3,87 +3,105 @@
3
3
  @use 'exports' as *;
4
4
 
5
5
  .navSide {
6
- @include vars;
7
- @include component;
6
+ @layer components {
7
+ @include vars;
8
+ @include component;
8
9
 
9
- .appLayout-navSide & {
10
- @include media.min('S') {
11
- @include inAppLayoutWide;
12
- }
10
+ .appLayout-navSide & {
11
+ @include media.min('S') {
12
+ @include inAppLayoutWide;
13
+ }
13
14
 
14
- @include media.max('S') {
15
- @include inAppLayoutNarrow;
15
+ @include media.max('S') {
16
+ @include inAppLayoutNarrow;
17
+ }
16
18
  }
17
19
  }
18
20
 
19
- &.mod-withBanner {
20
- @include banner;
21
- }
21
+ @layer mods {
22
+ &.mod-withBanner {
23
+ @include banner;
24
+ }
22
25
 
23
- &.mod-compact {
24
- @include media.min('S') {
25
- @include compact;
26
+ &.mod-compact {
27
+ @include media.min('S') {
28
+ @include compact;
26
29
 
27
- .navSide-item-link {
28
- &:hover {
29
- @include compactHover;
30
- }
30
+ .navSide-item-link {
31
+ &:hover {
32
+ @include compactHover;
33
+ }
31
34
 
32
- &:is(.is-active, .active) {
33
- @include compactActive;
35
+ &:is(.is-active, .active) {
36
+ @include compactActive;
37
+ }
34
38
  }
35
39
  }
36
40
  }
37
41
  }
38
42
 
39
- @include media.max('S') {
40
- @include mobile;
43
+ @layer mods {
44
+ @include media.max('S') {
45
+ @include mobile;
46
+ }
47
+ }
41
48
 
42
- &:not(.is-open, .open) {
43
- .navSide-item {
44
- &:not(.mod-mobileToggle) {
45
- @include mobileHidden;
49
+ @layer states {
50
+ @include media.max('S') {
51
+ &:not(.is-open, .open) {
52
+ .navSide-item {
53
+ &:not(.mod-mobileToggle) {
54
+ @include mobileHidden;
55
+ }
46
56
  }
47
57
  }
48
- }
49
58
 
50
- &.mod-withBanner {
51
- .navSide-item {
52
- &.mod-mobileToggle {
53
- @include banner;
59
+ &:is(.is-open, .open) {
60
+ @include mobileOpen;
61
+
62
+ &.mod-withBanner {
63
+ @include mobileOpenBanner;
54
64
  }
55
65
  }
56
66
  }
67
+ }
57
68
 
58
- &:is(.is-open, .open) {
59
- @include mobileOpen;
60
-
69
+ @layer mods {
70
+ @include media.max('S') {
61
71
  &.mod-withBanner {
62
- @include mobileOpenBanner;
72
+ .navSide-item {
73
+ &.mod-mobileToggle {
74
+ @include banner;
75
+ }
76
+ }
63
77
  }
64
78
  }
65
79
  }
66
80
  }
67
81
 
68
82
  .navSide-item {
69
- &:not(.is-open) {
70
- @include notOpen;
83
+ @layer mods {
84
+ &.mod-mobileToggle {
85
+ @include mobileToggle;
86
+ }
71
87
  }
72
88
 
73
- &.mod-mobileToggle {
74
- @include mobileToggle;
75
- }
89
+ @layer states {
90
+ &:not(.is-open) {
91
+ @include notOpen;
92
+ }
76
93
 
77
- &:is(.is-open, .open) {
78
- @include expanded;
94
+ &:is(.is-open, .open) {
95
+ @include expanded;
79
96
 
80
- .navSide-item-subMenu-link {
81
- &:is(:hover) {
82
- @include sublinkHover;
83
- }
97
+ .navSide-item-subMenu-link {
98
+ &:is(:hover) {
99
+ @include sublinkHover;
100
+ }
84
101
 
85
- &:is(.is-active, .active) {
86
- @include sublinkActive;
102
+ &:is(.is-active, .active) {
103
+ @include sublinkActive;
104
+ }
87
105
  }
88
106
  }
89
107
  }
@@ -91,19 +109,23 @@
91
109
 
92
110
  .navSide-item-subMenu-link,
93
111
  .navSide-item-link {
94
- &:is(.is-active, .active) {
95
- @include active;
96
- }
112
+ @layer states {
113
+ &:is(.is-active, .active) {
114
+ @include active;
115
+ }
97
116
 
98
- &:is([aria-expanded='true']) {
99
- @include expanded;
117
+ &:is([aria-expanded='true']) {
118
+ @include expanded;
119
+ }
100
120
  }
101
121
  }
102
122
 
103
123
  html {
104
- &:is(.hasMenu, .withMenu) {
105
- @include media.max('S') {
106
- @include overlay;
124
+ @layer states {
125
+ &:is(.hasMenu, .withMenu) {
126
+ @include media.max('S') {
127
+ @include overlay;
128
+ }
107
129
  }
108
130
  }
109
131
  }
@@ -1,10 +1,14 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .newBadge {
4
- @include vars;
5
- @include component;
4
+ @layer components {
5
+ @include vars;
6
+ @include component;
7
+ }
6
8
 
7
- &.mod-inverted {
8
- @include inverted;
9
+ @layer mods {
10
+ &.mod-inverted {
11
+ @include inverted;
12
+ }
9
13
  }
10
14
  }
@@ -1,22 +1,26 @@
1
1
  @use 'exports' as *;
2
2
 
3
3
  .notchBox {
4
- @include vars;
5
- @include component;
6
-
7
- &.mod-notchTop {
8
- @include notchTop;
4
+ @layer components {
5
+ @include vars;
6
+ @include component;
9
7
  }
10
8
 
11
- &.mod-notchLeft {
12
- @include notchLeft;
13
- }
9
+ @layer mods {
10
+ &.mod-notchTop {
11
+ @include notchTop;
12
+ }
14
13
 
15
- &.mod-notchRight {
16
- @include notchRight;
17
- }
14
+ &.mod-notchLeft {
15
+ @include notchLeft;
16
+ }
17
+
18
+ &.mod-notchRight {
19
+ @include notchRight;
20
+ }
18
21
 
19
- &.mod-notchBottom {
20
- @include notchBottom;
22
+ &.mod-notchBottom {
23
+ @include notchBottom;
24
+ }
21
25
  }
22
26
  }
@@ -1,140 +1,149 @@
1
1
  // stylelint-disable custom-property-empty-line-before -- Complex code with visual grouping of declarations.
2
2
 
3
3
  %commons {
4
- --smooth: 1px;
5
- --component-notchbox-notch-radius-outer: var(--component-notchbox-notch-radius);
6
- --component-notchbox-notch-padding: calc(var(--component-notchbox-notch-height) + var(--component-notchbox-box-padding));
7
- --component-notchbox-notch-percent-offset: var(--component-notchbox-notch-percent, 0) * var(--component-notchbox-notch-radius-inner);
8
- --component-notchbox-notch-percent-offset2: (1 - var(--component-notchbox-notch-percent, 0)) *
9
- var(--component-notchbox-notch-radius-inner);
10
- --component-notchbox-badge-anchor: calc(
11
- var(--component-notchbox-badge-offset) * -1 + (var(--component-notchbox-notch-height) - var(--component-notchbox-badge-height)) / 2
12
- );
4
+ @layer mods {
5
+ --smooth: 1px;
6
+ --component-notchbox-notch-radius-outer: var(--component-notchbox-notch-radius);
7
+ --component-notchbox-notch-padding: calc(var(--component-notchbox-notch-height) + var(--component-notchbox-box-padding));
8
+ --component-notchbox-notch-percent-offset: var(--component-notchbox-notch-percent, 0) * var(--component-notchbox-notch-radius-inner);
9
+ --component-notchbox-notch-percent-offset2: (1 - var(--component-notchbox-notch-percent, 0)) *
10
+ var(--component-notchbox-notch-radius-inner);
11
+ --component-notchbox-badge-anchor: calc(
12
+ var(--component-notchbox-badge-offset) * -1 + (var(--component-notchbox-notch-height) - var(--component-notchbox-badge-height)) / 2
13
+ );
14
+ }
13
15
  }
14
16
 
15
17
  %mod-vertical {
16
- @extend %commons;
17
- --component-notchbox-box-min-height: calc(var(--component-notchbox-notch-height) + var(--component-notchbox-box-padding) * 2);
18
- --component-notchbox-notch-gradient1-ref1: 100%;
19
- --component-notchbox-notch-gradient1-ref2: calc(100% - var(--component-notchbox-notch-height));
20
-
21
- --component-notchbox-notch-gradient2-anchor: left;
22
- --component-notchbox-notch-gradient2-ref1: calc(
23
- var(--component-notchbox-notch-position) - (var(--component-notchbox-notch-width)) /
24
- 2 - var(--component-notchbox-notch-radius-outer) - var(--smooth) * 2
25
- );
26
- --component-notchbox-notch-gradient2-ref2: 100%;
27
-
28
- --component-notchbox-notch-gradient3-anchor: right;
29
- --component-notchbox-notch-gradient3-ref1: calc(
30
- 100% -
31
- (
32
- var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 +
33
- var(--component-notchbox-notch-radius-outer) + var(--smooth) * 2
34
- )
35
- );
36
- --component-notchbox-notch-gradient3-ref2: 100%;
37
-
38
- --component-notchbox-notch-gradient4-x: calc(
39
- var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) /
40
- 2 - var(--component-notchbox-notch-radius-outer) - var(--smooth)
41
- );
42
-
43
- --component-notchbox-notch-gradient5-x: calc(
44
- var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 + var(--component-notchbox-notch-radius-outer) +
45
- var(--smooth)
46
- );
47
- --component-notchbox-notch-gradient5-y: var(--component-notchbox-notch-gradient4-y);
48
-
49
- --component-notchbox-notch-gradient6-anchor: var(--component-notchbox-notch-gradient2-anchor);
50
- --component-notchbox-notch-gradient6-ref1: calc(var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) / 2);
51
- --component-notchbox-notch-gradient6-ref2: calc(100% - var(--component-notchbox-notch-radius-outer) * 2);
52
-
53
- --component-notchbox-notch-gradient7-anchor: var(--component-notchbox-notch-gradient3-anchor);
54
- --component-notchbox-notch-gradient7-ref1: calc(
55
- 100% - (var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2)
56
- );
57
- --component-notchbox-notch-gradient7-ref2: calc(100% - var(--component-notchbox-notch-radius-outer) * 2);
58
-
59
- --component-notchbox-notch-gradient8-x: calc(
60
- var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) / 2 +
61
- var(--component-notchbox-notch-percent-offset) - var(--smooth) * 2
62
- );
63
-
64
- --component-notchbox-notch-gradient9-x: calc(
65
- var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 - var(--component-notchbox-notch-percent-offset2) +
66
- var(--smooth) * 2
67
- );
68
- --component-notchbox-notch-gradient9-y: var(--component-notchbox-notch-gradient8-y);
69
-
70
- /** badge */
71
- --component-notchbox-badge-actualWidth: var(--component-notchbox-badge-width);
72
- --component-notchbox-badge-actualHeight: var(--component-notchbox-badge-height);
73
- --component-notchbox-badge-left: calc(var(--component-notchbox-notch-position) - var(--component-notchbox-badge-width) / 2);
18
+ @layer mods {
19
+ @extend %commons;
20
+
21
+ --component-notchbox-box-min-height: calc(var(--component-notchbox-notch-height) + var(--component-notchbox-box-padding) * 2);
22
+ --component-notchbox-notch-gradient1-ref1: 100%;
23
+ --component-notchbox-notch-gradient1-ref2: calc(100% - var(--component-notchbox-notch-height));
24
+
25
+ --component-notchbox-notch-gradient2-anchor: left;
26
+ --component-notchbox-notch-gradient2-ref1: calc(
27
+ var(--component-notchbox-notch-position) - (var(--component-notchbox-notch-width)) /
28
+ 2 - var(--component-notchbox-notch-radius-outer) - var(--smooth) * 2
29
+ );
30
+ --component-notchbox-notch-gradient2-ref2: 100%;
31
+
32
+ --component-notchbox-notch-gradient3-anchor: right;
33
+ --component-notchbox-notch-gradient3-ref1: calc(
34
+ 100% -
35
+ (
36
+ var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 +
37
+ var(--component-notchbox-notch-radius-outer) + var(--smooth) * 2
38
+ )
39
+ );
40
+ --component-notchbox-notch-gradient3-ref2: 100%;
41
+
42
+ --component-notchbox-notch-gradient4-x: calc(
43
+ var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) /
44
+ 2 - var(--component-notchbox-notch-radius-outer) - var(--smooth)
45
+ );
46
+
47
+ --component-notchbox-notch-gradient5-x: calc(
48
+ var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 + var(--component-notchbox-notch-radius-outer) +
49
+ var(--smooth)
50
+ );
51
+ --component-notchbox-notch-gradient5-y: var(--component-notchbox-notch-gradient4-y);
52
+
53
+ --component-notchbox-notch-gradient6-anchor: var(--component-notchbox-notch-gradient2-anchor);
54
+ --component-notchbox-notch-gradient6-ref1: calc(var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) / 2);
55
+ --component-notchbox-notch-gradient6-ref2: calc(100% - var(--component-notchbox-notch-radius-outer) * 2);
56
+
57
+ --component-notchbox-notch-gradient7-anchor: var(--component-notchbox-notch-gradient3-anchor);
58
+ --component-notchbox-notch-gradient7-ref1: calc(
59
+ 100% - (var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2)
60
+ );
61
+ --component-notchbox-notch-gradient7-ref2: calc(100% - var(--component-notchbox-notch-radius-outer) * 2);
62
+
63
+ --component-notchbox-notch-gradient8-x: calc(
64
+ var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) / 2 +
65
+ var(--component-notchbox-notch-percent-offset) - var(--smooth) * 2
66
+ );
67
+
68
+ --component-notchbox-notch-gradient9-x: calc(
69
+ var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 - var(--component-notchbox-notch-percent-offset2) +
70
+ var(--smooth) * 2
71
+ );
72
+ --component-notchbox-notch-gradient9-y: var(--component-notchbox-notch-gradient8-y);
73
+
74
+ // badge
75
+ --component-notchbox-badge-actualWidth: var(--component-notchbox-badge-width);
76
+ --component-notchbox-badge-actualHeight: var(--component-notchbox-badge-height);
77
+ --component-notchbox-badge-left: calc(var(--component-notchbox-notch-position) - var(--component-notchbox-badge-width) / 2);
78
+ }
74
79
  }
75
80
 
76
81
  %mod-horizontal {
77
- @extend %commons;
78
- --component-notchbox-box-min-height: calc(var(--component-notchbox-notch-width) + var(--component-notchbox-box-padding) * 2);
79
- --component-notchbox-notch-gradient1-ref1: calc(100% - var(--component-notchbox-notch-height));
80
- --component-notchbox-notch-gradient1-ref2: 100%;
81
-
82
- --component-notchbox-notch-gradient2-anchor: top;
83
- --component-notchbox-notch-gradient2-ref1: 100%;
84
- --component-notchbox-notch-gradient2-ref2: calc(
85
- var(--component-notchbox-notch-position) - (var(--component-notchbox-notch-width) / 2 + var(--component-notchbox-notch-radius-outer))
86
- );
87
-
88
- --component-notchbox-notch-gradient3-anchor: bottom;
89
- --component-notchbox-notch-gradient3-ref1: 100%;
90
- --component-notchbox-notch-gradient3-ref2: calc(
91
- 100% -
92
- (
93
- var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 +
94
- var(--component-notchbox-notch-radius-outer) + var(--smooth) * 2
95
- )
96
- );
97
-
98
- --component-notchbox-notch-gradient4-y: calc(
99
- var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) /
100
- 2 - var(--component-notchbox-notch-radius-outer) - var(--smooth)
101
- );
102
-
103
- --component-notchbox-notch-gradient5-x: var(--component-notchbox-notch-gradient4-x);
104
- --component-notchbox-notch-gradient5-y: calc(
105
- var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 + var(--component-notchbox-notch-radius-outer) +
106
- var(--smooth)
107
- );
108
-
109
- --component-notchbox-notch-gradient6-anchor: var(--component-notchbox-notch-gradient2-anchor);
110
- --component-notchbox-notch-gradient6-ref1: calc(100% - var(--component-notchbox-notch-radius-outer) * 2);
111
- --component-notchbox-notch-gradient6-ref2: calc(var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) / 2);
112
-
113
- --component-notchbox-notch-gradient7-anchor: var(--component-notchbox-notch-gradient3-anchor);
114
- --component-notchbox-notch-gradient7-ref1: calc(100% - var(--component-notchbox-notch-radius-outer) * 2);
115
- --component-notchbox-notch-gradient7-ref2: calc(
116
- 100% - (var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2)
117
- );
118
-
119
- --component-notchbox-notch-gradient8-y: calc(
120
- var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) / 2 +
121
- var(--component-notchbox-notch-percent-offset) - var(--smooth) * 2
122
- );
123
-
124
- --component-notchbox-notch-gradient9-x: var(--component-notchbox-notch-gradient8-x);
125
- --component-notchbox-notch-gradient9-y: calc(
126
- var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 - var(--component-notchbox-notch-percent-offset2) +
127
- var(--smooth) * 2
128
- );
129
-
130
- /** badge */
131
- --component-notchbox-badge-actualWidth: var(--component-notchbox-badge-height);
132
- --component-notchbox-badge-actualHeight: var(--component-notchbox-badge-width);
133
- --component-notchbox-badge-top: calc(var(--component-notchbox-notch-position) - var(--component-notchbox-badge-width) / 2);
82
+ @layer mods {
83
+ @extend %commons;
84
+
85
+ --component-notchbox-box-min-height: calc(var(--component-notchbox-notch-width) + var(--component-notchbox-box-padding) * 2);
86
+ --component-notchbox-notch-gradient1-ref1: calc(100% - var(--component-notchbox-notch-height));
87
+ --component-notchbox-notch-gradient1-ref2: 100%;
88
+
89
+ --component-notchbox-notch-gradient2-anchor: top;
90
+ --component-notchbox-notch-gradient2-ref1: 100%;
91
+ --component-notchbox-notch-gradient2-ref2: calc(
92
+ var(--component-notchbox-notch-position) - (var(--component-notchbox-notch-width) / 2 + var(--component-notchbox-notch-radius-outer))
93
+ );
94
+
95
+ --component-notchbox-notch-gradient3-anchor: bottom;
96
+ --component-notchbox-notch-gradient3-ref1: 100%;
97
+ --component-notchbox-notch-gradient3-ref2: calc(
98
+ 100% -
99
+ (
100
+ var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 +
101
+ var(--component-notchbox-notch-radius-outer) + var(--smooth) * 2
102
+ )
103
+ );
104
+
105
+ --component-notchbox-notch-gradient4-y: calc(
106
+ var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) /
107
+ 2 - var(--component-notchbox-notch-radius-outer) - var(--smooth)
108
+ );
109
+
110
+ --component-notchbox-notch-gradient5-x: var(--component-notchbox-notch-gradient4-x);
111
+ --component-notchbox-notch-gradient5-y: calc(
112
+ var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 + var(--component-notchbox-notch-radius-outer) +
113
+ var(--smooth)
114
+ );
115
+
116
+ --component-notchbox-notch-gradient6-anchor: var(--component-notchbox-notch-gradient2-anchor);
117
+ --component-notchbox-notch-gradient6-ref1: calc(100% - var(--component-notchbox-notch-radius-outer) * 2);
118
+ --component-notchbox-notch-gradient6-ref2: calc(var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) / 2);
119
+
120
+ --component-notchbox-notch-gradient7-anchor: var(--component-notchbox-notch-gradient3-anchor);
121
+ --component-notchbox-notch-gradient7-ref1: calc(100% - var(--component-notchbox-notch-radius-outer) * 2);
122
+ --component-notchbox-notch-gradient7-ref2: calc(
123
+ 100% - (var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2)
124
+ );
125
+
126
+ --component-notchbox-notch-gradient8-y: calc(
127
+ var(--component-notchbox-notch-position) - var(--component-notchbox-notch-width) / 2 +
128
+ var(--component-notchbox-notch-percent-offset) - var(--smooth) * 2
129
+ );
130
+
131
+ --component-notchbox-notch-gradient9-x: var(--component-notchbox-notch-gradient8-x);
132
+ --component-notchbox-notch-gradient9-y: calc(
133
+ var(--component-notchbox-notch-position) + var(--component-notchbox-notch-width) / 2 - var(--component-notchbox-notch-percent-offset2) +
134
+ var(--smooth) * 2
135
+ );
136
+
137
+ // badge
138
+ --component-notchbox-badge-actualWidth: var(--component-notchbox-badge-height);
139
+ --component-notchbox-badge-actualHeight: var(--component-notchbox-badge-width);
140
+ --component-notchbox-badge-top: calc(var(--component-notchbox-notch-position) - var(--component-notchbox-badge-width) / 2);
141
+ }
134
142
  }
135
143
 
136
144
  @mixin top {
137
145
  @extend %mod-vertical;
146
+
138
147
  --component-notchbox-notch-gradient1-anchor: bottom;
139
148
  --component-notchbox-notch-gradient4-y: calc(var(--component-notchbox-notch-radius-outer) + var(--smooth));
140
149
 
@@ -149,6 +158,7 @@
149
158
 
150
159
  @mixin bottom {
151
160
  @extend %mod-vertical;
161
+
152
162
  --component-notchbox-notch-gradient1-anchor: top;
153
163
  --component-notchbox-notch-gradient4-y: calc(100% - (var(--component-notchbox-notch-radius-outer) + var(--smooth)));
154
164
 
@@ -163,6 +173,7 @@
163
173
 
164
174
  @mixin left {
165
175
  @extend %mod-horizontal;
176
+
166
177
  --component-notchbox-notch-gradient1-anchor: right;
167
178
  --component-notchbox-notch-gradient4-x: calc(var(--component-notchbox-notch-radius-outer) + var(--smooth));
168
179
  --component-notchbox-notch-gradient8-anchor: 0 100%;
@@ -176,6 +187,7 @@
176
187
 
177
188
  @mixin right {
178
189
  @extend %mod-horizontal;
190
+
179
191
  --component-notchbox-notch-gradient1-anchor: left;
180
192
  --component-notchbox-notch-gradient4-x: calc(100% - (var(--component-notchbox-notch-radius-outer) + var(--smooth)));
181
193
  --component-notchbox-notch-gradient8-anchor: 100% 100%;
@@ -188,7 +200,7 @@
188
200
  --component-notchbox-box-padding-right: var(--component-notchbox-notch-padding);
189
201
  }
190
202
 
191
- /** pre configured with DS parameters **/
203
+ // pre configured with DS parameters
192
204
  @mixin notchTop {
193
205
  @include top;
194
206
  }