@elderbyte/ngx-starter 19.1.3 → 19.1.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 +1 -1
- package/theming/abstracts/_elder-design-tokens.scss +2 -1
- package/theming/base/_elder-common-base.scss +19 -0
- package/theming/base/_elder-fixes-base.scss +6 -0
- package/theming/components/_elder-scrollbar-theme.scss +1 -14
- package/theming/utilities/_elder-common-utils.scss +10 -0
package/package.json
CHANGED
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
--elder-border-radius-sm: 4px; // typical small border radius, inspired by mat 2
|
|
42
42
|
--elder-border-light: 1px solid var(--md-sys-color-outline-variant);
|
|
43
43
|
--elder-box-shadow-default: var(--mat-app-elevation-shadow-level-8);
|
|
44
|
-
--elder-scrollbar-width: 8px;
|
|
44
|
+
--elder-scrollbar-width-default: 8px;
|
|
45
|
+
--elder-scrollbar-width-lg: #{map.get(config.$sizes, lg)};
|
|
45
46
|
--elder-lightened-transparent-bg: rgba(255, 255, 255, 0.15);
|
|
46
47
|
--elder-main-nav-bg: var(--md-sys-color-surface-container-lowest);
|
|
47
48
|
--elder-nav-item-height: 54px;
|
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
|
|
5
5
|
@mixin elder-common-base($theme) {
|
|
6
|
+
/***************************************************************************
|
|
7
|
+
* *
|
|
8
|
+
* Scrollbar styling (webkit) *
|
|
9
|
+
* *
|
|
10
|
+
**************************************************************************/
|
|
11
|
+
|
|
12
|
+
::-webkit-scrollbar {
|
|
13
|
+
width: var(--elder-scrollbar-width-default);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
::-webkit-scrollbar-thumb {
|
|
17
|
+
background: var(--md-sys-color-outline-variant);
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
::-webkit-scrollbar-thumb:hover {
|
|
22
|
+
background: var(--md-sys-color-outline);
|
|
23
|
+
}
|
|
24
|
+
|
|
6
25
|
/***************************************************************************
|
|
7
26
|
* *
|
|
8
27
|
* Angular Material Extensions (Optional) *
|
|
@@ -88,6 +88,12 @@
|
|
|
88
88
|
--mat-badge-background-color: var(--md-sys-color-error);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
// disable button color grayed out
|
|
92
|
+
.mat-mdc-icon-button[disabled],
|
|
93
|
+
.mat-mdc-icon-button.mat-mdc-button-disabled {
|
|
94
|
+
opacity: 0.5;
|
|
95
|
+
};
|
|
96
|
+
|
|
91
97
|
/**************************************************************************
|
|
92
98
|
Card fixes
|
|
93
99
|
**************************************************************************/
|
|
@@ -5,19 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
@mixin theme() {
|
|
7
7
|
// scrollbar styling
|
|
8
|
-
::-webkit-scrollbar {
|
|
9
|
-
width: var(--elder-scrollbar-width);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
::-webkit-scrollbar-thumb {
|
|
13
|
-
background: var(--md-sys-color-outline-variant);
|
|
14
|
-
border-radius: 5px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
::-webkit-scrollbar-thumb:hover {
|
|
18
|
-
background: var(--md-sys-color-outline);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
8
|
.scrollbar-xs {
|
|
22
9
|
@include scrollbar-width(map.get(config.$sizes, xs));
|
|
23
10
|
}
|
|
@@ -39,7 +26,7 @@
|
|
|
39
26
|
}
|
|
40
27
|
|
|
41
28
|
@mixin scrollbar-width($width) {
|
|
42
|
-
|
|
29
|
+
::-webkit-scrollbar {
|
|
43
30
|
width: $width;
|
|
44
31
|
}
|
|
45
32
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../abstracts/elder-scss-variables' as config;
|
|
3
|
+
|
|
1
4
|
@mixin elder-common-utils() {
|
|
2
5
|
.border-none {
|
|
3
6
|
border: none;
|
|
@@ -62,4 +65,11 @@
|
|
|
62
65
|
.outlined {
|
|
63
66
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
64
67
|
}
|
|
68
|
+
|
|
69
|
+
// large scrollbar fix for webkit browsers
|
|
70
|
+
.scrollbar-lg {
|
|
71
|
+
::-webkit-scrollbar {
|
|
72
|
+
width: var(--elder-scrollbar-width-lg) !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
65
75
|
}
|