invensys-ng 21.3.2 → 21.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "invensys-ng",
3
- "version": "21.3.2",
3
+ "version": "21.3.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ulbrichFrauendorf/invensys-ng"
@@ -0,0 +1,9 @@
1
+ @use "./color-variables.scss" as vars;
2
+
3
+ @mixin define-body() {
4
+ body {
5
+ font-family: "Roboto", sans-serif;
6
+ background-color: vars.$color-surface-ground;
7
+ color: vars.$color-text-primary;
8
+ }
9
+ }
@@ -4,18 +4,18 @@
4
4
  @mixin thin-scrollbar() {
5
5
  // Webkit browsers (Chrome, Safari, Edge)
6
6
  &::-webkit-scrollbar {
7
- width: 6px;
8
- height: 6px;
7
+ width: var(--scrollbar-size, 6px);
8
+ height: var(--scrollbar-size, 6px);
9
9
  }
10
10
 
11
11
  &::-webkit-scrollbar-track {
12
- background: transparent;
13
- border-radius: 3px;
12
+ background: var(--scrollbar-track, transparent);
13
+ border-radius: var(--scrollbar-radius, 3px);
14
14
  }
15
15
 
16
16
  &::-webkit-scrollbar-thumb {
17
17
  background: rgba(0, 0, 0, 0.2);
18
- border-radius: 3px;
18
+ border-radius: var(--scrollbar-radius, 3px);
19
19
  transition: background 0.2s ease;
20
20
 
21
21
  &:hover {
@@ -45,22 +45,20 @@
45
45
 
46
46
  // Override default colors with theme colors
47
47
  &::-webkit-scrollbar-thumb {
48
- background: colors.$color-text-secondary;
49
- opacity: 0.4;
48
+ background: var(--scrollbar-thumb, #{colors.$color-text-secondary});
50
49
 
51
50
  &:hover {
52
- background: colors.$color-text-primary;
53
- opacity: 0.6;
51
+ background: var(--scrollbar-thumb-hover, #{colors.$color-text-primary});
54
52
  }
55
53
 
56
54
  &:active {
57
- background: colors.$color-primary;
58
- opacity: 0.7;
55
+ background: var(--scrollbar-thumb-active, #{colors.$color-primary});
59
56
  }
60
57
  }
61
58
 
62
59
  // Firefox with theme colors
63
- scrollbar-color: colors.$color-text-secondary transparent;
60
+ scrollbar-color: var(--scrollbar-thumb, #{colors.$color-text-secondary})
61
+ var(--scrollbar-track, transparent);
64
62
  }
65
63
 
66
64
  // Scrollbar for dropdown/overlay components
@@ -69,36 +67,37 @@
69
67
 
70
68
  // Additional styling for dropdown contexts
71
69
  &::-webkit-scrollbar {
72
- width: 6px; // Slightly wider for better visibility
73
- height: 6px;
70
+ width: var(--scrollbar-size, 6px); // Slightly wider for better visibility
71
+ height: var(--scrollbar-size, 6px);
74
72
  }
75
73
 
76
74
  &::-webkit-scrollbar-track {
77
- background: rgba(0, 0, 0, 0.05); // Subtle track background
78
- border-radius: 3px;
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);
79
80
  margin: 2px 0; // Add margin to prevent cutoff
80
81
  }
81
82
 
82
83
  &::-webkit-scrollbar-thumb {
83
- border-radius: 3px;
84
+ border-radius: var(--scrollbar-radius, 3px);
84
85
  min-height: 20px; // Ensure minimum thumb size
85
86
 
86
87
  // More visible colors for dropdowns
87
- background: colors.$color-text-secondary;
88
- opacity: 0.6;
88
+ background: var(--scrollbar-thumb, #{colors.$color-text-secondary});
89
89
 
90
90
  &:hover {
91
- background: colors.$color-text-primary;
92
- opacity: 0.8;
91
+ background: var(--scrollbar-thumb-hover, #{colors.$color-text-primary});
93
92
  }
94
93
 
95
94
  &:active {
96
- background: colors.$color-primary;
97
- opacity: 0.9;
95
+ background: var(--scrollbar-thumb-active, #{colors.$color-primary});
98
96
  }
99
97
  }
100
98
 
101
99
  // Better Firefox scrollbar visibility
102
100
  scrollbar-width: thin;
103
- scrollbar-color: colors.$color-text-secondary rgba(0, 0, 0, 0.05);
101
+ scrollbar-color: var(--scrollbar-thumb, #{colors.$color-text-secondary})
102
+ var(--scrollbar-track-dropdown, rgba(0, 0, 0, 0.05));
104
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,21 @@
1
+ @use "./colors.theme.scss" as colors-theme;
2
+ @use "./body.theme.scss" as body-theme;
3
+ @use "./scrollbar.theme.scss" as scrollbar-theme;
4
+ @use "./typography.theme.scss" as typography-theme;
5
+
6
+ @mixin define-theme($body: true, $typography: true, $scrollbar: true) {
7
+ @include colors-theme.define-color-palette(light);
8
+ @include colors-theme.define-color-palette(dark);
9
+
10
+ @if $body {
11
+ @include body-theme.define-body();
12
+ }
13
+
14
+ @if $scrollbar {
15
+ @include scrollbar-theme.define-scrollbar-theme();
16
+ }
17
+
18
+ @if $typography {
19
+ @include typography-theme.define-typography();
20
+ }
21
+ }
@@ -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
+ }