@eui/styles 15.0.0-next.2 → 15.0.0-next.20

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.
Files changed (99) hide show
  1. package/dist/styles/eui-ecl-ec.css +8 -0
  2. package/dist/styles/eui-ecl-ec.css.map +1 -0
  3. package/dist/styles/eui-ecl-eu.css +8 -0
  4. package/dist/styles/eui-ecl-eu.css.map +1 -0
  5. package/dist/styles/eui-extra-utilities.css +2 -0
  6. package/dist/styles/eui-extra-utilities.css.map +1 -0
  7. package/dist/styles/eui-legacy-bootstrap.css +7 -0
  8. package/dist/styles/eui-legacy-bootstrap.css.map +1 -0
  9. package/dist/styles/eui-legacy-icons-font.css +2 -0
  10. package/dist/styles/eui-legacy-icons-font.css.map +1 -0
  11. package/dist/styles/eui-legacy-utilities.css +2 -0
  12. package/dist/styles/eui-legacy-utilities.css.map +1 -0
  13. package/dist/styles/eui-legacy.css +2 -2
  14. package/dist/styles/eui-legacy.css.map +1 -1
  15. package/dist/styles/eui-print.css +1 -1
  16. package/dist/styles/eui-print.css.map +1 -1
  17. package/dist/styles/eui-showcase-all.css +15 -0
  18. package/dist/styles/eui-showcase-all.css.map +1 -0
  19. package/dist/styles/eui.css +3 -8
  20. package/dist/styles/eui.css.map +1 -1
  21. package/package.json +1 -1
  22. package/src/styles/01-ecl/_module-ec.scss +1 -0
  23. package/src/styles/01-ecl/_module-eu.scss +1 -0
  24. package/src/styles/02-base/mixins/_eui-svg-icons-content.scss +18 -0
  25. package/src/styles/02-base/mixins/_module.scss +2 -0
  26. package/src/styles/02b-base-vars/_layout.vars.scss +4 -0
  27. package/src/styles/02b-base-vars/_module.scss +1 -1
  28. package/src/styles/03-assets/_module-legacy-icons-font.scss +2 -0
  29. package/src/styles/03-assets/_module.scss +0 -1
  30. package/src/styles/04-vendors/{_module.scss → _module-bootstrap.scss} +0 -0
  31. package/src/styles/05-material/_module.scss +30 -2
  32. package/src/styles/05-material/_old-v14-material/_module.scss +2 -0
  33. package/src/styles/05-material/{components → _old-v14-material/components}/_button.scss +0 -0
  34. package/src/styles/05-material/{components → _old-v14-material/components}/_calendar.scss +0 -0
  35. package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-drag.scss +0 -0
  36. package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-global-scrollblock.scss +0 -0
  37. package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-overlay-container.scss +0 -0
  38. package/src/styles/05-material/{components → _old-v14-material/components}/_cdk-overlay-pane.scss +0 -0
  39. package/src/styles/05-material/{components → _old-v14-material/components}/_checkbox.scss +0 -0
  40. package/src/styles/05-material/{components → _old-v14-material/components}/_input.scss +0 -0
  41. package/src/styles/05-material/{components → _old-v14-material/components}/_module.scss +0 -0
  42. package/src/styles/05-material/{components → _old-v14-material/components}/_option.scss +0 -0
  43. package/src/styles/05-material/{components → _old-v14-material/components}/_radio.scss +0 -0
  44. package/src/styles/05-material/{components → _old-v14-material/components}/_tooltip.scss +0 -0
  45. package/src/styles/05-material/{themes → _old-v14-material/themes}/default/_module.scss +0 -0
  46. package/src/styles/05-material/{themes → _old-v14-material/themes}/default/_theme.scss +0 -0
  47. package/src/styles/05-material/{themes → _old-v14-material/themes}/default/_variables.scss +0 -0
  48. package/src/styles/05-material/_overrides.scss +1 -0
  49. package/src/styles/05-material/overrides/_cdk.scss +22 -0
  50. package/src/styles/05-material/overrides/_tooltip.scss +290 -0
  51. package/src/styles/06-shared/{_old-to-review/_eui-input-maxlength.scss → _eui-input-maxlength.scss} +0 -0
  52. package/src/styles/06-shared/_flex.scss +2 -0
  53. package/src/styles/06-shared/_module.scss +3 -3
  54. package/src/styles/06-shared/_old-to-review/_elements-typography.scss +1 -18
  55. package/src/styles/{07-elements/legacy/_old → 06-shared/_old-to-review}/_ux-form-group.scss +0 -0
  56. package/src/styles/06-shared/_old-to-review/_ux-input-maxlength.scss +25 -0
  57. package/src/styles/{07-elements/legacy/_old/_input-placeholders.scss → 06-shared/_old-to-review/_ux-input-placeholder.scss} +0 -0
  58. package/src/styles/06-shared/_typography.scss +28 -0
  59. package/src/styles/07-elements/_module-legacy.scss +6 -18
  60. package/src/styles/07-elements/legacy/{_old → _old-to-review}/_inputs.scss +0 -0
  61. package/src/styles/07-elements/legacy/_ux-form-group.scss +62 -0
  62. package/src/styles/07-elements/legacy/{_old/_input-group.scss → _ux-input-group.scss} +0 -0
  63. package/src/styles/07-elements/legacy/_ux-input-maxlength.scss +25 -0
  64. package/src/styles/07-elements/legacy/_ux-input-placeholder.scss +56 -0
  65. package/src/styles/08-themes/{compact/_eui-t-compact.scss → _module-compact.scss} +0 -0
  66. package/src/styles/11-extras/_cookie-consent.scss +13 -0
  67. package/src/styles/11-extras/_module.scss +3 -0
  68. package/src/styles/11-extras/_preloader-eu.scss +159 -0
  69. package/src/styles/11-extras/_preloader.scss +108 -0
  70. package/src/styles/99-utilities/_module-base.scss +1 -0
  71. package/src/styles/99-utilities/_module-extras.scss +1 -0
  72. package/src/styles/99-utilities/_module.scss +1 -1
  73. package/src/styles/999-showcase/_module.scss +3 -1
  74. package/src/styles/_base.scss +0 -1
  75. package/src/styles/eui-ecl-ec.scss +1 -0
  76. package/src/styles/eui-ecl-eu.scss +1 -0
  77. package/src/styles/{eui-showcase.scss → eui-extra-utilities.scss} +2 -2
  78. package/src/styles/eui-legacy-bootstrap.scss +7 -0
  79. package/src/styles/eui-legacy-icons-font.scss +7 -0
  80. package/src/styles/eui-legacy-utilities.scss +7 -0
  81. package/src/styles/eui-legacy.scss +0 -3
  82. package/src/styles/eui-showcase-all-dev.scss +48 -0
  83. package/src/styles/eui-showcase-all.scss +50 -0
  84. package/src/styles/eui.scss +9 -11
  85. package/dist/styles/eui-showcase.css +0 -2
  86. package/dist/styles/eui-showcase.css.map +0 -1
  87. package/src/styles/07-elements/legacy/_old/_ux-card.scss +0 -35
  88. package/src/styles/07-elements/legacy/_old/_ux-control-feedback.scss +0 -8
  89. package/src/styles/07-elements/legacy/_old/_ux-form-control.scss +0 -3
  90. package/src/styles/07-elements/legacy/_old/_ux-tree.scss +0 -12
  91. package/src/styles/08-themes/_module-eui.scss +0 -1
  92. package/src/styles/08-themes/_module.scss +0 -1
  93. package/src/styles/08-themes/compact/_module.scss +0 -1
  94. package/src/styles/08-themes/eui/_module.scss +0 -1
  95. package/src/styles/08-themes/eui/compact/_eui-t-compact.scss +0 -154
  96. package/src/styles/08-themes/eui/compact/_module.scss +0 -2
  97. package/src/styles/eui-dev.scss +0 -33
  98. package/src/styles/eui-legacy-dev.scss +0 -16
  99. package/src/styles/eui-showcase-dev.scss +0 -5
