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.
- package/README.md +45 -13
- package/fesm2022/invensys-ng.mjs +102 -102
- package/fesm2022/invensys-ng.mjs.map +1 -1
- package/package.json +4 -3
- package/src/lib/themes/_variables.scss +8 -8
- package/src/lib/themes/color-palette.scss +158 -158
- package/src/lib/themes/color-variables.scss +38 -38
- package/src/lib/themes/colors.theme.scss +87 -87
- package/src/lib/themes/get-color.scss +15 -15
- package/src/lib/themes/scrollbar-mixins.scss +103 -104
- package/src/lib/themes/scrollbar.theme.scss +12 -0
- package/src/lib/themes/theme.scss +16 -0
- package/src/lib/themes/typography.theme.scss +73 -0
|
@@ -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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
&:hover {
|
|
91
|
-
background: colors.$color-text-primary;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
+
}
|