invensys-ng 21.0.1 → 21.3.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.
@@ -1,104 +1,104 @@
1
- @use "./color-variables.scss" as colors;
2
-
3
- // Mixin for consistent thin scrollbars across components
4
- @mixin thin-scrollbar() {
5
- // Webkit browsers (Chrome, Safari, Edge)
6
- &::-webkit-scrollbar {
7
- width: 6px;
8
- height: 6px;
9
- }
10
-
11
- &::-webkit-scrollbar-track {
12
- background: transparent;
13
- border-radius: 3px;
14
- }
15
-
16
- &::-webkit-scrollbar-thumb {
17
- background: rgba(0, 0, 0, 0.2);
18
- border-radius: 3px;
19
- transition: background 0.2s ease;
20
-
21
- &:hover {
22
- background: rgba(0, 0, 0, 0.35);
23
- }
24
-
25
- &:active {
26
- background: rgba(0, 0, 0, 0.5);
27
- }
28
- }
29
-
30
- &::-webkit-scrollbar-corner {
31
- background: transparent;
32
- }
33
-
34
- // Firefox
35
- scrollbar-width: thin;
36
- scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
37
-
38
- // Smooth scrolling
39
- scroll-behavior: smooth;
40
- }
41
-
42
- // Theme-aware scrollbar mixin
43
- @mixin themed-scrollbar() {
44
- @include thin-scrollbar();
45
-
46
- // Override default colors with theme colors
47
- &::-webkit-scrollbar-thumb {
48
- background: colors.$color-text-secondary;
49
- opacity: 0.4;
50
-
51
- &:hover {
52
- background: colors.$color-text-primary;
53
- opacity: 0.6;
54
- }
55
-
56
- &:active {
57
- background: colors.$color-primary;
58
- opacity: 0.7;
59
- }
60
- }
61
-
62
- // Firefox with theme colors
63
- scrollbar-color: colors.$color-text-secondary transparent;
64
- }
65
-
66
- // Scrollbar for dropdown/overlay components
67
- @mixin dropdown-scrollbar() {
68
- @include themed-scrollbar();
69
-
70
- // Additional styling for dropdown contexts
71
- &::-webkit-scrollbar {
72
- width: 6px; // Slightly wider for better visibility
73
- height: 6px;
74
- }
75
-
76
- &::-webkit-scrollbar-track {
77
- background: rgba(0, 0, 0, 0.05); // Subtle track background
78
- border-radius: 3px;
79
- margin: 2px 0; // Add margin to prevent cutoff
80
- }
81
-
82
- &::-webkit-scrollbar-thumb {
83
- border-radius: 3px;
84
- min-height: 20px; // Ensure minimum thumb size
85
-
86
- // More visible colors for dropdowns
87
- background: colors.$color-text-secondary;
88
- opacity: 0.6;
89
-
90
- &:hover {
91
- background: colors.$color-text-primary;
92
- opacity: 0.8;
93
- }
94
-
95
- &:active {
96
- background: colors.$color-primary;
97
- opacity: 0.9;
98
- }
99
- }
100
-
101
- // Better Firefox scrollbar visibility
102
- scrollbar-width: thin;
103
- scrollbar-color: colors.$color-text-secondary rgba(0, 0, 0, 0.05);
104
- }
1
+ @use "./color-variables.scss" as colors;
2
+
3
+ // Mixin for consistent thin scrollbars across components
4
+ @mixin thin-scrollbar() {
5
+ // Webkit browsers (Chrome, Safari, Edge)
6
+ &::-webkit-scrollbar {
7
+ width: 6px;
8
+ height: 6px;
9
+ }
10
+
11
+ &::-webkit-scrollbar-track {
12
+ background: transparent;
13
+ border-radius: 3px;
14
+ }
15
+
16
+ &::-webkit-scrollbar-thumb {
17
+ background: rgba(0, 0, 0, 0.2);
18
+ border-radius: 3px;
19
+ transition: background 0.2s ease;
20
+
21
+ &:hover {
22
+ background: rgba(0, 0, 0, 0.35);
23
+ }
24
+
25
+ &:active {
26
+ background: rgba(0, 0, 0, 0.5);
27
+ }
28
+ }
29
+
30
+ &::-webkit-scrollbar-corner {
31
+ background: transparent;
32
+ }
33
+
34
+ // Firefox
35
+ scrollbar-width: thin;
36
+ scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
37
+
38
+ // Smooth scrolling
39
+ scroll-behavior: smooth;
40
+ }
41
+
42
+ // Theme-aware scrollbar mixin
43
+ @mixin themed-scrollbar() {
44
+ @include thin-scrollbar();
45
+
46
+ // Override default colors with theme colors
47
+ &::-webkit-scrollbar-thumb {
48
+ background: colors.$color-text-secondary;
49
+ opacity: 0.4;
50
+
51
+ &:hover {
52
+ background: colors.$color-text-primary;
53
+ opacity: 0.6;
54
+ }
55
+
56
+ &:active {
57
+ background: colors.$color-primary;
58
+ opacity: 0.7;
59
+ }
60
+ }
61
+
62
+ // Firefox with theme colors
63
+ scrollbar-color: colors.$color-text-secondary transparent;
64
+ }
65
+
66
+ // Scrollbar for dropdown/overlay components
67
+ @mixin dropdown-scrollbar() {
68
+ @include themed-scrollbar();
69
+
70
+ // Additional styling for dropdown contexts
71
+ &::-webkit-scrollbar {
72
+ width: 6px; // Slightly wider for better visibility
73
+ height: 6px;
74
+ }
75
+
76
+ &::-webkit-scrollbar-track {
77
+ background: rgba(0, 0, 0, 0.05); // Subtle track background
78
+ border-radius: 3px;
79
+ margin: 2px 0; // Add margin to prevent cutoff
80
+ }
81
+
82
+ &::-webkit-scrollbar-thumb {
83
+ border-radius: 3px;
84
+ min-height: 20px; // Ensure minimum thumb size
85
+
86
+ // More visible colors for dropdowns
87
+ background: colors.$color-text-secondary;
88
+ opacity: 0.6;
89
+
90
+ &:hover {
91
+ background: colors.$color-text-primary;
92
+ opacity: 0.8;
93
+ }
94
+
95
+ &:active {
96
+ background: colors.$color-primary;
97
+ opacity: 0.9;
98
+ }
99
+ }
100
+
101
+ // Better Firefox scrollbar visibility
102
+ scrollbar-width: thin;
103
+ scrollbar-color: colors.$color-text-secondary rgba(0, 0, 0, 0.05);
104
+ }