package/package.json CHANGED
@@ -9,6 +9,6 @@
9
9
  "description": "eUI core styling",
10
10
  "author": "ec.europa.eui@gmail.com",
11
11
  "license": "EUPL-1.1",
12
- "version": "15.0.0-next.2",
12
+ "version": "15.0.0-next.20",
13
13
  "tag": "next"
14
14
  }
@@ -0,0 +1 @@
1
+ @import '@eui/styles-base/src/styles/01-ecl/module-ec';
@@ -0,0 +1 @@
1
+ @import '@eui/styles-base/src/styles/01-ecl/module-eu';
@@ -0,0 +1,18 @@
1
+ @mixin euiSvgCheckmarkWhite() {
2
+ height: 1rem;
3
+ width: 1rem;
4
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Ctitle%3ECheckmark%3C/title%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='64' d='M416 128L192 384l-96-96'/%3E%3C/svg%3E");
5
+ }
6
+
7
+ @mixin euiSvgChevronForward() {
8
+ height: 1rem;
9
+ width: 1rem;
10
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Ctitle%3EChevron Forward%3C/title%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144'/%3E%3C/svg%3E");
11
+ }
12
+
13
+ @mixin euiSvgChevronDown() {
14
+ height: 1rem;
15
+ width: 1rem;
16
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Ctitle%3EChevron Down%3C/title%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144'/%3E%3C/svg%3E");
17
+ }
18
+
@@ -13,3 +13,5 @@
13
13
 
