@eui/styles 17.0.0-next.2 → 17.0.0-next.21
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 +7 -8
- package/dist/styles/eui-ecl-ec.css.map +1 -1
- package/dist/styles/eui-ecl-eu.css +7 -8
- package/dist/styles/eui-ecl-eu.css.map +1 -1
- package/dist/styles/eui-ecl.css +2 -0
- package/dist/styles/eui-ecl.css.map +1 -0
- package/dist/styles/eui-icons-flags.css +2 -0
- package/dist/styles/eui-icons-flags.css.map +1 -0
- package/dist/styles/eui-legacy-bootstrap-utilities.css.map +1 -1
- package/dist/styles/eui-legacy-icons-font.css +2 -0
- package/dist/styles/eui-legacy-icons-font.css.map +1 -0
- package/dist/styles/eui-print.css +1 -1
- package/dist/styles/eui-print.css.map +1 -1
- package/dist/styles/eui-showcase-all.css +2 -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-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 +6 -1
- package/src/styles/01-ecl/_module-eui-ecl.scss +27 -0
- package/src/styles/02-base/mixins/_eui-border-state.scss +7 -7
- package/src/styles/02-base/mixins/_eui-clearable-input.scss +26 -13
- package/src/styles/02-base/mixins/_eui-disabled.scss +1 -1
- package/src/styles/02-base/mixins/_eui-input.scss +8 -9
- 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/03-assets/_module-icons-flags.scss +1 -0
- package/src/styles/03-assets/_module-legacy-icons-font.scss +1 -0
- package/src/styles/05-material/_material.scss +54 -0
- package/src/styles/05-material/_module.scss +1 -25
- package/src/styles/05-material/overrides/_calendar.scss +2 -1
- 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 +53 -0
- package/src/styles/10-media/_module-print.scss +61 -291
- package/src/styles/99-utilities/_module.scss +1 -1
- package/src/styles/999-showcase/_component-demo-exports.scss +2 -0
- package/src/styles/999-showcase/_module.scss +2 -1
- package/src/styles/999-showcase/_prism-dracula.scss +584 -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-ecl.scss +7 -0
- package/src/styles/eui-icons-flags.scss +7 -0
- package/src/styles/eui-legacy-icons-font.scss +7 -0
- package/src/styles/eui-print.scss +2 -0
- package/src/styles/eui-showcase-all-dev.scss +10 -11
- package/src/styles/eui-showcase-all.scss +8 -10
- package/src/styles/eui-theme-compact.scss +7 -0
- package/src/styles/eui-theme-dark.scss +7 -0
- package/src/styles/eui.scss +0 -6
- 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/_module-cdk.scss +0 -110
- package/src/styles/05-material/compiled/_full.scss +0 -685
- package/src/styles/05-material/compiled/_sources.scss +0 -382
- package/src/styles/06-shared/_default.scss +0 -11
package/package.json
CHANGED
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
],
|
|
9
9
|
"description": "eUI core styling",
|
|
10
10
|
"author": "ec.europa.eui@gmail.com",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": "^18.13.0 || >=20.0.0",
|
|
13
|
+
"yarn": ">=1.22.4 <2",
|
|
14
|
+
"npm": "Please use yarn instead of NPM to install dependencies"
|
|
15
|
+
},
|
|
11
16
|
"license": "EUPL-1.1",
|
|
12
|
-
"version": "17.0.0-next.
|
|
17
|
+
"version": "17.0.0-next.21",
|
|
13
18
|
"tag": "next"
|
|
14
19
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '@ecl/theme-eu';
|
|
2
|
+
|
|
3
|
+
// Icons & Images
|
|
4
|
+
// @use '@ecl/vanilla-component-icon/icon';
|
|
5
|
+
|
|
6
|
+
// Layout
|
|
7
|
+
// @use '@ecl/vanilla-layout-grid/grid';
|
|
8
|
+
|
|
9
|
+
// Other atoms
|
|
10
|
+
@use '@ecl/vanilla-component-label/label-eu';
|
|
11
|
+
@use '@ecl/vanilla-component-link/link-eu';
|
|
12
|
+
|
|
13
|
+
// @use '@ecl/vanilla-utility-background/background';
|
|
14
|
+
// @use '@ecl/vanilla-utility-border/border';
|
|
15
|
+
// @use '@ecl/vanilla-utility-clearfix/clearfix';
|
|
16
|
+
// @use '@ecl/vanilla-utility-dimension/dimension';
|
|
17
|
+
@use '@ecl/vanilla-utility-flex/flex';
|
|
18
|
+
// @use '@ecl/vanilla-utility-float/float';
|
|
19
|
+
// @use '@ecl/vanilla-utility-disablescroll/disablescroll';
|
|
20
|
+
@use '@ecl/vanilla-utility-display/display';
|
|
21
|
+
// @use '@ecl/vanilla-utility-media/media';
|
|
22
|
+
// @use '@ecl/vanilla-utility-print/print';
|
|
23
|
+
@use '@ecl/vanilla-utility-screen-reader/screen-reader';
|
|
24
|
+
// @use '@ecl/vanilla-utility-shadow/shadow';
|
|
25
|
+
@use '@ecl/vanilla-utility-spacing/spacing';
|
|
26
|
+
@use '@ecl/vanilla-utility-typography/typography-eu';
|
|
27
|
+
@use '@ecl/vanilla-utility-z-index/z-index';
|
|
@@ -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,18 +1,31 @@
|
|
|
1
|
+
// This mixin sets the layout of the euiClearable directive
|
|
1
2
|
@mixin eui-clearable-input() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
font-size: v(eui-base-font-size-m);
|
|
8
|
-
user-select: none;
|
|
3
|
+
.eui-clearable-wrapper {
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
.eui-input-text--clearable-icon {
|
|
10
|
+
bottom: calc(#{v(eui-base-spacing-s)} - 2px);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: v(eui-base-spacing-s);
|
|
14
|
+
user-select: none;
|
|
15
|
+
visibility: visible;
|
|
16
|
+
z-index: v(eui-base-z-index-clearable-icon);
|
|
17
|
+
|
|
18
|
+
&:focus {
|
|
19
|
+
@include eui-accessible-focus();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> svg {
|
|
23
|
+
fill: v(eui-base-color-grey-35);
|
|
14
24
|
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
&:hover {
|
|
26
|
+
fill: v(eui-base-color-danger-100);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
}
|
|
18
31
|
}
|
|
@@ -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(
|
|
5
|
-
@include eui-accessible-focus-border();
|
|
4
|
+
@include eui-font-family();
|
|
6
5
|
appearance: none;
|
|
7
6
|
background-color: v(eui-base-color-white);
|
|
8
7
|
border: 1px solid v(eui-base-color-grey-50);
|
|
9
8
|
border-radius: v(eui-base-border-radius);
|
|
9
|
+
box-shadow: v(eui-app-box-shadow);
|
|
10
10
|
color: v(eui-base-color-grey-100);
|
|
11
11
|
display: block;
|
|
12
12
|
min-height: calc(#{v(eui-base-spacing-2xl)} + #{v(eui-base-spacing-2xs)}); // DS aligned 44px
|
|
13
13
|
padding: calc(#{v(eui-base-spacing-s)} - 1px); // Trick to have inner paddings without exceeding default min-height
|
|
14
14
|
width: 100%;
|
|
15
|
+
@include eui-accessible-focus();
|
|
15
16
|
|
|
16
17
|
&::placeholder {
|
|
17
18
|
color: v(eui-base-color-grey-50) !important;
|
|
@@ -51,21 +52,19 @@
|
|
|
51
52
|
padding-right: v(eui-base-spacing-2xl);
|
|
52
53
|
|
|
53
54
|
&-icon {
|
|
54
|
-
|
|
55
|
+
bottom: calc(#{v(eui-base-spacing-s)} - 2px);
|
|
56
|
+
cursor: pointer;
|
|
55
57
|
position: absolute;
|
|
56
58
|
right: v(eui-base-spacing-s);
|
|
57
|
-
cursor: pointer;
|
|
58
59
|
user-select: none;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@include eui-accessible-focus-border-rounded();
|
|
62
|
-
}
|
|
60
|
+
visibility: visible;
|
|
61
|
+
@include eui-accessible-focus();
|
|
63
62
|
|
|
64
63
|
> svg {
|
|
65
64
|
fill: v(eui-base-color-grey-35);
|
|
66
65
|
|
|
67
66
|
&:hover {
|
|
68
|
-
fill: v(eui-base-color-
|
|
67
|
+
fill: v(eui-base-color-danger-100);
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
}
|
|
@@ -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 {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '@eui/styles-base/src/styles/05-assets/module-icons-flags';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '@eui/styles-base/src/styles/05-assets/module-icons-font';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Material colors : generated with : http://mcg.mbitson.com
|
|
2
|
+
|
|
3
|
+
// PRIMARY
|
|
4
|
+
$palette-primary-300: #4d7cb4;
|
|
5
|
+
$palette-primary-500: #004494; // ECL BASE rgb(0, 68, 148)
|
|
6
|
+
$palette-primary-900: #001f65;
|
|
7
|
+
|
|
8
|
+
// ACCENT
|
|
9
|
+
$palette-accent-A100: #fff;
|
|
10
|
+
$palette-accent-A200: #fffcf4;
|
|
11
|
+
$palette-accent-A400: #ffecc1;
|
|
12
|
+
|
|
13
|
+
$private-eui-color: #999;
|
|
14
|
+
$private-eui-color-white: #fff;
|
|
15
|
+
|
|
16
|
+
$mat-eui-primary: (
|
|
17
|
+
300: $palette-primary-300,
|
|
18
|
+
500: $palette-primary-500,
|
|
19
|
+
900: $palette-primary-900,
|
|
20
|
+
contrast: (
|
|
21
|
+
300: $private-eui-color,
|
|
22
|
+
500: $private-eui-color-white,
|
|
23
|
+
900: $private-eui-color-white,
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
$mat-eui-accent: (
|
|
28
|
+
A100: $palette-accent-A100,
|
|
29
|
+
A200: $palette-accent-A200,
|
|
30
|
+
A400: $palette-accent-A400,
|
|
31
|
+
contrast: (
|
|
32
|
+
A100: $private-eui-color,
|
|
33
|
+
A200: $private-eui-color,
|
|
34
|
+
A400: $private-eui-color,
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
@use '@angular/material' as mat;
|
|
39
|
+
|
|
40
|
+
@include mat.core();
|
|
41
|
+
|
|
42
|
+
// define palettes
|
|
43
|
+
$eui-t-color-primary: mat.define-palette($mat-eui-primary, 500, 300, 900); // $palette-name, $default: 500, $lighter: 100, $darker: 700
|
|
44
|
+
$eui-t-color-accent: mat.define-palette($mat-eui-accent, A200, A100, A400);
|
|
45
|
+
|
|
46
|
+
// define theme
|
|
47
|
+
$eui-theme: mat.define-light-theme((
|
|
48
|
+
color: (
|
|
49
|
+
primary: $eui-t-color-primary,
|
|
50
|
+
accent: $eui-t-color-accent,
|
|
51
|
+
)
|
|
52
|
+
));
|
|
53
|
+
|
|
54
|
+
@include mat.datepicker-theme($eui-theme);
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// @include mat.core();
|
|
4
|
-
|
|
5
|
-
// // define palettes
|
|
6
|
-
// $eui-t-color-primary: mat.define-palette($mat-eui-primary, 500, 300, 900); // $palette-name, $default: 500, $lighter: 100, $darker: 700
|
|
7
|
-
// $eui-t-color-accent: mat.define-palette($mat-eui-accent, A200, A100, A400);
|
|
8
|
-
// $eui-t-color-warn: mat.define-palette($mat-eui-danger, 500, A700, 900); // The warn palette is optional (default: $mat-red)
|
|
9
|
-
|
|
10
|
-
// // define theme
|
|
11
|
-
// $eui-theme: mat.define-light-theme((
|
|
12
|
-
// color: (
|
|
13
|
-
// primary: $eui-t-color-primary,
|
|
14
|
-
// accent: $eui-t-color-accent,
|
|
15
|
-
// warn: $eui-t-color-warn,
|
|
16
|
-
// )
|
|
17
|
-
// ));
|
|
18
|
-
|
|
19
|
-
// // Apply theme
|
|
20
|
-
// @include mat.core-theme($eui-theme);
|
|
21
|
-
// @include mat.datepicker-theme($eui-theme);
|
|
22
|
-
// @include mat.autocomplete-theme($eui-theme);
|
|
23
|
-
|
|
24
|
-
// TODO v17 - check either alternatives or excludes to specific global css
|
|
25
|
-
@import 'compiled/full';
|
|
1
|
+
@import 'material';
|
|
26
2
|
@import 'overrides/module';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.mat-calendar {
|
|
2
|
-
font-size: small;
|
|
2
|
+
font-size: small !important;
|
|
3
|
+
font-family: v(eui-base-font-family) !important;
|
|
3
4
|
|
|
4
5
|
&.mat-calendar-year {
|
|
5
6
|
.mat-calendar-period-button {
|
|
@@ -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,53 @@
|
|
|
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-grey-90: var(--eui-base-color-grey-5);
|
|
17
|
+
--_dark-danger-100: var(--eui-base-color-danger-50);
|
|
18
|
+
|
|
19
|
+
// layout specific
|
|
20
|
+
.eui-app-toolbar, .eui-toolbar {
|
|
21
|
+
background-color: v(_dark-primary-100);
|
|
22
|
+
color: v(_dark-white);
|
|
23
|
+
|
|
24
|
+
.eui-icon-svg {
|
|
25
|
+
svg {
|
|
26
|
+
fill: v(_dark-white);
|
|
27
|
+
color: v(_dark-white);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.eui-toolbar-environment {
|
|
32
|
+
background-color: v(_dark-danger-100);
|
|
33
|
+
color: v(_dark-white);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// cmp specific
|
|
37
|
+
.eui-card-content {
|
|
38
|
+
background-color: v(_dark-grey-90);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.eui-slide-toggle__handler {
|
|
42
|
+
background-color: v(_dark-white) !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// PRISM
|
|
46
|
+
.token.operator,
|
|
47
|
+
.token.entity,
|
|
48
|
+
.token.url,
|
|
49
|
+
.language-css .token.string,
|
|
50
|
+
.style .token.string {
|
|
51
|
+
background: inherit;
|
|
52
|
+
}
|
|
53
|
+
}
|