@eui/styles 17.0.0-next.9 → 17.0.0-rc.2
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/dist/styles/eui-ecl-ec.css +3 -3
- package/dist/styles/eui-ecl-ec.css.map +1 -1
- package/dist/styles/eui-ecl-eu.css +3 -3
- package/dist/styles/eui-ecl-eu.css.map +1 -1
- package/dist/styles/eui-icons-flags.css.map +1 -1
- package/dist/styles/eui-legacy-bootstrap-utilities.css.map +1 -1
- package/dist/styles/eui-legacy-icons-font.css +1 -1
- package/dist/styles/eui-legacy-icons-font.css.map +1 -1
- package/dist/styles/eui-print.css +1 -1
- package/dist/styles/eui-print.css.map +1 -1
- package/dist/styles/eui-showcase-all.css +1 -1
- package/dist/styles/eui-showcase-all.css.map +1 -1
- package/dist/styles/eui-theme-compact.css +2 -0
- package/dist/styles/eui-theme-compact.css.map +1 -0
- package/dist/styles/eui-theme-dark.css +2 -0
- package/dist/styles/eui-theme-dark.css.map +1 -0
- package/dist/styles/eui-theme-high-contrast.css +2 -0
- package/dist/styles/eui-theme-high-contrast.css.map +1 -0
- package/dist/styles/eui-utilities.css +1 -1
- package/dist/styles/eui-utilities.css.map +1 -1
- package/dist/styles/eui.css +1 -1
- package/dist/styles/eui.css.map +1 -1
- package/package.json +2 -2
- package/src/styles/02-base/mixins/_eui-border-state.scss +7 -7
- package/src/styles/02-base/mixins/_eui-clearable-input.scss +1 -1
- package/src/styles/02-base/mixins/_eui-disabled.scss +1 -2
- package/src/styles/02-base/mixins/_eui-input.scss +4 -6
- package/src/styles/02-base/mixins/_eui-scrollbars.scss +1 -2
- package/src/styles/02-base/mixins/_module.scss +0 -6
- package/src/styles/02b-base-vars/_layout.vars.scss +0 -23
- package/src/styles/02b-base-vars/_module.scss +1 -0
- package/src/styles/02b-base-vars/_other.vars.scss +3 -0
- package/src/styles/05-material/_material.scss +0 -102
- package/src/styles/05-material/overrides/_cdk-virtual-scrollable.scss +3 -0
- package/src/styles/05-material/overrides/_module.scss +1 -0
- package/src/styles/06-shared/_module.scss +5 -2
- package/src/styles/07-elements/_module.scss +2 -1
- package/src/styles/07-elements/directives/_eui-clearable-input.scss +26 -0
- package/src/styles/{06-shared → 07-elements/directives}/_eui-input-maxlength.scss +1 -3
- package/src/styles/07-elements/directives/_module.scss +2 -0
- package/src/styles/07-elements/eui-table-default/_eui-table-default.scss +1 -73
- package/src/styles/08-themes/_module-compact.scss +34 -8
- package/src/styles/08-themes/_module-dark.scss +66 -0
- package/src/styles/08-themes/_module-high-contrast.scss +31 -0
- package/src/styles/10-media/_module-print.scss +61 -291
- package/src/styles/999-showcase/_component-demo-exports.scss +2 -0
- package/src/styles/999-showcase/_module.scss +1 -0
- package/src/styles/999-showcase/_prism-dracula.scss +594 -0
- package/src/styles/999-showcase/_prism-theme.scss +6 -4
- package/src/styles/999-showcase/_specific-typography.scss +14 -8
- package/src/styles/eui-showcase-all-dev.scss +47 -0
- package/src/styles/eui-showcase-all.scss +4 -1
- package/src/styles/eui-theme-compact.scss +7 -0
- package/src/styles/eui-theme-dark.scss +7 -0
- package/src/styles/eui-theme-high-contrast.scss +7 -0
- package/src/styles/eui.scss +0 -3
- package/src/styles/02-base/mixins/_eui-accessibility.scss +0 -39
- package/src/styles/02-base/mixins/_ux-clearable-input.scss +0 -29
- package/src/styles/02-base/mixins/_ux-form-control-state.scss +0 -32
- package/src/styles/05-material/_material-cdk.scss +0 -108
- package/src/styles/05-material/_module cdk.scss +0 -2
- package/src/styles/06-shared/_default.scss +0 -11
package/package.json
CHANGED
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"description": "eUI core styling",
|
|
10
10
|
"author": "ec.europa.eui@gmail.com",
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": "^18.13.0 || >=20.
|
|
12
|
+
"node": "^18.13.0 || >=20.9.0",
|
|
13
13
|
"yarn": ">=1.22.4 <2",
|
|
14
14
|
"npm": "Please use yarn instead of NPM to install dependencies"
|
|
15
15
|
},
|
|
16
16
|
"license": "EUPL-1.1",
|
|
17
|
-
"version": "17.0.0-
|
|
17
|
+
"version": "17.0.0-rc.2",
|
|
18
18
|
"tag": "next"
|
|
19
19
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
// Left side border status
|
|
2
2
|
@mixin eui-border-state($state: null) {
|
|
3
3
|
@if ($state == primary) {
|
|
4
|
-
border-left: v(eui-
|
|
4
|
+
border-left: v(eui-base-spacing-xs) solid v(eui-base-color-primary-100);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
@if ($state == secondary) {
|
|
8
|
-
border-left: v(eui-
|
|
8
|
+
border-left: v(eui-base-spacing-xs) solid v(eui-base-color-grey-25);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@if ($state == info) {
|
|
12
|
-
border-left: v(eui-
|
|
12
|
+
border-left: v(eui-base-spacing-xs) solid v(eui-base-color-info-100);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@if ($state == success) {
|
|
16
|
-
border-left: v(eui-
|
|
16
|
+
border-left: v(eui-base-spacing-xs) solid v(eui-base-color-success-100);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@if ($state == warning) {
|
|
20
|
-
border-left: v(eui-
|
|
20
|
+
border-left: v(eui-base-spacing-xs) solid v(eui-base-color-warning-100);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@if ($state == danger) {
|
|
24
|
-
border-left: v(eui-
|
|
24
|
+
border-left: v(eui-base-spacing-xs) solid v(eui-base-color-danger-100);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@if ($state == accent) {
|
|
28
|
-
border-left: v(eui-
|
|
28
|
+
border-left: v(eui-base-spacing-xs) solid v(eui-base-color-accent-100);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// eUI Inputs Layout & states commons
|
|
2
2
|
// Used for: eui-input-text, eui-input-number, eui-select, eui-textarea, eui-datepicker, eui-autocomplete
|
|
3
3
|
@mixin eui-input() {
|
|
4
|
-
@include eui-font(
|
|
4
|
+
@include eui-font-family();
|
|
5
5
|
appearance: none;
|
|
6
6
|
background-color: v(eui-base-color-white);
|
|
7
7
|
border: 1px solid v(eui-base-color-grey-50);
|
|
8
8
|
border-radius: v(eui-base-border-radius);
|
|
9
|
+
box-shadow: v(eui-app-box-shadow);
|
|
9
10
|
color: v(eui-base-color-grey-100);
|
|
10
11
|
display: block;
|
|
11
12
|
min-height: calc(#{v(eui-base-spacing-2xl)} + #{v(eui-base-spacing-2xs)}); // DS aligned 44px
|
|
12
13
|
padding: calc(#{v(eui-base-spacing-s)} - 1px); // Trick to have inner paddings without exceeding default min-height
|
|
13
14
|
width: 100%;
|
|
14
|
-
@include eui-accessible-focus
|
|
15
|
+
@include eui-accessible-focus();
|
|
15
16
|
|
|
16
17
|
&::placeholder {
|
|
17
18
|
color: v(eui-base-color-grey-50) !important;
|
|
@@ -57,10 +58,7 @@
|
|
|
57
58
|
right: v(eui-base-spacing-s);
|
|
58
59
|
user-select: none;
|
|
59
60
|
visibility: visible;
|
|
60
|
-
|
|
61
|
-
&:focus {
|
|
62
|
-
@include eui-accessible-focus-outline();
|
|
63
|
-
}
|
|
61
|
+
@include eui-accessible-focus();
|
|
64
62
|
|
|
65
63
|
> svg {
|
|
66
64
|
fill: v(eui-base-color-grey-35);
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
display: inherit;
|
|
4
4
|
height: $size; // horizontal scroll
|
|
5
5
|
width: $size; // vertical scroll
|
|
6
|
-
// z-index: v(eui-base-z-index-highlighted); // should be when in edition mode
|
|
7
6
|
@if ($state == active) {
|
|
8
7
|
background-color: $background-color;
|
|
9
8
|
}
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
border-radius: $border-radius;
|
|
20
19
|
|
|
21
20
|
&:hover {
|
|
22
|
-
background-color: v(eui-base-color-grey-
|
|
21
|
+
background-color: v(eui-base-color-grey-50);
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
@else {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @import 'eui-accessibility'; // Moved to eui-styles-base
|
|
2
1
|
@import 'eui-border-radius';
|
|
3
2
|
@import 'eui-flex-container';
|
|
4
3
|
@import 'eui-flex-column-wrapper';
|
|
@@ -6,12 +5,7 @@
|
|
|
6
5
|
@import 'eui-utils';
|
|
7
6
|
@import 'eui-bg-rounded';
|
|
8
7
|
@import 'eui-disabled';
|
|
9
|
-
@import 'eui-clearable-input';
|
|
10
8
|
@import 'eui-border-state';
|
|
11
9
|
@import 'eui-loading-indicator';
|
|
12
10
|
@import 'eui-input';
|
|
13
11
|
@import 'eui-resizable';
|
|
14
|
-
|
|
15
|
-
// v17 removed
|
|
16
|
-
// @import 'ux-form-control-state';
|
|
17
|
-
// @import 'ux-clearable-input';
|
|
@@ -41,29 +41,6 @@
|
|
|
41
41
|
--eui-page-column--size-xxl: 300px;
|
|
42
42
|
--eui-page-column--size-xxxl: 350px;
|
|
43
43
|
--eui-page-column-footer-height: 3.5rem;
|
|
44
|
-
|
|
45
|
-
// Misc
|
|
46
|
-
--eui-border-state-width: 6px;
|
|
47
|
-
|
|
48
|
-
// Colors
|
|
49
|
-
// eUI App elements
|
|
50
|
-
--eui-app-header-bg-color: var(--eui-base-color-white);
|
|
51
|
-
--eui-app-header-title-color: var(--eui-base-color-grey-100);
|
|
52
|
-
--eui-app-header-subtitle-color: var(--eui-base-color-grey-75);
|
|
53
|
-
|
|
54
|
-
--eui-app-toolbar-color: var(--eui-base-color-white);
|
|
55
|
-
--eui-app-toolbar-bg-color: var(--eui-base-color-primary-100);
|
|
56
|
-
--eui-app-toolbar-border-bottom-color: var(--eui-base-color-primary-25);
|
|
57
|
-
|
|
58
|
-
--eui-app-sidebar-bg-color: var(--eui-base-color-grey-2);
|
|
59
|
-
--eui-app-sidebar-border-right-color: #f2f4f9;
|
|
60
|
-
|
|
61
|
-
--eui-app-body-bg-color: var(--eui-base-color-grey-2);
|
|
62
|
-
--eui-app-main-bg-color: var(--eui-base-color-grey-2);
|
|
63
|
-
|
|
64
|
-
--eui-app-footer-color: var(--eui-base-color-font);
|
|
65
|
-
--eui-app-footer-bg-color: var(--eui-base-color-grey-2);
|
|
66
|
-
--eui-app-footer-border-top-color: #e8ebf1;
|
|
67
44
|
}
|
|
68
45
|
|
|
69
46
|
.xs, .sm {
|
|
@@ -1,136 +1,37 @@
|
|
|
1
1
|
// Material colors : generated with : http://mcg.mbitson.com
|
|
2
2
|
|
|
3
3
|
// PRIMARY
|
|
4
|
-
$palette-primary-50: #e0e9f2;
|
|
5
|
-
$palette-primary-100: #b3c7df;
|
|
6
|
-
$palette-primary-200: #80a2ca;
|
|
7
4
|
$palette-primary-300: #4d7cb4;
|
|
8
|
-
$palette-primary-400: #2660a4;
|
|
9
5
|
$palette-primary-500: #004494; // ECL BASE rgb(0, 68, 148)
|
|
10
|
-
$palette-primary-600: #003e8c;
|
|
11
|
-
$palette-primary-700: #003581;
|
|
12
|
-
$palette-primary-800: #002d77;
|
|
13
6
|
$palette-primary-900: #001f65;
|
|
14
|
-
$palette-primary-A100: #95abff;
|
|
15
|
-
$palette-primary-A200: #6283ff;
|
|
16
|
-
$palette-primary-A400: #2f5bff;
|
|
17
|
-
$palette-primary-A700: #1547ff;
|
|
18
7
|
|
|
19
8
|
// ACCENT
|
|
20
|
-
$palette-accent-50: #fffae3;
|
|
21
|
-
$palette-accent-100: #fff3b9;
|
|
22
|
-
$palette-accent-200: #ffeb8b;
|
|
23
|
-
$palette-accent-300: #ffe25d;
|
|
24
|
-
$palette-accent-400: #ffdc3a;
|
|
25
|
-
$palette-accent-500: #ffd617; // ECL BASE rgb(255, 214, 23)
|
|
26
|
-
$palette-accent-600: #ffd114;
|
|
27
|
-
$palette-accent-700: #fc1;
|
|
28
|
-
$palette-accent-800: #ffc60d;
|
|
29
|
-
$palette-accent-900: #ffbc07;
|
|
30
9
|
$palette-accent-A100: #fff;
|
|
31
10
|
$palette-accent-A200: #fffcf4;
|
|
32
11
|
$palette-accent-A400: #ffecc1;
|
|
33
|
-
$palette-accent-A700: #ffe5a7;
|
|
34
12
|
|
|
35
13
|
$private-eui-color: #999;
|
|
36
14
|
$private-eui-color-white: #fff;
|
|
37
15
|
|
|
38
16
|
$mat-eui-primary: (
|
|
39
|
-
50: $palette-primary-50,
|
|
40
|
-
100: $palette-primary-100,
|
|
41
|
-
200: $palette-primary-200,
|
|
42
17
|
300: $palette-primary-300,
|
|
43
|
-
400: $palette-primary-400,
|
|
44
18
|
500: $palette-primary-500,
|
|
45
|
-
600: $palette-primary-600,
|
|
46
|
-
700: $palette-primary-700,
|
|
47
|
-
800: $palette-primary-800,
|
|
48
19
|
900: $palette-primary-900,
|
|
49
|
-
A100: $palette-primary-A100,
|
|
50
|
-
A200: $palette-primary-A200,
|
|
51
|
-
A400: $palette-primary-A400,
|
|
52
|
-
A700: $palette-primary-A700,
|
|
53
20
|
contrast: (
|
|
54
|
-
50: $private-eui-color,
|
|
55
|
-
100: $private-eui-color,
|
|
56
|
-
200: $private-eui-color,
|
|
57
21
|
300: $private-eui-color,
|
|
58
|
-
400: $private-eui-color,
|
|
59
22
|
500: $private-eui-color-white,
|
|
60
|
-
600: $private-eui-color-white,
|
|
61
|
-
700: $private-eui-color-white,
|
|
62
|
-
800: $private-eui-color-white,
|
|
63
23
|
900: $private-eui-color-white,
|
|
64
|
-
A100: $private-eui-color,
|
|
65
|
-
A200: $private-eui-color-white,
|
|
66
|
-
A400: $private-eui-color-white,
|
|
67
|
-
A700: $private-eui-color-white,
|
|
68
|
-
)
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
$mat-eui-danger: (
|
|
72
|
-
50: $palette-danger-50,
|
|
73
|
-
100: $palette-danger-100,
|
|
74
|
-
200: $palette-danger-200,
|
|
75
|
-
300: $palette-danger-300,
|
|
76
|
-
400: $palette-danger-400,
|
|
77
|
-
500: $palette-danger-500,
|
|
78
|
-
600: $palette-danger-600,
|
|
79
|
-
700: $palette-danger-700,
|
|
80
|
-
800: $palette-danger-800,
|
|
81
|
-
900: $palette-danger-900,
|
|
82
|
-
A100: $palette-danger-A100,
|
|
83
|
-
A200: $palette-danger-A200,
|
|
84
|
-
A400: $palette-danger-A400,
|
|
85
|
-
A700: $palette-danger-A700,
|
|
86
|
-
contrast: (
|
|
87
|
-
50: $private-eui-color,
|
|
88
|
-
100: $private-eui-color,
|
|
89
|
-
200: $private-eui-color,
|
|
90
|
-
300: $private-eui-color,
|
|
91
|
-
400: $private-eui-color,
|
|
92
|
-
500: $private-eui-color-white,
|
|
93
|
-
600: $private-eui-color-white,
|
|
94
|
-
700: $private-eui-color-white,
|
|
95
|
-
800: $private-eui-color-white,
|
|
96
|
-
900: $private-eui-color-white,
|
|
97
|
-
A100: $private-eui-color,
|
|
98
|
-
A200: $private-eui-color,
|
|
99
|
-
A400: $private-eui-color,
|
|
100
|
-
A700: $private-eui-color,
|
|
101
24
|
)
|
|
102
25
|
);
|
|
103
26
|
|
|
104
27
|
$mat-eui-accent: (
|
|
105
|
-
50: $palette-accent-50,
|
|
106
|
-
100: $palette-accent-100,
|
|
107
|
-
200: $palette-accent-200,
|
|
108
|
-
300: $palette-accent-300,
|
|
109
|
-
400: $palette-accent-400,
|
|
110
|
-
500: $palette-accent-500,
|
|
111
|
-
600: $palette-accent-600,
|
|
112
|
-
700: $palette-accent-700,
|
|
113
|
-
800: $palette-accent-800,
|
|
114
|
-
900: $palette-accent-900,
|
|
115
28
|
A100: $palette-accent-A100,
|
|
116
29
|
A200: $palette-accent-A200,
|
|
117
30
|
A400: $palette-accent-A400,
|
|
118
|
-
A700: $palette-accent-A700,
|
|
119
31
|
contrast: (
|
|
120
|
-
50: $private-eui-color,
|
|
121
|
-
100: $private-eui-color,
|
|
122
|
-
200: $private-eui-color,
|
|
123
|
-
300: $private-eui-color,
|
|
124
|
-
400: $private-eui-color,
|
|
125
|
-
500: $private-eui-color,
|
|
126
|
-
600: $private-eui-color,
|
|
127
|
-
700: $private-eui-color,
|
|
128
|
-
800: $private-eui-color,
|
|
129
|
-
900: $private-eui-color,
|
|
130
32
|
A100: $private-eui-color,
|
|
131
33
|
A200: $private-eui-color,
|
|
132
34
|
A400: $private-eui-color,
|
|
133
|
-
A700: $private-eui-color,
|
|
134
35
|
)
|
|
135
36
|
);
|
|
136
37
|
|
|
@@ -141,16 +42,13 @@ $mat-eui-accent: (
|
|
|
141
42
|
// define palettes
|
|
142
43
|
$eui-t-color-primary: mat.define-palette($mat-eui-primary, 500, 300, 900); // $palette-name, $default: 500, $lighter: 100, $darker: 700
|
|
143
44
|
$eui-t-color-accent: mat.define-palette($mat-eui-accent, A200, A100, A400);
|
|
144
|
-
$eui-t-color-warn: mat.define-palette($mat-eui-danger, 500, A700, 900); // The warn palette is optional (default: $mat-red)
|
|
145
45
|
|
|
146
46
|
// define theme
|
|
147
47
|
$eui-theme: mat.define-light-theme((
|
|
148
48
|
color: (
|
|
149
49
|
primary: $eui-t-color-primary,
|
|
150
50
|
accent: $eui-t-color-accent,
|
|
151
|
-
warn: $eui-t-color-warn,
|
|
152
51
|
)
|
|
153
52
|
));
|
|
154
53
|
|
|
155
54
|
@include mat.datepicker-theme($eui-theme);
|
|
156
|
-
@include mat.autocomplete-theme($eui-theme);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Sets the layout of the euiClearable directive
|
|
2
|
+
.eui-clearable-wrapper {
|
|
3
|
+
align-items: center;
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
|
|
8
|
+
.eui-input-text--clearable-icon {
|
|
9
|
+
bottom: calc(#{v(eui-base-spacing-s)} - 2px);
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
position: absolute;
|
|
12
|
+
right: v(eui-base-spacing-s);
|
|
13
|
+
user-select: none;
|
|
14
|
+
visibility: visible;
|
|
15
|
+
z-index: v(eui-base-z-index-clearable-icon);
|
|
16
|
+
@include eui-accessible-focus();
|
|
17
|
+
|
|
18
|
+
> svg {
|
|
19
|
+
fill: v(eui-base-color-grey-35);
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
fill: v(eui-base-color-danger-100);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
// TODO v17 - extract directive bound styling to global particular structure here to be recongnizable and kept
|
|
2
|
-
|
|
3
1
|
.eui-input-maxlength-wrapper {
|
|
4
2
|
position: relative;
|
|
5
3
|
width: 100%;
|
|
6
4
|
|
|
7
5
|
.eui-input-maxlength {
|
|
8
|
-
@include eui-font(
|
|
6
|
+
@include eui-font-family-xs();
|
|
9
7
|
background-color: v(eui-base-color-grey-10);
|
|
10
8
|
border: 1px solid v(eui-base-color-grey-50);
|
|
11
9
|
border-radius: v(eui-base-border-radius);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// stylelint-disable no-descending-specificity
|
|
2
1
|
table.eui-table-default {
|
|
3
2
|
background-color: transparent;
|
|
4
3
|
border-collapse: collapse;
|
|
@@ -23,7 +22,7 @@ table.eui-table-default {
|
|
|
23
22
|
thead {
|
|
24
23
|
th {
|
|
25
24
|
border-bottom: 1px solid v(eui-base-color-grey-10);
|
|
26
|
-
color: v(eui-base-color-grey-
|
|
25
|
+
color: v(eui-base-color-grey-100);
|
|
27
26
|
font-size: v(eui-base-font-size);
|
|
28
27
|
padding: v(eui-base-spacing-m) v(eui-base-spacing-s);
|
|
29
28
|
vertical-align: middle;
|
|
@@ -125,74 +124,3 @@ table.eui-table-default {
|
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
}
|
|
128
|
-
|
|
129
|
-
// // RESPONSIVE LAYOUT (PROTO)
|
|
130
|
-
// @include media($eui-bkp-mobile) {
|
|
131
|
-
// table.ux-table {
|
|
132
|
-
// display: block;
|
|
133
|
-
|
|
134
|
-
// &.ux-table--responsive {
|
|
135
|
-
// display: contents;
|
|
136
|
-
|
|
137
|
-
// &.ux-table--bordered {
|
|
138
|
-
// tr {
|
|
139
|
-
// border: 1px solid v(eui-base-color-grey-light);
|
|
140
|
-
// }
|
|
141
|
-
// }
|
|
142
|
-
|
|
143
|
-
// &.ux-table--compact {
|
|
144
|
-
// td {
|
|
145
|
-
// padding-bottom: v(eui-base-spacing-3xs);
|
|
146
|
-
// padding-top: v(eui-base-spacing-2xs);
|
|
147
|
-
|
|
148
|
-
// &::before {
|
|
149
|
-
// top: v(eui-base-spacing-2xs);
|
|
150
|
-
// }
|
|
151
|
-
// }
|
|
152
|
-
// }
|
|
153
|
-
|
|
154
|
-
// // Force table to be like cards
|
|
155
|
-
// thead,
|
|
156
|
-
// tbody,
|
|
157
|
-
// th,
|
|
158
|
-
// td,
|
|
159
|
-
// tr {
|
|
160
|
-
// display: block;
|
|
161
|
-
// }
|
|
162
|
-
|
|
163
|
-
// // Hide table headers but not display: none for accessibility
|
|
164
|
-
// thead tr {
|
|
165
|
-
// left: -9999px;
|
|
166
|
-
// position: absolute;
|
|
167
|
-
// top: -9999px;
|
|
168
|
-
// }
|
|
169
|
-
|
|
170
|
-
// tr {
|
|
171
|
-
// height: auto;
|
|
172
|
-
// }
|
|
173
|
-
|
|
174
|
-
// th,
|
|
175
|
-
// td {
|
|
176
|
-
// // Behave like a "row"
|
|
177
|
-
// border: none;
|
|
178
|
-
// border-bottom: 1px solid v(eui-base-color-grey-lightest);
|
|
179
|
-
// padding: v(eui-base-spacing-xs);
|
|
180
|
-
// padding-left: 50%;
|
|
181
|
-
// position: relative;
|
|
182
|
-
// }
|
|
183
|
-
|
|
184
|
-
// td::before {
|
|
185
|
-
// color: v(eui-base-color-grey-dark);
|
|
186
|
-
// content: attr(data-col); // Like a table header column
|
|
187
|
-
// font-weight: bold;
|
|
188
|
-
// left: v(eui-base-spacing-xs);
|
|
189
|
-
// padding-right: v(eui-base-spacing-xs);
|
|
190
|
-
// position: absolute;
|
|
191
|
-
// // Mimic top & left paddings
|
|
192
|
-
// top: v(eui-base-spacing-xs);
|
|
193
|
-
// white-space: nowrap;
|
|
194
|
-
// width: 45%;
|
|
195
|
-
// }
|
|
196
|
-
// }
|
|
197
|
-
// }
|
|
198
|
-
// }
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
// TODO v17 find a better way to handle themes
|
|
2
2
|
|
|
3
|
+
@mixin eui-compact-get-tokens($ratio: 0.875) {
|
|
4
|
+
--eui-compact-ratio: #{$ratio};
|
|
5
|
+
@each $spacing, $value in $eui-base-tokens-spacings {
|
|
6
|
+
--eui-base-spacing-#{$spacing}: calc( #{var(--eui-compact-ratio)} * #{$value} );
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
// GLOBAL COMPACT THEME
|
|
4
11
|
///////////////////////
|
|
5
12
|
html.eui-t-compact {
|
|
6
13
|
// Exposed CSS variables
|
|
7
14
|
--eui-base-font-size: 14px; // Font size base for compact theme
|
|
8
|
-
--eui-base-line-height: 1.25; // Unitless number value is multiplied by the element's font size
|
|
9
15
|
// Setup
|
|
10
16
|
font-size: var(--eui-base-font-size); // Applies the defined custom font size
|
|
11
|
-
line-height: var(--eui-base-line-height); // Applies the defined custom line height ratio
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
// FORM ELEMENTS
|
|
@@ -16,7 +21,6 @@ html.eui-t-compact {
|
|
|
16
21
|
form.eui-t-form-compact {
|
|
17
22
|
// Exposed CSS variables
|
|
18
23
|
--eui-base-font-size: 14px; // Font size base for compact theme
|
|
19
|
-
--eui-base-line-height: 1.25; // Unitless number value is multiplied by the element's font size
|
|
20
24
|
--eui-input-group-spacing: var(--eui-base-spacing-s); // Spacing between form groups elements
|
|
21
25
|
// Internals
|
|
22
26
|
// See: eui-styles-base\src\styles\02-base\mixins\theming\_compact-vars.scss
|
|
@@ -24,7 +28,6 @@ form.eui-t-form-compact {
|
|
|
24
28
|
// Setup
|
|
25
29
|
--eui-compact-ratio: 0.82; // Sets form inputs/elements to 39px height (default: 44px)
|
|
26
30
|
font-size: var(--eui-base-font-size); // Applies the defined custom font size
|
|
27
|
-
line-height: var(--eui-base-line-height); // Applies the defined custom line height ratio
|
|
28
31
|
|
|
29
32
|
// Internals
|
|
30
33
|
.eui-input-group {
|
|
@@ -51,7 +54,6 @@ form.eui-t-form-compact {
|
|
|
51
54
|
.eui-table.eui-t-table-compact {
|
|
52
55
|
// Exposed CSS variables
|
|
53
56
|
--eui-base-font-size: 14px; // Font size base for compact theme
|
|
54
|
-
--eui-base-line-height: 1.25; // Unitless number value is multiplied by the element's font size
|
|
55
57
|
--eui-table-header-padding: var(--eui-base-spacing-s); // Table header spacer set to 0.75rem
|
|
56
58
|
--eui-table-row-padding: var(--eui-base-spacing-2xs); // Table body row spacer set to 0.25rem
|
|
57
59
|
--eui-table-footer-padding: var(--eui-base-spacing-s); // Table footer spacer set to 0.75rem
|
|
@@ -59,7 +61,6 @@ form.eui-t-form-compact {
|
|
|
59
61
|
@include eui-compact-get-tokens();
|
|
60
62
|
// Setup
|
|
61
63
|
font-size: var(--eui-base-font-size); // Applies the defined custom font size
|
|
62
|
-
line-height: var(--eui-base-line-height); // Applies the defined custom line height ratio
|
|
63
64
|
|
|
64
65
|
// Internals
|
|
65
66
|
thead {
|
|
@@ -98,14 +99,12 @@ form.eui-t-form-compact {
|
|
|
98
99
|
.eui-card.eui-t-card-compact {
|
|
99
100
|
// Exposed CSS variables
|
|
100
101
|
--eui-base-font-size: 14px; // Font size base for compact theme
|
|
101
|
-
--eui-base-line-height: 1.25; // Unitless number value is multiplied by the element's font size
|
|
102
102
|
--eui-card-title-size: var(--eui-base-font-size-m); // Card title font size
|
|
103
103
|
--eui-card-subtitle-size: var(--eui-base-font-size-s); // Card subtitle font size
|
|
104
104
|
// Internals
|
|
105
105
|
@include eui-compact-get-tokens();
|
|
106
106
|
// Setup
|
|
107
107
|
font-size: var(--eui-base-font-size); // Applies the defined custom font size
|
|
108
|
-
line-height: var(--eui-base-line-height); // Applies the defined custom line height ratio
|
|
109
108
|
|
|
110
109
|
// Internals
|
|
111
110
|
.eui-card {
|
|
@@ -130,3 +129,30 @@ form.eui-t-form-compact {
|
|
|
130
129
|
}
|
|
131
130
|
}
|
|
132
131
|
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
// OTHER CMP
|
|
135
|
+
.eui-t-compact {
|
|
136
|
+
.eui-buttons {
|
|
137
|
+
&--size-s {
|
|
138
|
+
.eui-button {
|
|
139
|
+
min-height: calc(2 * #{v(eui-base-spacing-m)});
|
|
140
|
+
min-width: calc(2.5 * #{v(eui-base-spacing-m)});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&--size-m {
|
|
145
|
+
.eui-button {
|
|
146
|
+
min-height: calc(2.5 * #{v(eui-base-spacing-m)});
|
|
147
|
+
min-width: calc(2.5 * #{v(eui-base-spacing-m)});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&--size-l {
|
|
152
|
+
.eui-button {
|
|
153
|
+
min-height: calc(3.25 * #{v(eui-base-spacing-m)});
|
|
154
|
+
min-width: calc(3.25 * #{v(eui-base-spacing-m)});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@import '@eui/styles-base/src/styles/03-vars/colors-dark.vars';
|
|
2
|
+
|
|
3
|
+
html.eui-t-dark {
|
|
4
|
+
// default order
|
|
5
|
+
// 140, 130, 120, 110, 100, 75, 50, 25, 10, 5, 0
|
|
6
|
+
// dark-theme order
|
|
7
|
+
// 0, 5, 10, 25, 50, 75, 100, 110, 120, 130, 140
|
|
8
|
+
|
|
9
|
+
// grey shades
|
|
10
|
+
// 110, 100, 90, 80, 75, 50, 25, 20, 15, 10, 5, 2, 0
|
|
11
|
+
// 0, 2, 5, 10, 15, 20, 25, 50, 75, 80, 90, 100, 110
|
|
12
|
+
|
|
13
|
+
// colors remapped for easier forced colors over dark ones
|
|
14
|
+
--_dark-white: var(--eui-base-color-grey-100);
|
|
15
|
+
--_dark-primary-100: var(--eui-base-color-primary-50);
|
|
16
|
+
--_dark-primary-110: var(--eui-base-color-primary-25);
|
|
17
|
+
--_dark-grey-90: var(--eui-base-color-grey-5);
|
|
18
|
+
--_dark-grey-100: var(--eui-base-color-grey-2);
|
|
19
|
+
--_dark-danger-100: var(--eui-base-color-danger-50);
|
|
20
|
+
|
|
21
|
+
// layout specific
|
|
22
|
+
.eui-app-toolbar, .eui-toolbar {
|
|
23
|
+
background-color: v(_dark-primary-100);
|
|
24
|
+
color: v(_dark-white);
|
|
25
|
+
|
|
26
|
+
.eui-icon-svg {
|
|
27
|
+
svg {
|
|
28
|
+
fill: v(_dark-white);
|
|
29
|
+
color: v(_dark-white);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.eui-user-profile__infos {
|
|
34
|
+
&-name,
|
|
35
|
+
&-welcome {
|
|
36
|
+
color: v(_dark-white);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.eui-toolbar-environment {
|
|
41
|
+
background-color: v(_dark-danger-100);
|
|
42
|
+
color: v(_dark-white);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// cmp specific
|
|
46
|
+
.eui-card-content {
|
|
47
|
+
background-color: v(_dark-grey-90);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.eui-slide-toggle__handler {
|
|
51
|
+
background-color: v(_dark-white) !important;
|
|
52
|
+
|
|
53
|
+
.eui-icon-svg {
|
|
54
|
+
svg {
|
|
55
|
+
fill: v(_dark-grey-100) !important;
|
|
56
|
+
color: v(_dark-grey-100) !important;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.eui-search {
|
|
62
|
+
.eui-input-text {
|
|
63
|
+
background-color: v(_dark-primary-110);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|