@eui/styles 15.0.0-next.4 → 15.0.0-next.6
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-legacy.css +1 -1
- package/dist/styles/eui-legacy.css.map +1 -1
- package/dist/styles/eui.css +3 -1
- package/dist/styles/eui.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/05-material/_module.scss +24 -2
- package/src/styles/05-material/_old-v14-material/_module.scss +2 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_button.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_calendar.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-drag.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-global-scrollblock.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-overlay-container.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-overlay-pane.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_checkbox.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_input.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_module.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_option.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_radio.scss +0 -0
- package/src/styles/05-material/{components → _old-v14-material/components}/_tooltip.scss +0 -0
- package/src/styles/05-material/{themes → _old-v14-material/themes}/default/_module.scss +0 -0
- package/src/styles/05-material/{themes → _old-v14-material/themes}/default/_theme.scss +0 -0
- package/src/styles/05-material/{themes → _old-v14-material/themes}/default/_variables.scss +0 -0
- package/src/styles/05-material/_overrides.scss +20 -0
- package/src/styles/07-elements/_module-legacy.scss +1 -0
- package/src/styles/07-elements/legacy/_ux-input-group.scss +56 -0
- package/src/styles/eui-dev.scss +1 -1
- package/src/styles/eui.scss +1 -1
- package/src/styles/08-themes/_module-eui.scss +0 -1
- package/src/styles/08-themes/eui/_module.scss +0 -1
- package/src/styles/08-themes/eui/compact/_eui-t-compact.scss +0 -154
- package/src/styles/08-themes/eui/compact/_module.scss +0 -2
package/package.json
CHANGED
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
// @
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
// @use '@angular/cdk' as cdk;
|
|
3
|
+
|
|
4
|
+
@include mat.core();
|
|
5
|
+
// @include cdk.overlay();
|
|
6
|
+
|
|
7
|
+
// define palettes
|
|
8
|
+
$eui-t-color-primary: mat.define-palette($mat-eui-primary, 500, 300, 900); // $palette-name, $default: 500, $lighter: 100, $darker: 700
|
|
9
|
+
$eui-t-color-accent: mat.define-palette($mat-eui-accent, A200, A100, A400);
|
|
10
|
+
$eui-t-color-warn: mat.define-palette($mat-eui-danger, 500, A700, 900); // The warn palette is optional (default: $mat-red)
|
|
11
|
+
|
|
12
|
+
// define theme
|
|
13
|
+
$eui-theme: mat.define-light-theme((
|
|
14
|
+
color: (
|
|
15
|
+
primary: $eui-t-color-primary,
|
|
16
|
+
accent: $eui-t-color-accent,
|
|
17
|
+
warn: $eui-t-color-warn,
|
|
18
|
+
)
|
|
19
|
+
));
|
|
20
|
+
|
|
21
|
+
// Apply theme
|
|
22
|
+
@include mat.core-theme($eui-theme);
|
|
23
|
+
|
|
24
|
+
@import 'overrides';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-overlay-pane.scss
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.cdk-overlay-pane {
|
|
2
|
+
background-color: white;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
// Disable global scrollbars (used in full screen eui-dialog for example)
|
|
6
|
+
.cdk-global-scrollblock {
|
|
7
|
+
position: fixed;
|
|
8
|
+
overflow-y: scroll; // Material default
|
|
9
|
+
width: 100%;
|
|
10
|
+
@include eui-scrollbars;
|
|
11
|
+
}
|
|
12
|
+
@include media($eui-bkp-mobile) {
|
|
13
|
+
.cdk-global-scrollblock {
|
|
14
|
+
height: 100%;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
position: fixed;
|
|
17
|
+
width: 100%;
|
|
18
|
+
@include eui-scrollbars;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// APPEND & PREPEND
|
|
2
|
+
.ux-input-group {
|
|
3
|
+
align-items: stretch;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: nowrap; // for append & prepend options it must be nowrap
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
.ux-input-group-text {
|
|
10
|
+
align-items: center;
|
|
11
|
+
background-color: v(eui-base-color-grey-5);
|
|
12
|
+
border: 1px solid v(eui-base-color-grey-20);
|
|
13
|
+
border-radius: v(eui-base-border-radius);
|
|
14
|
+
color: v(eui-base-color-grey-100);
|
|
15
|
+
display: flex;
|
|
16
|
+
font-size: v(eui-base-font-size);
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
line-height: v(eui-base-line-height);
|
|
20
|
+
margin-bottom: 0;
|
|
21
|
+
min-width: v(eui-base-spacing-2xl);
|
|
22
|
+
padding: v(eui-base-spacing-2xs);
|
|
23
|
+
text-align: center;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ux-input-group-prepend {
|
|
28
|
+
display: flex;
|
|
29
|
+
margin-right: -1px;
|
|
30
|
+
|
|
31
|
+
.ux-input-group-text {
|
|
32
|
+
border-bottom-right-radius: 0;
|
|
33
|
+
border-top-right-radius: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ux-input-group-append {
|
|
38
|
+
display: flex;
|
|
39
|
+
margin-left: -1px;
|
|
40
|
+
|
|
41
|
+
.ux-input-group-text {
|
|
42
|
+
border-bottom-left-radius: 0;
|
|
43
|
+
border-top-left-radius: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ux-form-control:not(:first-child) {
|
|
48
|
+
border-bottom-left-radius: 0;
|
|
49
|
+
border-top-left-radius: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ux-form-control:not(:last-child) {
|
|
53
|
+
border-bottom-right-radius: 0;
|
|
54
|
+
border-top-right-radius: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
package/src/styles/eui-dev.scss
CHANGED
package/src/styles/eui.scss
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'eui/module';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'compact/module';
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
// GLOBAL COMPACT THEME
|
|
2
|
-
///////////////////////
|
|
3
|
-
html.eui-t-compact {
|
|
4
|
-
// Exposed CSS variables
|
|
5
|
-
--eui-font-size: 14px; // Font size base for compact theme
|
|
6
|
-
--eui-line-height-base: 1.25; // Unitless number value is multiplied by the element's font size
|
|
7
|
-
// Setup
|
|
8
|
-
font-size: var(--eui-font-size); // Applies the defined custom font size
|
|
9
|
-
line-height: var(--eui-line-height-base); // Applies the defined custom line height ratio
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// FORM ELEMENTS
|
|
13
|
-
/////////////////
|
|
14
|
-
form.eui-t-compact {
|
|
15
|
-
// Exposed CSS variables
|
|
16
|
-
--eui-font-size: 14px; // Font size base for compact theme
|
|
17
|
-
--eui-line-height-base: 1.25; // Unitless number value is multiplied by the element's font size
|
|
18
|
-
// Setup
|
|
19
|
-
font-size: var(--eui-font-size); // Applies the defined custom font size
|
|
20
|
-
line-height: var(--eui-line-height-base); // Applies the defined custom line height ratio
|
|
21
|
-
|
|
22
|
-
// Internals
|
|
23
|
-
input,
|
|
24
|
-
select,
|
|
25
|
-
textarea {
|
|
26
|
-
height: calc(2.5 * #{v(eui-spacing)}); // Default: 40px
|
|
27
|
-
|
|
28
|
-
&[readonly],
|
|
29
|
-
&--readonly {
|
|
30
|
-
height: inherit;
|
|
31
|
-
padding: 0 !important;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.eui-input-group {
|
|
36
|
-
margin-bottom: var(--eui-spacing-xs);
|
|
37
|
-
|
|
38
|
-
label {
|
|
39
|
-
margin-bottom: var(--eui-spacing-2xs);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.eui-select:not([multiple]),
|
|
44
|
-
.eui-select[size="1"]:not([size]) {
|
|
45
|
-
padding: v(eui-spacing-2xs) v(eui-spacing-l) v(eui-spacing-2xs) v(eui-spacing-s); // reserve right padding space for icon/svg
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.eui-textarea {
|
|
49
|
-
&__model {
|
|
50
|
-
padding: v(eui-spacing-xs) v(eui-spacing-s);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// TODO: replace with eui-datepicker
|
|
55
|
-
.ux-datepicker {
|
|
56
|
-
input {
|
|
57
|
-
height: calc(2.5 * #{v(eui-spacing)});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ux-button.ux-button--icon-only,
|
|
61
|
-
.ux-datepicker__toggler.ux-datepicker__toggler-icon {
|
|
62
|
-
height: calc(2.5 * #{v(eui-spacing)});
|
|
63
|
-
min-height: calc(2.5 * #{v(eui-spacing)});
|
|
64
|
-
min-width: calc(2.5 * #{v(eui-spacing)});
|
|
65
|
-
padding: calc(#{v(eui-spacing-xs)} - 1px) v(eui-spacing-xs);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&[readonly],
|
|
69
|
-
&--read-only {
|
|
70
|
-
height: inherit;
|
|
71
|
-
padding: 0 !important;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.eui-input-group-addon-item {
|
|
76
|
-
min-height: calc(2.5 * #{v(eui-spacing)});
|
|
77
|
-
min-width: calc(2.5 * #{v(eui-spacing)});
|
|
78
|
-
padding: calc(#{v(eui-spacing-xs)} - 1px);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.eui-button {
|
|
82
|
-
min-height: calc(2.5 * #{v(eui-spacing)});
|
|
83
|
-
min-width: calc(2.5 * #{v(eui-spacing)});
|
|
84
|
-
padding: calc(#{v(eui-spacing-xs)} - 1px) v(eui-spacing-s);
|
|
85
|
-
|
|
86
|
-
&--icon-only {
|
|
87
|
-
padding: calc(#{v(eui-spacing-xs)} - 1px) v(eui-spacing-xs);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.eui-autocomplete {
|
|
92
|
-
&__container {
|
|
93
|
-
.eui-autocomplete__field-wrapper input {
|
|
94
|
-
height: calc(2.5 * #{v(eui-spacing)}); // 40px
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// TABLE
|
|
101
|
-
/////////////////
|
|
102
|
-
.eui-table.eui-t-compact {
|
|
103
|
-
// Exposed CSS variables
|
|
104
|
-
--eui-font-size: 14px; // Font size base for compact theme
|
|
105
|
-
--eui-line-height-base: 1.25; // Unitless number value is multiplied by the element's font size
|
|
106
|
-
--eui-table-header-padding: var(--eui-spacing-s); // Table header spacer set to 0.75rem
|
|
107
|
-
--eui-table-row-padding: var(--eui-spacing-2xs); // Table body row spacer set to 0.25rem
|
|
108
|
-
--eui-table-footer-padding: var(--eui-spacing-s); // Table footer spacer set to 0.75rem
|
|
109
|
-
// Setup
|
|
110
|
-
font-size: var(--eui-font-size); // Applies the defined custom font size
|
|
111
|
-
line-height: var(--eui-line-height-base); // Applies the defined custom line height ratio
|
|
112
|
-
|
|
113
|
-
// Internals
|
|
114
|
-
thead {
|
|
115
|
-
tr {
|
|
116
|
-
height: auto;
|
|
117
|
-
|
|
118
|
-
th {
|
|
119
|
-
padding: var(--eui-table-header-padding);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
tbody {
|
|
125
|
-
tr {
|
|
126
|
-
height: auto;
|
|
127
|
-
|
|
128
|
-
td {
|
|
129
|
-
padding: var(--eui-table-row-padding);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
tfoot {
|
|
135
|
-
tr {
|
|
136
|
-
height: auto;
|
|
137
|
-
|
|
138
|
-
td {
|
|
139
|
-
padding: var(--eui-table-footer-padding);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// CARD
|
|
146
|
-
/////////////////
|
|
147
|
-
.eui-card.eui-t-compact {
|
|
148
|
-
// Exposed CSS variables
|
|
149
|
-
--eui-font-size: 14px; // Font size base for compact theme
|
|
150
|
-
--eui-line-height-base: 1.25; // Unitless number value is multiplied by the element's font size
|
|
151
|
-
// Setup
|
|
152
|
-
font-size: var(--eui-font-size); // Applies the defined custom font size
|
|
153
|
-
line-height: var(--eui-line-height-base); // Applies the defined custom line height ratio
|
|
154
|
-
}
|