14
14
  @import 'ux-form-control-state';
15
15
  @import 'ux-clearable-input';
16
+
17
+ @import 'eui-svg-icons-content';
@@ -5,6 +5,10 @@
5
5
  --eui-app-header-height-active: 90px;
6
6
  --eui-app-header-height-shrink: 0px;
7
7
 
8
+ --eui-app-breadcrumbs-height-default: 0px;
9
+ --eui-app-breadcrumbs-height: 0px;
10
+ --eui-app-breadcrumbs-height-active: 20px;
11
+
8
12
  --eui-app-top-message-height-default: 0px;
9
13
  --eui-app-top-message-height: 0px;
10
14
  --eui-app-top-message-height-active: 42px;
@@ -1,2 +1,2 @@
1
- @import '@eui/styles-base/src/styles/03-vars/module';
1
+ @import '@eui/styles-base/src/styles/03-vars/module-base';
2
2
  @import 'layout.vars';
@@ -0,0 +1,2 @@
1
+ // ICON FONT legacy export
2
+ @import '@eui/styles-base/src/styles/05-assets/module-icons-font';
@@ -1,2 +1 @@
1
1
  @import '@eui/styles-base/src/styles/05-assets/module-icons-svg';
2
- @import '@eui/styles-base/src/styles/05-assets/module-icons-font';
@@ -1,2 +1,30 @@
1
- // @import 'themes/default/module'; // TODO eUI 15 migration
2
- // @import 'components/module'; // TODO eUI 15 migration
1
+ @use '@angular/material' as mat;
2
+ @use '@angular/material/datepicker/datepicker-theme' as datepicker-theme;
3
+ @use '@angular/material/autocomplete/autocomplete-theme' as autocomplete-theme;
4
+ @use '@angular/material/slide-toggle/slide-toggle-theme' as slide-toggle-theme;
5
+
6
+ @include mat.core();
7
+ // @include cdk.overlay();
8
+
9
+ // define palettes
10
+ $eui-t-color-primary: mat.define-palette($mat-eui-primary, 500, 300, 900); // $palette-name, $default: 500, $lighter: 100, $darker: 700
11
+ $eui-t-color-accent: mat.define-palette($mat-eui-accent, A200, A100, A400);
12
+ $eui-t-color-warn: mat.define-palette($mat-eui-danger, 500, A700, 900); // The warn palette is optional (default: $mat-red)
13
+
14
+ // define theme
15
+ $eui-theme: mat.define-light-theme((
16
+ color: (
17
+ primary: $eui-t-color-primary,
18
+ accent: $eui-t-color-accent,
19
+ warn: $eui-t-color-warn,
20
+ )
21
+ ));
22
+
23
+ // Apply theme
24
+ @include mat.core-theme($eui-theme);
25
+ @include datepicker-theme.color($eui-theme);
26
+ @include autocomplete-theme.color($eui-theme);
27
+ @include slide-toggle-theme.color($eui-theme);
28
+
29
+ // overrides over material for some edge cases
30
+ @import 'overrides';
@@ -0,0 +1,2 @@
1
+ @import 'themes/default/module';
2
+ @import 'components/module';
@@ -0,0 +1 @@
1
+ @import 'overrides/cdk';
@@ -0,0 +1,22 @@
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: visible;
9
+ width: 100%;
10
+ @include eui-scrollbars;
11
+ top: 0 !important;
12
+ left: 0 !important;
13
+ }
14
+ @include media($eui-bkp-mobile) {
15
+ .cdk-global-scrollblock {
16
+ height: 100%;
17
+ overflow: auto;
18
+ position: fixed;
19
+ width: 100%;
20
+ @include eui-scrollbars;
21
+ }
22
+ }
@@ -0,0 +1,290 @@
1
+ /* eUI Tooltip styles overrides and customizations based on Angular Material Tooltip
2
+ Features :
3
+ - added material shadow by default
4
+ - added optional arrows display based on tooltip position and color state class
5
+ - allow multi-lines feature with pre-line white space setting
6
+ - allow tooltip content alignments (default: centered)
7
+ - custom spacings
8
+ - set minimum width (2rem)
9
+ - custom font styling (letter spacing)
10
+ - set default tooltip borders to be squared
11
+ - optional tooltip rounded borders
12
+ */
13
+
14
+ $tooltip-background-color: rgba(37, 36, 36, 0.9); // MD rgba(97,97,97,.9);
15
+ $tooltip-arrow-width: 8px;
16
+
17
+ // Each Tooltip is instanciated within the cdk-overlay-container
18
+ // with its own life cycle based on optional show/hide delay
19
+ .cdk-overlay-container {
20
+ .cdk-overlay-pane.mat-tooltip-panel {
21
+ .mat-tooltip {
22
+ --eui-base-border-radius: 4px; // Override root default (MD)
23
+
24
+ background-color: $tooltip-background-color;
25
+ border-radius: 0 !important; // defaut squared
26
+ box-shadow: v(eui-base-shadow-4);
27
+ color: v(eui-base-color-white) !important; // default font color
28
+ font-size: v(eui-base-font-size-xs);
29
+ letter-spacing: 0.5px;
30
+ margin: v(eui-base-spacing-m) !important; // This controls the spacing from tooltip to parent element
31
+ max-width: 50vw;
32
+ min-width: v(eui-base-spacing-2xl);
33
+ overflow: visible !important; // Mandatory for arrows to be displayed
34
+ padding-left: v(eui-base-spacing-xs) !important; // We must control the paddings from which arrow's positions are set
35
+ padding-right: v(eui-base-spacing-xs) !important;
36
+ padding-bottom: v(eui-base-spacing-xs) !important;
37
+ padding-top: v(eui-base-spacing-xs) !important;
38
+ text-align: center; // default (see optional content alignment)
39
+ text-overflow: ellipsis;
40
+ white-space: pre-line; // Allow multi-lines tooltip
41
+
42
+ // ARROWS COMMON BASE
43
+ &:before {
44
+ border-color: transparent;
45
+ border-style: solid;
46
+ border-width: $tooltip-arrow-width;
47
+ bottom: 0;
48
+ content: '';
49
+ display: block;
50
+ height: 0;
51
+ position: absolute;
52
+ width: 0;
53
+ }
54
+
55
+ &.eui-tooltip {
56
+ white-space: pre-line; // Allow multi-lines tooltip
57
+
58
+ // COLOR STATES
59
+ &.eui-tooltip--primary {
60
+ background-color: v(eui-base-color-primary-100);
61
+ color: v(eui-base-color-white);
62
+ }
63
+
64
+ &.eui-tooltip--secondary {
65
+ background-color: v(eui-base-color-grey-15);
66
+ color: v(eui-base-color-grey-100) !important;
67
+ }
68
+
69
+ &.eui-tooltip--info {
70
+ background-color: v(eui-base-color-info-100);
71
+ color: v(eui-base-color-white);
72
+ }
73
+
74
+ &.eui-tooltip--success {
75
+ background-color: v(eui-base-color-success-100);
76
+ color: v(eui-base-color-white);
77
+ }
78
+
79
+ &.eui-tooltip--warning {
80
+ background-color: v(eui-base-color-warning-100);
81
+ color: v(eui-base-color-black) !important; // WCAG2 AA compliant
82
+ }
83
+
84
+ &.eui-tooltip--danger {
85
+ background-color: v(eui-base-color-danger-100);
86
+ color: v(eui-base-color-white);
87
+ }
88
+
89
+ &.eui-tooltip--accent {
90
+ color: v(eui-base-color-black) !important; // WCAG2 AA compliant
91
+ background-color: v(eui-base-color-accent-100);
92
+ }
93
+
94
+ &.eui-tooltip--rounded {
95
+ border-radius: v(eui-base-border-radius) !important;
96
+ }
97
+
98
+ // CONTENT ALIGNMENT
99
+ &.eui-tooltip--content-center {
100
+ text-align: center;
101
+ }
102
+
103
+ &.eui-tooltip--content-left {
104
+ text-align: left;
105
+ }
106
+
107
+ &.eui-tooltip--content-right {
108
+ text-align: right;
109
+ }
110
+
111
+ &.eui-tooltip--content-justify {
112
+ hyphens: auto;
113
+ text-align: justify;
114
+ word-break: break-word;
115
+ }
116
+
117
+ // SHOW ARROWS
118
+ &.eui-tooltip--arrows {
119
+
120
+ // TOOLTIP POSITION TOP (default)
121
+ &.eui-tooltip--above {
122
+ // ADD BOTTOM ARROW
123
+ &:before {
124
+ border-color: $tooltip-background-color transparent transparent transparent;
125
+ left: calc(50% - #{$tooltip-arrow-width});
126
+ transform: translate(0, $tooltip-arrow-width * 2);
127
+ }
128
+
129
+ &.eui-tooltip {
130
+ &--primary:before { border-color: v(eui-base-color-primary-100) transparent transparent transparent; }
131
+ &--secondary:before { border-color: v(eui-base-color-grey-15) transparent transparent transparent; }
132
+ &--info:before { border-color: v(eui-base-color-info-100) transparent transparent transparent; }
133
+ &--success:before { border-color: v(eui-base-color-success-100) transparent transparent transparent; }
134
+ &--warning:before { border-color: v(eui-base-color-warning-100) transparent transparent transparent; }
135
+ &--danger:before { border-color: v(eui-base-color-danger-100) transparent transparent transparent; }
136
+ &--accent:before { border-color: v(eui-base-color-accent-100) transparent transparent transparent; }
137
+ }
138
+ }
139
+
140
+ // TOOLTIP POSITION BOTTOM
141
+ &.eui-tooltip--below {
142
+ // ADD TOP ARROW
143
+ &:before {
144
+ border-color: transparent transparent $tooltip-background-color transparent;
145
+ left: calc(50% - #{$tooltip-arrow-width});
146
+ top: 0;
147
+ transform: translate(0, -100%);
148
+ }
149
+
150
+ &.eui-tooltip {
151
+ &--primary:before { border-color: transparent transparent v(eui-base-color-primary-100) transparent; }
152
+ &--secondary:before { border-color: transparent transparent v(eui-base-color-grey-15) transparent; }
153
+ &--info:before { border-color: transparent transparent v(eui-base-color-info-100) transparent; }
154
+ &--success:before { border-color: transparent transparent v(eui-base-color-success-100) transparent; }
155
+ &--warning:before { border-color: transparent transparent v(eui-base-color-warning-100) transparent; }
156
+ &--danger:before { border-color: transparent transparent v(eui-base-color-danger-100) transparent; }
157
+ &--accent:before { border-color: transparent transparent v(eui-base-color-accent-100) transparent; }
158
+ }
159
+ }
160
+
161
+ // TOOLTIP POSITION LEFT
162
+ &.eui-tooltip--left,
163
+ &.eui-tooltip--before {
164
+ // ADD RIGHT ARROW
165
+ &:before {
166
+ border-color: transparent transparent transparent $tooltip-background-color;
167
+ right: -$tooltip-arrow-width;
168
+ top: 50%;
169
+ transform: translate($tooltip-arrow-width, -$tooltip-arrow-width);
170
+ }
171
+
172
+ &.eui-tooltip {
173
+ &--primary:before { border-color: transparent transparent transparent v(eui-base-color-primary-100); }
174
+ &--secondary:before { border-color: transparent transparent transparent v(eui-base-color-grey-15); }
175
+ &--info:before { border-color: transparent transparent transparent v(eui-base-color-info-100); }
176
+ &--success:before { border-color: transparent transparent transparent v(eui-base-color-success-100); }
177
+ &--warning:before { border-color: transparent transparent transparent v(eui-base-color-warning-100); }
178
+ &--danger:before { border-color: transparent transparent transparent v(eui-base-color-danger-100); }
179
+ &--accent:before { border-color: transparent transparent transparent v(eui-base-color-accent-100); }
180
+ }
181
+ }
182
+
183
+ // TOOLTIP POSITION RIGHT
184
+ &.eui-tooltip--right,
185
+ &.eui-tooltip--after {
186
+ // ADD LEFT ARROW
187
+ &:before {
188
+ border-color: transparent $tooltip-background-color transparent transparent;
189
+ left: -$tooltip-arrow-width;
190
+ top: 50%;
191
+ transform: translate(-$tooltip-arrow-width, -$tooltip-arrow-width);
192
+ }
193
+
194
+ &.eui-tooltip {
195
+ &--primary:before { border-color: transparent v(eui-base-color-primary-100) transparent transparent; }
196
+ &--secondary:before { border-color: transparent v(eui-base-color-grey-15) transparent transparent; }
197
+ &--info:before { border-color: transparent v(eui-base-color-info-100) transparent transparent; }
198
+ &--success:before { border-color: transparent v(eui-base-color-success-100) transparent transparent; }
199
+ &--warning:before { border-color: transparent v(eui-base-color-warning-100) transparent transparent; }
200
+ &--danger:before { border-color: transparent v(eui-base-color-danger-100) transparent transparent; }
201
+ &--accent:before { border-color: transparent v(eui-base-color-accent-100) transparent transparent; }
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+
210
+ // In case when we have a tooltip to be shown below, but that's not possible because of bottom of the page.
211
+ .cdk-overlay-container {
212
+ .cdk-overlay-pane.mat-tooltip-panel-above {
213
+ .mat-tooltip {
214
+ &.eui-tooltip {
215
+ &.eui-tooltip--arrows {
216
+ &.eui-tooltip--below {
217
+ &:before {
218
+ border-color: $tooltip-background-color transparent transparent transparent;
219
+ left: calc(50% - #{$tooltip-arrow-width});
220
+ top: auto;
221
+ transform: translate(0, $tooltip-arrow-width * 2);
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+ }
229
+
230
+ // When we have a tooltip tp be shown above, but that's not possible because of the top of the page. Arrow should be flipped.
231
+ .cdk-overlay-container {
232
+ .cdk-overlay-pane.mat-tooltip-panel-below {
233
+ .mat-tooltip {
234
+ &.eui-tooltip {
235
+ &.eui-tooltip--arrows {
236
+ &.eui-tooltip--above {
237
+ &:before {
238
+ border-color: transparent transparent $tooltip-background-color transparent;
239
+ top: 0;
240
+ transform: translate(0, -100%);
241
+ }
242
+ }
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+
249
+ // When the tooltip should appear on the left, but it reaches end of the page.
250
+ .cdk-overlay-container {
251
+ .cdk-overlay-pane.mat-tooltip-panel-left {
252
+ .mat-tooltip {
253
+ &.eui-tooltip {
254
+ &.eui-tooltip--arrows {
255
+ &.eui-tooltip--right,
256
+ &.eui-tooltip--after {
257
+ &:before {
258
+ border-color: transparent transparent transparent $tooltip-background-color;
259
+ right: -$tooltip-arrow-width;
260
+ left: auto;
261
+ transform: translate($tooltip-arrow-width, -$tooltip-arrow-width);
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ }
269
+
270
+ // When the tooltip should appear on the right, but it reaches end of the page.
271
+ .cdk-overlay-container {
272
+ .cdk-overlay-pane.mat-tooltip-panel-right {
273
+ .mat-tooltip {
274
+ &.eui-tooltip {
275
+ &.eui-tooltip--arrows {
276
+ &.eui-tooltip--left,
277
+ &.eui-tooltip--before {
278
+ &:before {
279
+ border-color: transparent $tooltip-background-color transparent transparent;
280
+ left: -$tooltip-arrow-width;
281
+ right: auto;
282
+ top: 50%;
283
+ transform: translate(-$tooltip-arrow-width, -$tooltip-arrow-width);
284
+ }
285
+ }
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
@@ -1,3 +1,5 @@
1
+ // TODO v15 remove / replace in showczase
2
+
1
3
  .flex-container {
2
4
  align-items: center;
3
5
  display: flex;
@@ -1,8 +1,8 @@
1
+ // TODO v15 check to transfer to cmp
2
+
1
3
  // @import 'eui-inline-edit'; // eUI13+
2
- // @import 'eui-input-maxlength'; // eUI13+ DS aligned
3
- // @import 'inputs-placeholder'; // eUI13 + legacy (common)
4
- // @import 'inputs-maxlength'; // KEEP for legacy
5
4
  // @import 'inputs-ngvalidation'; // KEEP for legacy
6
5
 
7
6
  @import 'flex';
8
7
  @import 'typography';
8
+ @import 'eui-input-maxlength'; // eUI13+ DS aligned
@@ -1,25 +1,8 @@
1
1
  // TODO v15 transfer to own cmp styles for some
2
2
 
3
- a,
4
- a:not([href]):not([tabindex]) {
5
- color: v(eui-base-color-link);
6
- cursor: pointer;
7
-
8
- &:hover,
9
- &:focus {
10
- color: v(eui-base-color-link);
11
- text-decoration: underline;
12
- }
13
- }
14
3
 
15
- a {
16
- background-color: transparent;
17
- text-decoration: none;
18
- }
19
4
 
20
- a:focus {
21
- text-decoration: underline;
22
- }
5
+
23
6
 
24
7
  p {
25
8
  margin-top: v(eui-base-spacing-m);
@@ -0,0 +1,25 @@
1
+ // Used by Legacy & eUI10.x
2
+ // For eUI13+ use eui-input-maxlength.scss
3
+ .input-maxlength-wrapper {
4
+ position: relative;
5
+ width: 100%;
6
+
7
+ .input-maxlength {
8
+ background-color: v(eui-base-color-grey-10);
9
+ border: 1px solid v(eui-base-color-grey-15);
10
+ border-radius: v(eui-base-border-radius);
11
+ color: v(eui-base-color-black);
12
+ font-size: v(eui-base-font-size-xs);
13
+ padding: 1px 3px;
14
+ position: absolute;
15
+ right: calc(-1 * #{v(eui-base-spacing-xs)});
16
+ top: calc(-1 * #{v(eui-base-spacing-s)});
17
+ z-index: v(eui-base-z-index-input-maxlength);
18
+
19
+ &.error {
20
+ background-color: v(eui-base-color-danger-110);
21
+ border-color: v(eui-base-color-danger-100);
22
+ color: v(eui-base-color-white);
23
+ }
24
+ }
25
+ }
@@ -78,7 +78,35 @@ h6,
78
78
  }
79
79
 
80
80
 
81
+ a,
82
+ a:not([href]):not([tabindex]) {
83
+ color: v(eui-base-color-link);
84
+ cursor: pointer;
85
+
86
+ &:hover,
87
+ &:focus {
88
+ color: v(eui-base-color-link);
89
+ text-decoration: underline;
90
+ }
91
+ }
92
+
93
+ a {
94
+ background-color: transparent;
95
+ text-decoration: none;
96
+ }
97
+
98
+ a:focus {
99
+ text-decoration: underline;
100
+ }
81
101
 
82
102
  abbr[title] {
83
103
  text-decoration: none; // TODO: underline dotted is the default and recommended usage
84
104
  }
105
+
106
+ .label, abbr, blockquote, del, label, mark, p {
107
+ font-size: v(eui-base-font-size);
108
+ }
109
+
110
+ label {
111
+ margin-bottom: v(eui-base-spacing-xs);
112
+ }
@@ -1,20 +1,8 @@
1
1
  @import 'legacy/form';
2
2
  @import 'legacy/form-compact';
3
- // @import 'legacy/inputs';
4
- // @import 'legacy/input-checkbox-default';
5
- // @import 'legacy/input-radio-default';
6
- // @import 'legacy/input-group';
7
- // @import 'legacy/input-placeholders';
8
- // @import 'legacy/ux-control-feedback';
9
- // @import 'legacy/ux-form-control';
10
- // @import 'legacy/ux-form-group';
11
- // @import 'legacy/ux-card';
12
- // @import 'legacy/ux-tree';
13
-
14
- .label, abbr, blockquote, del, label, mark, p {
15
- font-size: v(eui-base-font-size);
16
- }
17
-
18
- label {
19
- margin-bottom: v(eui-base-spacing-xs);
20
- }
3
+ @import 'legacy/input-checkbox-default';
4
+ @import 'legacy/input-radio-default';
5
+ @import 'legacy/ux-input-placeholder';
6
+ @import 'legacy/ux-input-maxlength';
7
+ @import 'legacy/ux-form-group';
8
+ @import 'legacy/ux-input-group';