@ngx-stoui/core 12.0.3 → 12.0.7
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/ngx-stoui.css +395 -401
- package/package.json +1 -1
- package/style/_fonts.scss +2 -1
- package/style/grid.scss +16 -0
- package/style/sto-dialog.scss +0 -6
- package/style/theme/_colors.scss +71 -3
- package/style/theme/_dialog.scss +29 -0
- package/style/theme/_filterpanel.scss +3 -34
- package/style/theme/_navigation-drawer.scss +51 -0
- package/style/theme/_theme-variables.scss +1 -1
- package/style/theme/components.scss +1 -0
package/package.json
CHANGED
package/style/_fonts.scss
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
@import url("https://eds-static.equinor.com/font/equinor-font.css");
|
|
2
|
-
@import url("https://fonts.googleapis.com/
|
|
2
|
+
@import url("https://fonts.googleapis.com/css?family=Material+Icons");
|
|
3
|
+
@import url("https://fonts.googleapis.com/css?family=Material+Icons+Outlined");
|
package/style/grid.scss
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@mixin grid($col-count: 12, $child-selector: 'grid-column', $margin: 0 24px 40px) {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-column-gap: 16px;
|
|
4
|
+
grid-row-gap: 16px;
|
|
5
|
+
margin: $margin;
|
|
6
|
+
grid-template-columns: repeat($col-count, 1fr);
|
|
7
|
+
.#{$child-selector} {
|
|
8
|
+
display: block;
|
|
9
|
+
grid-column: span 1;
|
|
10
|
+
}
|
|
11
|
+
@for $i from 1 through $col-count {
|
|
12
|
+
.#{$child-selector}-#{$i} {
|
|
13
|
+
grid-column: span $i;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
package/style/sto-dialog.scss
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
@import "../style/functions";
|
|
4
4
|
@import "./theme/typography";
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
@mixin sto-dialog-typography($config) {
|
|
8
7
|
.sto-dialog {
|
|
9
8
|
.mat-dialog-title {
|
|
@@ -36,11 +35,6 @@
|
|
|
36
35
|
margin: 0;
|
|
37
36
|
padding: 12px 24px 16px;
|
|
38
37
|
|
|
39
|
-
&.scroll-lines {
|
|
40
|
-
border-top: solid 1px $gray-light;
|
|
41
|
-
border-bottom: solid 1px $gray-light;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
38
|
.sto-selection-list {
|
|
45
39
|
.sto-selection-list__item {
|
|
46
40
|
.mat-list-item-content.mat-list-item-content-reverse {
|
package/style/theme/_colors.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '~@angular/material' as mat;
|
|
2
|
+
@use 'sass:map';
|
|
2
3
|
|
|
3
4
|
$sto-warning-map: (
|
|
4
5
|
highlight: #FFE7D6,
|
|
@@ -117,9 +118,6 @@ $sto-indicators-map: (
|
|
|
117
118
|
warning: $sto-warning,
|
|
118
119
|
danger: $sto-danger
|
|
119
120
|
);
|
|
120
|
-
$sto-indicators: (
|
|
121
|
-
indicators: $sto-indicators-map
|
|
122
|
-
);
|
|
123
121
|
|
|
124
122
|
$sto-dark-indicators-map: (
|
|
125
123
|
success: $sto-dark-success,
|
|
@@ -159,3 +157,73 @@ $accent: mat.define-palette($sto-accent, highlight, resting, hover);
|
|
|
159
157
|
$accent-dark: mat.define-palette($sto-dark-accent, highlight, resting, hover);
|
|
160
158
|
|
|
161
159
|
$sto-warn: mat.define-palette(mat.$red-palette);
|
|
160
|
+
|
|
161
|
+
$eds-light-foreground: (
|
|
162
|
+
secondary: #565656,
|
|
163
|
+
primary: #3D3D3D,
|
|
164
|
+
tertiary: #6F6F6F,
|
|
165
|
+
disabled: #BEBEBE,
|
|
166
|
+
divider: #DCDCDC,
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
@function theme-foreground($foreground) {
|
|
170
|
+
@return (
|
|
171
|
+
base: map-get($foreground, primary),
|
|
172
|
+
divider: map-get($foreground, divider),
|
|
173
|
+
dividers: map-get($foreground, divider),
|
|
174
|
+
disabled: map-get($foreground, disabled),
|
|
175
|
+
disabled-button: map-get($foreground, disabled),
|
|
176
|
+
disabled-text: map-get($foreground, disabled),
|
|
177
|
+
hint-text: map-get($foreground, disabled),
|
|
178
|
+
secondary-text: map-get($foreground, secondary),
|
|
179
|
+
icon: map-get($foreground, secondary),
|
|
180
|
+
icons: map-get($foreground, secondary),
|
|
181
|
+
text: map-get($foreground, primary),
|
|
182
|
+
slider-min: map-get($foreground, primary),
|
|
183
|
+
slider-off: map-get($foreground, disabled),
|
|
184
|
+
slider-off-active: map-get($foreground, disabled),
|
|
185
|
+
);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
$eds-light-background: (
|
|
189
|
+
default: #FFFFFF,
|
|
190
|
+
semi-transparent: rgba(255, 255, 255, 0.2),
|
|
191
|
+
light: #F7F7F7,
|
|
192
|
+
medium: #DCDCDC,
|
|
193
|
+
info: #D5EAF4,
|
|
194
|
+
warning: #FFE7D6,
|
|
195
|
+
danger: #FFC1C1,
|
|
196
|
+
scrim: rgba(0, 0, 0, 0.4),
|
|
197
|
+
overlay: rgba(0, 0, 0, 0.8),
|
|
198
|
+
disabled: #EAEAEA,
|
|
199
|
+
hover: #EAEAEA,
|
|
200
|
+
focus: #007079
|
|
201
|
+
);
|
|
202
|
+
|
|
203
|
+
@function theme-background($background) {
|
|
204
|
+
@return (
|
|
205
|
+
app-bar: map-get($background, default),
|
|
206
|
+
background: map-get($background, default),
|
|
207
|
+
hover: map-get($background, hover),
|
|
208
|
+
card: map-get($background, default),
|
|
209
|
+
dialog: map-get($background, default),
|
|
210
|
+
disabled-button: map-get($background, disabled),
|
|
211
|
+
raised-button: map-get($background, default),
|
|
212
|
+
focused-button: map-get($background, focus),
|
|
213
|
+
selected-button: map.get($background, light),
|
|
214
|
+
selected-disabled-button: map-get($background, disabled),
|
|
215
|
+
disabled-button-toggle: map-get($background, disabled),
|
|
216
|
+
unselected-chip: map.get($background, light),
|
|
217
|
+
disabled-list-option: map-get($background, disabled),
|
|
218
|
+
tooltip: map.get($background, overlay),
|
|
219
|
+
)
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
$sto-light-fg: theme-foreground($eds-light-foreground);
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
$sto-indicators: (
|
|
226
|
+
indicators: $sto-indicators-map,
|
|
227
|
+
foreground: $sto-light-fg,
|
|
228
|
+
background: theme-background($eds-light-background)
|
|
229
|
+
);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import "theme";
|
|
2
|
+
@import "typography";
|
|
3
|
+
|
|
4
|
+
@mixin dialog-theme($theme, $variables) {
|
|
5
|
+
$border-color: map_get($variables, border-color);
|
|
6
|
+
$background-color: map_get($variables, app-bar);
|
|
7
|
+
$divider: map-get($variables, border-color);
|
|
8
|
+
|
|
9
|
+
.sto-dialog .mat-dialog-container {
|
|
10
|
+
|
|
11
|
+
.mat-dialog-content {
|
|
12
|
+
border-top: solid 1px $divider;
|
|
13
|
+
|
|
14
|
+
&.scroll-lines {
|
|
15
|
+
border-bottom: solid 1px $divider;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Include theme styles for your custom components.
|
|
22
|
+
body:not(.sto-dark-theme) {
|
|
23
|
+
@include dialog-theme($sto-theme, $variables);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body.sto-dark-theme {
|
|
27
|
+
@include dialog-theme($sto-dark-theme, $dark-variables);
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -15,48 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
.sto-filter.mat-expansion-panel {
|
|
17
17
|
.mat-expansion-panel-header {
|
|
18
|
-
background-color: $background-color;
|
|
19
18
|
|
|
20
19
|
&[aria-disabled=true] {
|
|
21
20
|
color: $color;
|
|
22
21
|
}
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
.mat-icon-button, .mat-button {
|
|
25
|
-
color: $icon-color;
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
color: $icon-hover;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.mat-button-toggle-standalone.mat-button-toggle-appearance-standard {
|
|
33
|
-
background-color: transparent;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.mat-button-toggle-standalone.mat-button-toggle-appearance-standard.mat-button-toggle-checked {
|
|
37
|
-
background-color: $selected-color;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&:not(.mat-expanded) {
|
|
41
|
-
border-bottom: solid 1px $border-color;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.mat-expanded:hover {
|
|
45
|
-
// Y THO? Looks shit.
|
|
46
|
-
//background-color: $hover-color;
|
|
47
|
-
background-color: $background-color;
|
|
48
|
-
}
|
|
49
24
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
//background-color: $selected-color;
|
|
53
|
-
background-color: $background-color;
|
|
54
|
-
}
|
|
25
|
+
&:not(.mat-expanded) {
|
|
26
|
+
// border-bottom: solid 1px $border-color;
|
|
55
27
|
}
|
|
56
28
|
|
|
57
|
-
.separator {
|
|
58
|
-
background-color: $border-color;
|
|
59
|
-
}
|
|
60
29
|
}
|
|
61
30
|
|
|
62
31
|
}
|
|
@@ -1,29 +1,79 @@
|
|
|
1
|
+
// Trying to move this into drawer component
|
|
2
|
+
/*
|
|
1
3
|
@use '~@angular/material' as mat;
|
|
2
4
|
@import "theme";
|
|
3
5
|
@import "typography";
|
|
4
6
|
|
|
5
7
|
@mixin navigation-drawer-theme($theme, $variables) {
|
|
6
8
|
$primary: map_get($variables, primary);
|
|
9
|
+
$colors: mat.get-color-config($theme);
|
|
10
|
+
$primary-palette: map-get($colors, primary);
|
|
11
|
+
$selected-bg: map-get($primary-palette, highlight);
|
|
7
12
|
$color: map_get($variables, color);
|
|
13
|
+
$secondary: map_get($variables, secondary);
|
|
8
14
|
$hover: map_get($variables, hover-bg);
|
|
9
15
|
$disabled: map_get($variables, disabled);
|
|
10
16
|
$bg-color: map_get($variables, card-bg);
|
|
11
17
|
$border-color: map_get($variables, border-color);
|
|
18
|
+
$active-bg: map_get($variables, selected-bg);
|
|
19
|
+
|
|
20
|
+
.mat-menu-item.no-hover {
|
|
21
|
+
color: $secondary;
|
|
22
|
+
}
|
|
23
|
+
.mat-menu-item.no-hover:hover:not([disabled]) {
|
|
24
|
+
background-color: $bg-color;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
a.mat-menu-item.active-menu-route {
|
|
28
|
+
background-color: $selected-bg;
|
|
29
|
+
}
|
|
30
|
+
a.mat-menu-item:hover {
|
|
31
|
+
text-shadow:0 0 1px $color;
|
|
32
|
+
}
|
|
12
33
|
|
|
13
34
|
|
|
14
35
|
.sto-nav-drawer {
|
|
15
36
|
background-color: $bg-color;
|
|
37
|
+
|
|
38
|
+
a.mat-button {
|
|
39
|
+
color: $primary;
|
|
40
|
+
|
|
41
|
+
&.active {
|
|
42
|
+
background-color: $active-bg;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mat-icon {
|
|
46
|
+
color: $primary;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
16
50
|
button:not(.mat-button-disabled) .mat-icon {
|
|
17
51
|
color: $primary;
|
|
18
52
|
}
|
|
53
|
+
|
|
54
|
+
a.sto-nav-drawer--expanded__item {
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
background-color: $hover;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.active {
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
19
66
|
.sto-nav-drawer--expanded__item:not(.disabled) .mat-icon {
|
|
20
67
|
color: $primary;
|
|
21
68
|
}
|
|
69
|
+
|
|
22
70
|
sto-nav-drawer-list-item {
|
|
23
71
|
border-color: rgba($primary, 0.2);
|
|
72
|
+
|
|
24
73
|
a.active span {
|
|
25
74
|
border-color: $primary;
|
|
26
75
|
}
|
|
76
|
+
|
|
27
77
|
&:hover {
|
|
28
78
|
background-color: $hover;
|
|
29
79
|
}
|
|
@@ -79,3 +129,4 @@ body:not(.sto-dark-theme) {
|
|
|
79
129
|
.mat-typography.sto-l-typography {
|
|
80
130
|
@include navigation-drawer-typography($sto-l-typography);
|
|
81
131
|
}
|
|
132
|
+
*/
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
$card-bg: map_get($background, card);
|
|
32
32
|
$hover-bg-color: mat.get-color-from-palette($background, 'hover');
|
|
33
33
|
$hover-color: mat.get-color-from-palette($foreground, slider-off-active);
|
|
34
|
-
$selected-color: mat.get-color-from-palette($background,
|
|
34
|
+
$selected-color: mat.get-color-from-palette($background, selected-button);
|
|
35
35
|
$border-color: mat.get-color-from-palette($foreground, divider);
|
|
36
36
|
$app-bar: mat.get-color-from-palette($background, 'app-bar');
|
|
37
37
|
|