@eui/styles 19.0.0-next.17 → 19.0.0-next.18
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/base/01-base/mixins/_eui-border-radius.scss +24 -0
- package/dist/base/01-base/mixins/_eui-clearable-input.scss +31 -0
- package/dist/base/01-base/mixins/_eui-disabled.scss +6 -0
- package/dist/base/01-base/mixins/_eui-flex-column-wrapper.scss +35 -0
- package/dist/base/01-base/mixins/_eui-flex-container.scss +5 -0
- package/dist/base/01-base/mixins/_eui-input.scss +87 -0
- package/dist/base/01-base/mixins/_eui-loading-indicator.scss +38 -0
- package/dist/base/01-base/mixins/_eui-loading.scss +27 -0
- package/dist/base/01-base/mixins/_eui-resizable.scss +14 -0
- package/dist/base/01-base/mixins/_module.scss +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Single side border-radius
|
|
2
|
+
@mixin eui-border-radius($radius: null) {
|
|
3
|
+
@if ($radius) {
|
|
4
|
+
border-radius: $radius;
|
|
5
|
+
} @else {
|
|
6
|
+
border-radius: v(eui-border-radius-base);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@mixin eui-border-top-radius($radius) {
|
|
10
|
+
border-top-left-radius: $radius;
|
|
11
|
+
border-top-right-radius: $radius;
|
|
12
|
+
}
|
|
13
|
+
@mixin eui-border-right-radius($radius) {
|
|
14
|
+
border-bottom-right-radius: $radius;
|
|
15
|
+
border-top-right-radius: $radius;
|
|
16
|
+
}
|
|
17
|
+
@mixin eui-border-bottom-radius($radius) {
|
|
18
|
+
border-bottom-left-radius: $radius;
|
|
19
|
+
border-bottom-right-radius: $radius;
|
|
20
|
+
}
|
|
21
|
+
@mixin eui-border-left-radius($radius) {
|
|
22
|
+
border-bottom-left-radius: $radius;
|
|
23
|
+
border-top-left-radius: $radius;
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This mixin sets the layout of the euiClearable directive
|
|
2
|
+
@mixin eui-clearable-input() {
|
|
3
|
+
.eui-clearable-wrapper {
|
|
4
|
+
align-items: center;
|
|
5
|
+
display: flex;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
|
|
9
|
+
.eui-input-text--clearable-icon {
|
|
10
|
+
bottom: calc(#{v(eui-s-s)} - 2px);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: v(eui-s-s);
|
|
14
|
+
user-select: none;
|
|
15
|
+
visibility: visible;
|
|
16
|
+
z-index: v(eui-zi-clearable-icon);
|
|
17
|
+
|
|
18
|
+
&:focus {
|
|
19
|
+
@include eui-accessible-focus();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> svg {
|
|
23
|
+
fill: v(eui-c-neutral-lighter);
|
|
24
|
+
|
|
25
|
+
&:hover {
|
|
26
|
+
fill: v(eui-c-danger);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@mixin eui-flex-column-wrapper {
|
|
2
|
+
&-wrapper {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__header {
|
|
9
|
+
flex: 0 0 auto;
|
|
10
|
+
padding: v(eui-s-m) v(eui-s-m) v(eui-s-m) v(eui-s-s);
|
|
11
|
+
text-align: center;
|
|
12
|
+
|
|
13
|
+
&-toolbar {
|
|
14
|
+
align-items: center;
|
|
15
|
+
background-color: v(eui-c-neutral-bg);
|
|
16
|
+
border-bottom: 1px solid v(eui-c-neutral-lightest);
|
|
17
|
+
display: flex;
|
|
18
|
+
font: var(--eui-f-m-bold);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__body {
|
|
23
|
+
flex: 1 1 auto;
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__footer {
|
|
29
|
+
background-color: v(eui-c-neutral-bg);
|
|
30
|
+
border-top: 1px solid v(eui-c-neutral-lightest);
|
|
31
|
+
flex: 0 0 auto;
|
|
32
|
+
padding: v(eui-s-m);
|
|
33
|
+
text-align: center;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// TODO: this mixin should not be used an element that is not input.
|
|
2
|
+
// eUI Inputs Layout & states commons
|
|
3
|
+
// Used for: eui-input-text, eui-input-number, eui-select, eui-textarea, eui-datepicker, eui-autocomplete
|
|
4
|
+
@mixin eui-input($element: input) {
|
|
5
|
+
font: var(--eui-f-m);
|
|
6
|
+
appearance: none;
|
|
7
|
+
background-color: v(eui-c-white);
|
|
8
|
+
border: 1px solid v(eui-c-neutral-lighter);
|
|
9
|
+
border-radius: v(eui-br-m);
|
|
10
|
+
box-shadow: none;
|
|
11
|
+
color: v(eui-c-text);
|
|
12
|
+
padding: calc(var(--eui-s-xs) - 1px) calc(var(--eui-s-m) - 1px); // ECL aligned
|
|
13
|
+
width: 100%;
|
|
14
|
+
@include eui-accessible-focus();
|
|
15
|
+
|
|
16
|
+
&:not([hidden]) {
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::placeholder {
|
|
21
|
+
color: v(eui-c-neutral-lighter) !important;
|
|
22
|
+
opacity: 1; // Firefox adds a lower opacity to the placeholder color
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// STATES
|
|
26
|
+
&[readonly] {
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
border-color: transparent;
|
|
29
|
+
box-shadow: none;
|
|
30
|
+
height: inherit;
|
|
31
|
+
padding-left: 0;
|
|
32
|
+
padding-right: 0;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
|
|
35
|
+
+ .eui-feedback-message,
|
|
36
|
+
+ .eui-input-maxlength {
|
|
37
|
+
appearance: none;
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[disabled]:not([readonly]),
|
|
43
|
+
&--disabled:not([readonly]) {
|
|
44
|
+
background-color: v(eui-c-neutral-bg-light) !important;
|
|
45
|
+
border: 1px solid v(eui-c-neutral-lightest) !important;
|
|
46
|
+
color: v(eui-c-neutral-light);
|
|
47
|
+
@if $element == textarea {
|
|
48
|
+
pointer-events: auto;
|
|
49
|
+
} @else {
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&--invalid,
|
|
55
|
+
&--danger {
|
|
56
|
+
border: 1px solid v(eui-c-danger);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&--clearable {
|
|
60
|
+
padding-right: v(eui-s-2xl);
|
|
61
|
+
|
|
62
|
+
&-icon {
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
position: absolute;
|
|
65
|
+
right: v(eui-s-s);
|
|
66
|
+
user-select: none;
|
|
67
|
+
visibility: visible;
|
|
68
|
+
@include eui-accessible-focus();
|
|
69
|
+
|
|
70
|
+
> svg {
|
|
71
|
+
fill: v(eui-c-neutral-lighter);
|
|
72
|
+
|
|
73
|
+
&:hover {
|
|
74
|
+
fill: v(eui-c-danger);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&--loading {
|
|
81
|
+
padding-right: v(eui-s-2xl);
|
|
82
|
+
|
|
83
|
+
&-icon {
|
|
84
|
+
@include eui-loading-indicator();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@mixin eui-loading-indicator() {
|
|
2
|
+
align-items: center;
|
|
3
|
+
display: flex;
|
|
4
|
+
|
|
5
|
+
&::after,
|
|
6
|
+
&::before {
|
|
7
|
+
content: '';
|
|
8
|
+
height: v(eui-s-l);
|
|
9
|
+
position: absolute;
|
|
10
|
+
right: v(eui-s-s);
|
|
11
|
+
width: v(eui-s-l);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&::before {
|
|
15
|
+
border: v(eui-s-2xs) solid rgba(0, 0, 0, 0.35);
|
|
16
|
+
border-radius: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&::after {
|
|
20
|
+
animation: eui-loading 0.6s linear;
|
|
21
|
+
animation-iteration-count: infinite;
|
|
22
|
+
border-color: v(eui-c-white) transparent transparent;
|
|
23
|
+
border-radius: 100%;
|
|
24
|
+
border-style: solid;
|
|
25
|
+
border-width: v(eui-s-2xs);
|
|
26
|
+
box-shadow: 0 0 0 1px transparent;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--sm::after,
|
|
30
|
+
&--sm::before {
|
|
31
|
+
height: v(eui-s-m);
|
|
32
|
+
width: v(eui-s-m);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes eui-loading {
|
|
36
|
+
to { transform: rotate(360deg); }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@mixin eui-loading() {
|
|
2
|
+
&::before {
|
|
3
|
+
animation: 0.8s linear infinite spin;
|
|
4
|
+
border: 8px solid transparent;
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
border-top-color: v(eui-c-primary);
|
|
7
|
+
content: "";
|
|
8
|
+
display: block;
|
|
9
|
+
height: 80px;
|
|
10
|
+
left: 50%;
|
|
11
|
+
margin: -40px 0 0 -40px;
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 50%;
|
|
14
|
+
width: 80px;
|
|
15
|
+
z-index: 1000001;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::after {
|
|
19
|
+
background-color: rgba(255, 255, 255, 0.4);
|
|
20
|
+
content: '';
|
|
21
|
+
height: 100%;
|
|
22
|
+
left: 0;
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@mixin eui-resizable( $eui-resizable-bar-right-offset: unset, $eui-resizable-icon-top-offset: v(eui-s-m) ) {
|
|
2
|
+
.eui-resizable {
|
|
3
|
+
.eui-resizable-bar {
|
|
4
|
+
// For eui-page-column
|
|
5
|
+
@if ($eui-resizable-bar-right-offset != unset) {
|
|
6
|
+
right: calc($eui-resizable-bar-right-offset + 2px);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.eui-resizable-icon__container {
|
|
11
|
+
transform: translateY( calc($eui-resizable-icon-top-offset + 2px) );
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -6,3 +6,11 @@
|
|
|
6
6
|
@import 'media.mixins';
|
|
7
7
|
@import 'other.mixins';
|
|
8
8
|
@import 'eui-scrollbars';
|
|
9
|
+
@import 'eui-border-radius';
|
|
10
|
+
@import 'eui-flex-container';
|
|
11
|
+
@import 'eui-flex-column-wrapper';
|
|
12
|
+
@import 'eui-disabled';
|
|
13
|
+
@import 'eui-loading';
|
|
14
|
+
@import 'eui-loading-indicator';
|
|
15
|
+
@import 'eui-input';
|
|
16
|
+
@import 'eui-resizable';
|