@alfalab/core-components-vars 8.1.2 → 9.1.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/mixins.css CHANGED
@@ -2,3 +2,71 @@
2
2
  outline: 2px solid var(--focus-color);
3
3
  outline-offset: 2px;
4
4
  }
5
+
6
+ @define-mixin custom-scrollbar {
7
+ overflow: auto;
8
+ overflow: overlay;
9
+ cursor: auto;
10
+
11
+ &::-webkit-scrollbar {
12
+ width: 12px;
13
+ }
14
+
15
+ &::-webkit-scrollbar-track {
16
+ background-color: transparent;
17
+ }
18
+
19
+ &::-webkit-scrollbar-track-piece {
20
+ background-color: transparent;
21
+ }
22
+
23
+ &::-webkit-scrollbar-thumb {
24
+ background-color: var(--color-light-graphic-primary-alpha-30);
25
+ border-radius: var(--border-radius-circle) / 6px;
26
+ border-color: transparent;
27
+ border-style: solid;
28
+ border-width: 4px;
29
+ background-clip: padding-box;
30
+ min-height: 40px;
31
+ }
32
+
33
+ &::-webkit-scrollbar-thumb:hover {
34
+ border-radius: var(--border-radius-circle) / 7px;
35
+ border-width: 4px 3px;
36
+ }
37
+
38
+ &::-webkit-scrollbar-thumb:active {
39
+ background-color: var(--color-light-graphic-primary-alpha-60);
40
+ }
41
+
42
+ &::-webkit-resizer {
43
+ background: url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="%2386868a" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.64645 0.646447C8.84171 0.841709 8.84171 1.15829 8.64645 1.35355L1.35355 8.64645C1.15829 8.84171 0.841709 8.84171 0.646447 8.64645C0.451184 8.45118 0.451184 8.1346 0.646447 7.93934L7.93934 0.646447C8.1346 0.451184 8.45118 0.451184 8.64645 0.646447ZM8.64645 3.64645C8.84171 3.84171 8.84171 4.15829 8.64645 4.35355L4.35355 8.64645C4.15829 8.84171 3.84171 8.84171 3.64645 8.64645C3.45118 8.45118 3.45118 8.1346 3.64645 7.93934L7.93934 3.64645C8.1346 3.45118 8.45118 3.45118 8.64645 3.64645Z" /></svg>')
44
+ no-repeat right bottom;
45
+ }
46
+
47
+ &::-webkit-scrollbar-button,
48
+ &::-webkit-scrollbar-corner {
49
+ display: none;
50
+ }
51
+ }
52
+
53
+ @define-mixin bg-class-list {
54
+ @each $backgroundColorBg in accent, info, attention-muted, positive-muted, negative-muted,
55
+ primary, primary-inverted, secondary, secondary-inverted, tertiary, tertiary-inverted,
56
+ quaternary, quaternary-inverted
57
+ {
58
+ .background-$(backgroundColorBg) {
59
+ background-color: var(--color-light-bg-$(backgroundColorBg));
60
+ }
61
+ }
62
+
63
+ @each $backgroundColor in specialbg-component, specialbg-component-inverted,
64
+ specialbg-primary-grouped, specialbg-secondary-grouped, specialbg-tertiary-grouped,
65
+ specialbg-secondary-transparent, specialbg-secondary-transparent-inverted,
66
+ specialbg-tertiary-transparent, specialbg-tertiary-transparent-inverted
67
+ {
68
+ .background-$(backgroundColor) {
69
+ background-color: var(--color-light-$(backgroundColor));
70
+ }
71
+ }
72
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-vars",
3
- "version": "8.1.2",
3
+ "version": "9.1.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",