@dereekb/dbx-web 13.4.2 → 13.5.0
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/_index.scss +6 -1
- package/fesm2022/dereekb-dbx-web-calendar.mjs +10 -11
- package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +76 -76
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-table.mjs +100 -100
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +1701 -1585
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/action/_action.scss +0 -1
- package/lib/action/snackbar/_snackbar.scss +0 -19
- package/lib/button/_button.scss +0 -18
- package/lib/button/progress/bar.button.component.scss +6 -0
- package/lib/error/_error.scss +0 -18
- package/lib/extension/_extension.scss +0 -31
- package/lib/extension/calendar/_calendar.scss +25 -74
- package/lib/extension/calendar/style/month/calendar-month-view.scss +1 -1
- package/lib/extension/help/_help.scss +0 -20
- package/lib/extension/table/_table.scss +0 -19
- package/lib/extension/zip/_zip.scss +5 -20
- package/lib/interaction/_interaction.scss +0 -8
- package/lib/interaction/dialog/_dialog.scss +4 -19
- package/lib/interaction/filter/_filter.scss +0 -19
- package/lib/interaction/iframe/_iframe.scss +0 -19
- package/lib/interaction/popover/_popover.scss +7 -17
- package/lib/interaction/popup/_popup.scss +2 -26
- package/lib/interaction/prompt/_prompt.scss +0 -19
- package/lib/interaction/style/_style.scss +4 -35
- package/lib/interaction/upload/_upload.scss +4 -45
- package/lib/layout/_layout.scss +0 -14
- package/lib/layout/avatar/_avatar.scss +2 -29
- package/lib/layout/bar/_bar.scss +10 -43
- package/lib/layout/block/_block.scss +0 -19
- package/lib/layout/card/_card.scss +0 -19
- package/lib/layout/column/_column.scss +2 -17
- package/lib/layout/content/_content.scss +7 -55
- package/lib/layout/flag/_flag.scss +0 -19
- package/lib/layout/flex/_flex.scss +0 -19
- package/lib/layout/item/_item.scss +0 -19
- package/lib/layout/list/_list.scss +3 -26
- package/lib/layout/section/_section.scss +7 -17
- package/lib/layout/step/_step.scss +0 -19
- package/lib/layout/style/_style.scss +1 -18
- package/lib/layout/text/_text.scss +8 -46
- package/lib/loading/_loading.scss +0 -19
- package/lib/router/_router.scss +0 -4
- package/lib/router/layout/anchor/_anchor.scss +0 -19
- package/lib/router/layout/anchorlist/_anchorlist.scss +4 -32
- package/lib/router/layout/navbar/_navbar.scss +0 -18
- package/lib/router/layout/sidenav/_sidenav.scss +22 -102
- package/lib/style/_all-typography.scss +0 -16
- package/lib/style/_m2-visual-compat.scss +120 -0
- package/lib/style/_root-variables.scss +37 -47
- package/lib/style/_theming.scss +1 -202
- package/lib/style/_variables.scss +35 -2
- package/package.json +13 -13
- package/types/dereekb-dbx-web-table.d.ts +6 -6
- package/types/dereekb-dbx-web.d.ts +109 -21
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
@use 'sass:color';
|
|
4
1
|
@use '../../style/theming';
|
|
5
2
|
|
|
6
3
|
// Sections
|
|
@@ -26,7 +23,7 @@
|
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
.dbx-file-upload-area-square {
|
|
29
|
-
border-radius:
|
|
26
|
+
border-radius: var(--dbx-file-upload-square-container-shape, var(--mat-sys-corner-medium));
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
.dbx-file-upload-area-with-hint .dbx-file-upload-area-content {
|
|
@@ -41,31 +38,9 @@
|
|
|
41
38
|
text-align: center;
|
|
42
39
|
user-select: none;
|
|
43
40
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@mixin color($theme-config) {
|
|
47
|
-
$color-config: theming.m2-get-color-config($theme-config);
|
|
48
|
-
|
|
49
|
-
$primary: map.get($color-config, 'primary');
|
|
50
|
-
$background: map.get($color-config, 'background');
|
|
51
|
-
$foreground: map.get($color-config, 'foreground');
|
|
52
|
-
$cdk-background-color: theming.m2-get-color-from-palette($background, 'background');
|
|
53
|
-
$cdk-text-color: theming.m2-get-color-from-palette($foreground, 'text');
|
|
54
|
-
|
|
55
|
-
$cdk-border-color: color.adjust(
|
|
56
|
-
$color: $cdk-text-color,
|
|
57
|
-
$alpha: -0.5
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
$cdk-highlight-background-color: color.adjust(
|
|
61
|
-
$color: $cdk-text-color,
|
|
62
|
-
$alpha: -0.7
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
$primary-color: theming.m2-get-color-from-palette($primary, 500);
|
|
66
41
|
|
|
67
42
|
.dbx-file-upload-area-content {
|
|
68
|
-
border-color:
|
|
43
|
+
border-color: color-mix(in srgb, var(--mat-sys-on-surface) 50%, transparent);
|
|
69
44
|
}
|
|
70
45
|
|
|
71
46
|
.dbx-file-upload-area-drag-over .dbx-file-upload-area-content {
|
|
@@ -73,28 +48,12 @@
|
|
|
73
48
|
|
|
74
49
|
@keyframes dbx-file-upload-area-fade {
|
|
75
50
|
to {
|
|
76
|
-
border-color:
|
|
77
|
-
background-color:
|
|
51
|
+
border-color: var(--dbx-primary-color);
|
|
52
|
+
background-color: color-mix(in srgb, var(--mat-sys-on-surface) 30%, transparent);
|
|
78
53
|
}
|
|
79
54
|
}
|
|
80
55
|
}
|
|
81
56
|
}
|
|
82
57
|
|
|
83
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
84
|
-
}
|
|
85
|
-
|
|
86
58
|
@mixin theme($theme-config) {
|
|
87
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-interaction-upload') {
|
|
88
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
89
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
90
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
91
|
-
|
|
92
|
-
@if $color !=null {
|
|
93
|
-
@include color($theme-config);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@if $typography !=null {
|
|
97
|
-
@include typography($theme-config);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
59
|
}
|
package/lib/layout/_layout.scss
CHANGED
|
@@ -31,20 +31,6 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
@mixin all-layout-typography($theme-config) {
|
|
34
|
-
@include avatar.typography($theme-config);
|
|
35
|
-
@include bar.typography($theme-config);
|
|
36
|
-
@include block.typography($theme-config);
|
|
37
|
-
@include card.typography($theme-config);
|
|
38
|
-
@include column.typography($theme-config);
|
|
39
|
-
@include content.typography($theme-config);
|
|
40
|
-
@include flag.typography($theme-config);
|
|
41
|
-
@include flex.typography($theme-config);
|
|
42
|
-
@include item.typography($theme-config);
|
|
43
|
-
@include list.typography($theme-config);
|
|
44
|
-
@include section.typography($theme-config);
|
|
45
|
-
@include step.typography($theme-config);
|
|
46
|
-
@include style.typography($theme-config);
|
|
47
|
-
@include text.typography($theme-config);
|
|
48
34
|
}
|
|
49
35
|
|
|
50
36
|
@mixin all-layout-theme($theme-config) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:color';
|
|
3
1
|
@use '../../style/theming';
|
|
4
2
|
|
|
5
3
|
// MARK: Variables
|
|
@@ -69,38 +67,13 @@ $icon-to-avatar-size-ratio: 0.65;
|
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
.dbx-avatar-view-square {
|
|
72
|
-
border-radius:
|
|
70
|
+
border-radius: var(--dbx-avatar-square-container-shape, var(--mat-sys-corner-medium));
|
|
73
71
|
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@mixin color($theme-config) {
|
|
77
|
-
$color-config: theming.m2-get-color-config($theme-config);
|
|
78
|
-
$background: map.get($color-config, 'background');
|
|
79
|
-
$primary: map.get($color-config, 'primary');
|
|
80
|
-
$accent: map.get($color-config, 'accent');
|
|
81
|
-
|
|
82
|
-
$background-color: theming.m2-get-color-from-palette($background, 'hover');
|
|
83
72
|
|
|
84
73
|
.dbx-avatar-view {
|
|
85
|
-
background-color:
|
|
74
|
+
background-color: color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent);
|
|
86
75
|
}
|
|
87
76
|
}
|
|
88
77
|
|
|
89
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
90
|
-
}
|
|
91
|
-
|
|
92
78
|
@mixin theme($theme-config) {
|
|
93
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-avatar') {
|
|
94
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
95
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
96
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
97
|
-
|
|
98
|
-
@if $color !=null {
|
|
99
|
-
@include color($theme-config);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@if $typography !=null {
|
|
103
|
-
@include typography($theme-config);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
79
|
}
|
package/lib/layout/bar/_bar.scss
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:color';
|
|
3
1
|
@use '../../style/theming';
|
|
4
2
|
|
|
5
3
|
// MARK: Variables
|
|
@@ -20,6 +18,16 @@ $bar-fixed-height: 40px;
|
|
|
20
18
|
display: flex;
|
|
21
19
|
align-items: center;
|
|
22
20
|
justify-content: center;
|
|
21
|
+
font-size: var(--mat-sys-body-small-size);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dbx-bar {
|
|
25
|
+
color: var(--mat-sys-on-surface);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dbx-bar-background {
|
|
29
|
+
background: var(--mat-sys-surface-container);
|
|
30
|
+
color: var(--mat-sys-on-surface);
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
.dbx-bar-fixed-height {
|
|
@@ -36,46 +44,5 @@ $bar-fixed-height: 40px;
|
|
|
36
44
|
}
|
|
37
45
|
}
|
|
38
46
|
|
|
39
|
-
@mixin color($theme-config) {
|
|
40
|
-
$color-config: theming.m2-get-color-config($theme-config);
|
|
41
|
-
$background: map.get($color-config, 'background');
|
|
42
|
-
$primary: map.get($color-config, 'primary');
|
|
43
|
-
$accent: map.get($color-config, 'accent');
|
|
44
|
-
|
|
45
|
-
$dbx-bar-bg-color: theming.m2-get-color-from-palette($background, 'app-bar');
|
|
46
|
-
$dbx-bar-color: theming.m2-get-color-from-palette($background, 'contrast');
|
|
47
|
-
|
|
48
|
-
.dbx-pagebar .mat-toolbar {
|
|
49
|
-
// todo?
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.dbx-bar,
|
|
53
|
-
.dbx-bar-background {
|
|
54
|
-
background: $dbx-bar-bg-color;
|
|
55
|
-
color: $dbx-bar-color;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
60
|
-
$typography-config: theming.m2-get-typography-config($theme-config-or-typography-config);
|
|
61
|
-
|
|
62
|
-
.dbx-bar {
|
|
63
|
-
font-size: theming.m2-font-size($typography-config, 'caption');
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
47
|
@mixin theme($theme-config) {
|
|
68
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-bar') {
|
|
69
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
70
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
71
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
72
|
-
|
|
73
|
-
@if $color !=null {
|
|
74
|
-
@include color($theme-config);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@if $typography !=null {
|
|
78
|
-
@include typography($theme-config);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
48
|
}
|
|
@@ -20,24 +20,5 @@ $two-block-top-height-var: --dbx-two-block-top-height;
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@mixin color($theme-config) {
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
27
|
-
}
|
|
28
|
-
|
|
29
23
|
@mixin theme($theme-config) {
|
|
30
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-block') {
|
|
31
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
32
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
33
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
34
|
-
|
|
35
|
-
@if $color !=null {
|
|
36
|
-
@include color($theme-config);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@if $typography !=null {
|
|
40
|
-
@include typography($theme-config);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
24
|
}
|
|
@@ -6,24 +6,5 @@
|
|
|
6
6
|
@mixin core() {
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
@mixin theme($theme-config) {
|
|
16
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-card') {
|
|
17
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
18
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
19
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
20
|
-
|
|
21
|
-
@if $color !=null {
|
|
22
|
-
@include color($theme-config);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@if $typography !=null {
|
|
26
|
-
@include typography($theme-config);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
10
|
}
|
|
@@ -118,7 +118,7 @@ $two-columns-right-padding-size: 6px;
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
@mixin
|
|
121
|
+
@mixin responsive($theme-config) {
|
|
122
122
|
.dbx-two-column {
|
|
123
123
|
@include theming.if-small-screen($theme-config) {
|
|
124
124
|
.left-column {
|
|
@@ -142,21 +142,6 @@ $two-columns-right-padding-size: 6px;
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
146
|
-
}
|
|
147
|
-
|
|
148
145
|
@mixin theme($theme-config) {
|
|
149
|
-
@include
|
|
150
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
151
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
152
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
153
|
-
|
|
154
|
-
@if $color !=null {
|
|
155
|
-
@include color($theme-config);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@if $typography !=null {
|
|
159
|
-
@include typography($theme-config);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
146
|
+
@include responsive($theme-config);
|
|
162
147
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:color';
|
|
3
1
|
@use '../../style/theming';
|
|
4
2
|
|
|
5
3
|
$content-max-width: theming.$content-max-width;
|
|
@@ -19,12 +17,12 @@ $pit-padding: theming.$padding-4;
|
|
|
19
17
|
$content-container-padding: theming.$padding-4;
|
|
20
18
|
$content-container-padding-small-screen: theming.$padding-2;
|
|
21
19
|
|
|
22
|
-
$content-end-margin: theming.$padding-4;
|
|
23
|
-
|
|
24
20
|
$scroll-content-bottom-padding: 42px;
|
|
25
21
|
|
|
26
22
|
$dbx-content-pit-floating-button-margin: 8px;
|
|
27
23
|
|
|
24
|
+
$dbx-border-opacity-default: 20%;
|
|
25
|
+
|
|
28
26
|
@mixin core() {
|
|
29
27
|
.dbx-content-border {
|
|
30
28
|
padding: $content-border-inner-padding;
|
|
@@ -77,10 +75,6 @@ $dbx-content-pit-floating-button-margin: 8px;
|
|
|
77
75
|
top: 0;
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
.dbx-content-end {
|
|
81
|
-
margin-bottom: $content-end-margin;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
78
|
.dbx-app-page {
|
|
85
79
|
@include theming.app-height();
|
|
86
80
|
overflow: hidden;
|
|
@@ -180,44 +174,17 @@ $dbx-content-pit-floating-button-margin: 8px;
|
|
|
180
174
|
.dbx-scroll-content {
|
|
181
175
|
padding-bottom: $scroll-content-bottom-padding;
|
|
182
176
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@mixin color($theme-config) {
|
|
186
|
-
$color-config: theming.m2-get-color-config($theme-config);
|
|
187
|
-
$primary: map.get($color-config, 'primary');
|
|
188
|
-
$accent: map.get($color-config, 'accent');
|
|
189
|
-
$warn: map.get($color-config, 'warn');
|
|
190
|
-
$background: map.get($color-config, 'background');
|
|
191
|
-
$foreground: map.get($color-config, 'foreground');
|
|
192
|
-
$content-color: theming.m2-get-color-from-palette($foreground, 'text');
|
|
193
|
-
$content-background: theming.m2-get-color-from-palette($background, 'background');
|
|
194
|
-
$content-border-background: theming.m2-get-color-from-palette($background, 'hover');
|
|
195
|
-
|
|
196
|
-
$primary-color: theming.m2-get-color-from-palette($primary, 500);
|
|
197
|
-
$accent-color: theming.m2-get-color-from-palette($accent, 500);
|
|
198
|
-
$warn-color: theming.m2-get-color-from-palette($warn, 500);
|
|
199
177
|
|
|
200
178
|
.dbx-content-pit {
|
|
201
|
-
background:
|
|
179
|
+
background: var(--mat-sys-surface-container);
|
|
202
180
|
}
|
|
203
181
|
|
|
204
182
|
.dbx-content-border {
|
|
205
|
-
|
|
206
|
-
border: 3px dashed $content-border-background;
|
|
207
|
-
|
|
208
|
-
&.dbx-content-border-primary {
|
|
209
|
-
border-color: $primary-color;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&.dbx-content-border-warn {
|
|
213
|
-
border-color: $warn-color;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&.dbx-content-border-accent {
|
|
217
|
-
border-color: $accent-color;
|
|
218
|
-
}
|
|
183
|
+
border: 3px dashed color-mix(in srgb, var(--dbx-border-color, var(--mat-sys-outline-variant)) var(--dbx-border-opacity, $dbx-border-opacity-default), transparent);
|
|
219
184
|
}
|
|
185
|
+
}
|
|
220
186
|
|
|
187
|
+
@mixin responsive($theme-config) {
|
|
221
188
|
.dbx-content-container {
|
|
222
189
|
@include theming.if-small-screen($theme-config) {
|
|
223
190
|
// reduce all paddings down.
|
|
@@ -235,21 +202,6 @@ $dbx-content-pit-floating-button-margin: 8px;
|
|
|
235
202
|
}
|
|
236
203
|
}
|
|
237
204
|
|
|
238
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
239
|
-
}
|
|
240
|
-
|
|
241
205
|
@mixin theme($theme-config) {
|
|
242
|
-
@include
|
|
243
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
244
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
245
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
246
|
-
|
|
247
|
-
@if $color !=null {
|
|
248
|
-
@include color($theme-config);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
@if $typography !=null {
|
|
252
|
-
@include typography($theme-config);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
206
|
+
@include responsive($theme-config);
|
|
255
207
|
}
|
|
@@ -6,24 +6,5 @@
|
|
|
6
6
|
@mixin core() {
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
@mixin theme($theme-config) {
|
|
16
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-flag') {
|
|
17
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
18
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
19
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
20
|
-
|
|
21
|
-
@if $color !=null {
|
|
22
|
-
@include color($theme-config);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@if $typography !=null {
|
|
26
|
-
@include typography($theme-config);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
10
|
}
|
|
@@ -58,24 +58,5 @@ $dbx-flex-group-columns-count: 6;
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
@mixin color($theme-config) {
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
65
|
-
}
|
|
66
|
-
|
|
67
61
|
@mixin theme($theme-config) {
|
|
68
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-flex') {
|
|
69
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
70
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
71
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
72
|
-
|
|
73
|
-
@if $color !=null {
|
|
74
|
-
@include color($theme-config);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@if $typography !=null {
|
|
78
|
-
@include typography($theme-config);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
62
|
}
|
|
@@ -6,24 +6,5 @@
|
|
|
6
6
|
@mixin core() {
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
@mixin theme($theme-config) {
|
|
16
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-item') {
|
|
17
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
18
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
19
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
20
|
-
|
|
21
|
-
@if $color !=null {
|
|
22
|
-
@include color($theme-config);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@if $typography !=null {
|
|
26
|
-
@include typography($theme-config);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
10
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
@use 'sass:color';
|
|
4
1
|
@use '../../style/theming';
|
|
5
2
|
|
|
6
3
|
// MARK: Variables
|
|
@@ -167,14 +164,10 @@ $list-item-padded-min-height: 42px;
|
|
|
167
164
|
.dbx-list-content .dbx-list-view .mat-mdc-list-base .mat-mdc-list-item .mat-divider {
|
|
168
165
|
position: unset; // do not touch the divider in dbx-list
|
|
169
166
|
}
|
|
170
|
-
}
|
|
171
167
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
$foreground: map.get($color-config, 'foreground');
|
|
176
|
-
$cdk-background-color: theming.m2-get-color-from-palette($background, 'background');
|
|
177
|
-
$cdk-text-color: theming.m2-get-color-from-palette($foreground, 'text');
|
|
168
|
+
.dbx-list-accordion-view {
|
|
169
|
+
--mat-expansion-container-shape: 0px;
|
|
170
|
+
}
|
|
178
171
|
|
|
179
172
|
.dbx-list-view-group-header {
|
|
180
173
|
color: var(--mdc-list-list-item-label-text-color);
|
|
@@ -191,21 +184,5 @@ $list-item-padded-min-height: 42px;
|
|
|
191
184
|
}
|
|
192
185
|
}
|
|
193
186
|
|
|
194
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
195
|
-
}
|
|
196
|
-
|
|
197
187
|
@mixin theme($theme-config) {
|
|
198
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-list') {
|
|
199
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
200
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
201
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
202
|
-
|
|
203
|
-
@if $color !=null {
|
|
204
|
-
@include color($theme-config);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
@if $typography !=null {
|
|
208
|
-
@include typography($theme-config);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
188
|
}
|
|
@@ -13,6 +13,11 @@ $header-left-reserved-space-small-screen: 120px;
|
|
|
13
13
|
|
|
14
14
|
// MARK: Mixin
|
|
15
15
|
@mixin core() {
|
|
16
|
+
// MARK: Section
|
|
17
|
+
.dbx-section {
|
|
18
|
+
border-radius: var(--dbx-section-container-shape, var(--mat-sys-corner-medium));
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
// MARK: Header
|
|
17
22
|
.dbx-section-header {
|
|
18
23
|
box-sizing: border-box;
|
|
@@ -209,7 +214,7 @@ $header-left-reserved-space-small-screen: 120px;
|
|
|
209
214
|
}
|
|
210
215
|
}
|
|
211
216
|
|
|
212
|
-
@mixin
|
|
217
|
+
@mixin responsive($theme-config) {
|
|
213
218
|
// MARK: Page
|
|
214
219
|
.dbx-section-page {
|
|
215
220
|
> .dbx-section-header > .dbx-section-header-content {
|
|
@@ -228,21 +233,6 @@ $header-left-reserved-space-small-screen: 120px;
|
|
|
228
233
|
}
|
|
229
234
|
}
|
|
230
235
|
|
|
231
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
232
|
-
}
|
|
233
|
-
|
|
234
236
|
@mixin theme($theme-config) {
|
|
235
|
-
@include
|
|
236
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
237
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
238
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
239
|
-
|
|
240
|
-
@if $color !=null {
|
|
241
|
-
@include color($theme-config);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@if $typography !=null {
|
|
245
|
-
@include typography($theme-config);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
237
|
+
@include responsive($theme-config);
|
|
248
238
|
}
|
|
@@ -6,26 +6,7 @@
|
|
|
6
6
|
@mixin core() {
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
@mixin color($theme-config) {
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
@mixin theme($theme-config) {
|
|
16
|
-
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-layout-step') {
|
|
17
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
18
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
19
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
20
|
-
|
|
21
|
-
@if $color !=null {
|
|
22
|
-
@include color($theme-config);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@if $typography !=null {
|
|
26
|
-
@include typography($theme-config);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
10
|
}
|
|
30
11
|
|
|
31
12
|
/*
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
@use 'sass:color';
|
|
4
2
|
@use '../../style/theming';
|
|
5
3
|
|
|
6
4
|
// Sections
|
|
@@ -150,21 +148,6 @@
|
|
|
150
148
|
--mat-list-list-item-leading-icon-color: #{theming.$dbx-color-var};
|
|
151
149
|
}
|
|
152
150
|
|
|
153
|
-
@mixin typography($theme-config-or-typography-config) {
|
|
154
|
-
}
|
|
155
|
-
|
|
156
151
|
@mixin theme($theme-config) {
|
|
157
|
-
@include
|
|
158
|
-
$color: theming.m2-get-color-config($theme-config);
|
|
159
|
-
$density: theming.m2-get-density-config($theme-config);
|
|
160
|
-
$typography: theming.m2-get-typography-config($theme-config);
|
|
161
|
-
|
|
162
|
-
@if $color !=null {
|
|
163
|
-
@include color($theme-config);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
@if $typography !=null {
|
|
167
|
-
@include typography($theme-config);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
152
|
+
@include color($theme-config);
|
|
170
153
|
}
|