invensys-ng 21.0.1 → 21.3.3

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,103 @@
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: var(--scrollbar-size, 6px);
8
+ height: var(--scrollbar-size, 6px);
9
+ }
10
+
11
+ &::-webkit-scrollbar-track {
12
+ background: var(--scrollbar-track, transparent);
13
+ border-radius: var(--scrollbar-radius, 3px);
14
+ }
15
+
16
+ &::-webkit-scrollbar-thumb {
17
+ background: rgba(0, 0, 0, 0.2);
18
+ border-radius: var(--scrollbar-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: var(--scrollbar-thumb, #{colors.$color-text-secondary});
49
+
50
+ &:hover {
51
+ background: var(--scrollbar-thumb-hover, #{colors.$color-text-primary});
52
+ }
53
+
54
+ &:active {
55
+ background: var(--scrollbar-thumb-active, #{colors.$color-primary});
56
+ }
57
+ }
58
+
59
+ // Firefox with theme colors
60
+ scrollbar-color: var(--scrollbar-thumb, #{colors.$color-text-secondary})
61
+ var(--scrollbar-track, transparent);
62
+ }
63
+
64
+ // Scrollbar for dropdown/overlay components
65
+ @mixin dropdown-scrollbar() {
66
+ @include themed-scrollbar();
67
+
68
+ // Additional styling for dropdown contexts
69
+ &::-webkit-scrollbar {
70
+ width: var(--scrollbar-size, 6px); // Slightly wider for better visibility
71
+ height: var(--scrollbar-size, 6px);
72
+ }
73
+
74
+ &::-webkit-scrollbar-track {
75
+ background: var(
76
+ --scrollbar-track-dropdown,
77
+ rgba(0, 0, 0, 0.05)
78
+ ); // Subtle track background
79
+ border-radius: var(--scrollbar-radius, 3px);
80
+ margin: 2px 0; // Add margin to prevent cutoff
81
+ }
82
+
83
+ &::-webkit-scrollbar-thumb {
84
+ border-radius: var(--scrollbar-radius, 3px);
85
+ min-height: 20px; // Ensure minimum thumb size
86
+
87
+ // More visible colors for dropdowns
88
+ background: var(--scrollbar-thumb, #{colors.$color-text-secondary});
89
+
90
+ &:hover {
91
+ background: var(--scrollbar-thumb-hover, #{colors.$color-text-primary});
92
+ }
93
+
94
+ &:active {
95
+ background: var(--scrollbar-thumb-active, #{colors.$color-primary});
96
+ }
97
+ }
98
+
99
+ // Better Firefox scrollbar visibility
100
+ scrollbar-width: thin;
101
+ scrollbar-color: var(--scrollbar-thumb, #{colors.$color-text-secondary})
102
+ var(--scrollbar-track-dropdown, rgba(0, 0, 0, 0.05));
103
+ }
@@ -0,0 +1,12 @@
1
+ @mixin define-scrollbar-theme() {
2
+ .light,
3
+ .dark {
4
+ --scrollbar-size: 6px;
5
+ --scrollbar-radius: 3px;
6
+ --scrollbar-track: transparent;
7
+ --scrollbar-track-dropdown: rgba(0, 0, 0, 0.05);
8
+ --scrollbar-thumb: var(--color-text-secondary);
9
+ --scrollbar-thumb-hover: var(--color-text-primary);
10
+ --scrollbar-thumb-active: var(--color-primary);
11
+ }
12
+ }
@@ -0,0 +1,16 @@
1
+ @use "./colors.theme.scss" as colors-theme;
2
+ @use "./scrollbar.theme.scss" as scrollbar-theme;
3
+ @use "./typography.theme.scss" as typography-theme;
4
+
5
+ @mixin define-theme($typography: true, $scrollbar: true) {
6
+ @include colors-theme.define-color-palette(light);
7
+ @include colors-theme.define-color-palette(dark);
8
+
9
+ @if $scrollbar {
10
+ @include scrollbar-theme.define-scrollbar-theme();
11
+ }
12
+
13
+ @if $typography {
14
+ @include typography-theme.define-typography();
15
+ }
16
+ }
@@ -0,0 +1,73 @@
1
+ @use "./_variables" as *;
2
+ @use "./color-variables.scss" as colors;
3
+
4
+ @mixin define-typography() {
5
+ h1,
6
+ h2,
7
+ h3,
8
+ h4,
9
+ h5,
10
+ h6 {
11
+ margin: 24px 0 16px;
12
+ font-family: inherit;
13
+ font-weight: 500;
14
+ line-height: 1.2;
15
+ color: colors.$color-text-primary;
16
+
17
+ &:first-child {
18
+ margin-top: 0;
19
+ }
20
+ }
21
+
22
+ h1 {
23
+ font-size: 32px;
24
+ }
25
+
26
+ h2 {
27
+ font-size: 28px;
28
+ }
29
+
30
+ h3 {
31
+ font-size: 24px;
32
+ }
33
+
34
+ h4 {
35
+ font-size: 20px;
36
+ }
37
+
38
+ h5 {
39
+ font-size: 16px;
40
+ }
41
+
42
+ h6 {
43
+ font-size: 14px;
44
+ }
45
+
46
+ mark {
47
+ background: colors.$color-warning;
48
+ color: colors.$color-contrast;
49
+ padding: 4px 6.4px;
50
+ font-family: monospace;
51
+ }
52
+
53
+ blockquote {
54
+ margin: 16px 0;
55
+ padding: 0 32px;
56
+ border-left: 4px solid colors.$color-text-tertiary;
57
+ }
58
+
59
+ hr {
60
+ border-top: solid colors.$color-surface-border;
61
+ border-width: 1px 0 0;
62
+ margin: 16px 0;
63
+ }
64
+
65
+ p {
66
+ margin: 0 0 16px;
67
+ line-height: 1.5;
68
+
69
+ &:last-child {
70
+ margin-bottom: 0;
71
+ }
72
+ }
73
+ }