@oruga-ui/theme-oruga 0.5.0 → 0.6.0
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/README.md +4 -3
- package/dist/oruga.css +2 -2
- package/dist/scss/components/_autocomplete.scss +15 -15
- package/dist/scss/components/_button.scss +175 -162
- package/dist/scss/components/_carousel.scss +199 -177
- package/dist/scss/components/_checkbox.scss +130 -122
- package/dist/scss/components/_collapse.scss +11 -9
- package/dist/scss/components/_datepicker.scss +408 -416
- package/dist/scss/components/_datetimepicker.scss +8 -8
- package/dist/scss/components/_dropdown.scss +224 -206
- package/dist/scss/components/_field.scss +107 -106
- package/dist/scss/components/_icon.scss +44 -40
- package/dist/scss/components/_input.scss +127 -112
- package/dist/scss/components/_loading.scss +27 -24
- package/dist/scss/components/_menu.scss +100 -63
- package/dist/scss/components/_modal.scss +66 -66
- package/dist/scss/components/_notification.scss +146 -134
- package/dist/scss/components/_pagination.scss +227 -198
- package/dist/scss/components/_radio.scss +95 -74
- package/dist/scss/components/_select.scss +143 -120
- package/dist/scss/components/_sidebar.scss +120 -104
- package/dist/scss/components/_skeleton.scss +55 -55
- package/dist/scss/components/_slider.scss +166 -156
- package/dist/scss/components/_steps.scss +300 -287
- package/dist/scss/components/_switch.scss +115 -128
- package/dist/scss/components/_table.scss +363 -330
- package/dist/scss/components/_tabs.scss +295 -280
- package/dist/scss/components/_taginput.scss +95 -93
- package/dist/scss/components/_timepicker.scss +74 -68
- package/dist/scss/components/_tooltip.scss +522 -424
- package/dist/scss/components/_upload.scss +51 -48
- package/dist/scss/oruga.scss +0 -1
- package/dist/scss/utils/_animations.scss +97 -97
- package/dist/scss/utils/_base.scss +31 -14
- package/dist/scss/utils/_helpers.scss +65 -65
- package/dist/scss/utils/_root.scss +37 -44
- package/dist/scss/utils/_variables.scss +44 -44
- package/dist/theme.js +1 -1
- package/package.json +26 -25
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* @docs */
|
|
2
2
|
$menu-item-color: var(--#{$prefix}grey-dark) !default;
|
|
3
|
+
$menu-item-background-color: transparent !default;
|
|
3
4
|
$menu-item-hover-color: var(--#{$prefix}black) !default;
|
|
4
5
|
$menu-item-hover-background-color: var(--#{$prefix}grey-light) !default;
|
|
5
6
|
$menu-item-active-color: var(--#{$prefix}primary-invert) !default;
|
|
@@ -9,7 +10,7 @@ $menu-list-border-left: 1px solid var(--#{$prefix}primary) !default;
|
|
|
9
10
|
$menu-list-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
10
11
|
$menu-list-line-height: 1.25em !default;
|
|
11
12
|
$menu-item-padding: 0.5em 0.75em !default;
|
|
12
|
-
$menu-nested-list-margin: 0.75em !default;
|
|
13
|
+
$menu-nested-list-margin: 0.75em 1.25em !default;
|
|
13
14
|
$menu-nested-list-padding-left: 0.75em !default;
|
|
14
15
|
$menu-label-color: $grey !default;
|
|
15
16
|
$menu-label-font-size: 0.75em !default;
|
|
@@ -18,80 +19,116 @@ $menu-icon-spacer: 0.5rem !default;
|
|
|
18
19
|
/* @docs */
|
|
19
20
|
|
|
20
21
|
.o-menu {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
// size variants
|
|
23
|
+
@each $name, $value in $sizes {
|
|
24
|
+
&--#{$name} {
|
|
25
|
+
font-size: var(--#{$prefix}menu-font-size-#{$name}, $value);
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
|
-
}
|
|
26
28
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
&__list,
|
|
30
|
+
&__item {
|
|
31
|
+
list-style: none;
|
|
32
|
+
}
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
&__list {
|
|
35
|
+
padding: unset;
|
|
36
|
+
line-height: var(
|
|
37
|
+
--#{$prefix}menu-list-line-height,
|
|
38
|
+
$menu-list-line-height
|
|
39
|
+
);
|
|
40
|
+
padding-left: var(
|
|
41
|
+
--#{$prefix}menu-nested-list-padding-left,
|
|
42
|
+
$menu-nested-list-padding-left
|
|
43
|
+
);
|
|
44
|
+
}
|
|
35
45
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
&__item__submenu {
|
|
47
|
+
border-left: var(
|
|
48
|
+
--#{$prefix}menu-list-border-left,
|
|
49
|
+
$menu-list-border-left
|
|
50
|
+
);
|
|
51
|
+
padding-left: var(
|
|
52
|
+
--#{$prefix}menu-nested-list-padding-left,
|
|
53
|
+
$menu-nested-list-padding-left
|
|
54
|
+
);
|
|
55
|
+
margin: var(
|
|
56
|
+
--#{$prefix}menu-nested-list-margin,
|
|
57
|
+
$menu-nested-list-margin
|
|
58
|
+
);
|
|
59
|
+
}
|
|
44
60
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
61
|
+
&__label {
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
color: var(--#{$prefix}menu-label-color, $menu-label-color);
|
|
64
|
+
font-size: var(--#{$prefix}menu-label-font-size, $menu-label-font-size);
|
|
49
65
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
66
|
+
&:not(:first-child) {
|
|
67
|
+
margin-top: var(
|
|
68
|
+
--#{$prefix}menu-label-spacing,
|
|
69
|
+
$menu-label-spacing
|
|
70
|
+
);
|
|
71
|
+
}
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
|
|
73
|
+
&:not(:last-child) {
|
|
74
|
+
margin-bottom: var(
|
|
75
|
+
--#{$prefix}menu-label-spacing,
|
|
76
|
+
$menu-label-spacing
|
|
77
|
+
);
|
|
78
|
+
}
|
|
56
79
|
}
|
|
57
|
-
}
|
|
58
80
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
81
|
+
&__item__button {
|
|
82
|
+
-moz-appearance: none;
|
|
83
|
+
-webkit-appearance: none;
|
|
84
|
+
display: block;
|
|
85
|
+
list-style: none;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
border: transparent;
|
|
88
|
+
background-color: var(
|
|
89
|
+
--#{$prefix}menu-item-background-color,
|
|
90
|
+
$menu-item-background-color
|
|
91
|
+
);
|
|
92
|
+
color: var(--#{$prefix}menu-item-color, $menu-item-color);
|
|
93
|
+
padding: var(--#{$prefix}menu-item-padding, $menu-item-padding);
|
|
94
|
+
font-size: var(--#{$prefix}menu-item-size, $base-font-size);
|
|
95
|
+
border-radius: var(
|
|
96
|
+
--#{$prefix}menu-list-border-radius,
|
|
97
|
+
$menu-list-border-radius
|
|
98
|
+
);
|
|
69
99
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
100
|
+
&:hover:not(&--active):not(&--disabled) {
|
|
101
|
+
color: var(
|
|
102
|
+
--#{$prefix}menu-item-hover-color,
|
|
103
|
+
$menu-item-hover-color
|
|
104
|
+
);
|
|
105
|
+
background-color: var(
|
|
106
|
+
--#{$prefix}menu-item-hover-background-color,
|
|
107
|
+
$menu-item-hover-background-color
|
|
108
|
+
);
|
|
109
|
+
}
|
|
77
110
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
111
|
+
&--icon .o-icon {
|
|
112
|
+
margin-right: var(--#{$prefix}menu-icon-spacer, $menu-icon-spacer);
|
|
113
|
+
}
|
|
81
114
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
115
|
+
&--active {
|
|
116
|
+
color: var(
|
|
117
|
+
--#{$prefix}menu-item-active-color,
|
|
118
|
+
$menu-item-active-color
|
|
119
|
+
);
|
|
120
|
+
background-color: var(
|
|
121
|
+
--#{$prefix}menu-item-active-background-color,
|
|
122
|
+
$menu-item-active-background-color
|
|
123
|
+
);
|
|
124
|
+
}
|
|
89
125
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
126
|
+
&--disabled {
|
|
127
|
+
cursor: inherit;
|
|
128
|
+
color: var(
|
|
129
|
+
--#{$prefix}menu-item-disabled-color,
|
|
130
|
+
$menu-item-disabled-color
|
|
131
|
+
);
|
|
132
|
+
}
|
|
95
133
|
}
|
|
96
|
-
}
|
|
97
134
|
}
|
|
@@ -3,7 +3,7 @@ $modal-content-background-color: var(--#{$prefix}white) !default;
|
|
|
3
3
|
$modal-content-border-radius: var(--#{$prefix}base-border-radius) !default;
|
|
4
4
|
$modal-overlay-background-color: hsla(0, 0%, 4%, 0.86) !default;
|
|
5
5
|
$modal-close-border-radius: var(
|
|
6
|
-
|
|
6
|
+
--#{$prefix}base-border-radius-rounded
|
|
7
7
|
) !default;
|
|
8
8
|
$modal-close-right: 20px !default;
|
|
9
9
|
$modal-close-top: 20px !default;
|
|
@@ -16,79 +16,79 @@ $modal-zindex: 40 !default;
|
|
|
16
16
|
/* @docs */
|
|
17
17
|
|
|
18
18
|
.o-modal {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
bottom: 0;
|
|
26
|
-
left: 0;
|
|
27
|
-
right: 0;
|
|
28
|
-
top: 0;
|
|
29
|
-
z-index: var(--#{$prefix}modal-zindex, $modal-zindex);
|
|
30
|
-
|
|
31
|
-
&__overlay {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: center;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
position: fixed;
|
|
32
25
|
bottom: 0;
|
|
33
26
|
left: 0;
|
|
34
|
-
position: absolute;
|
|
35
27
|
right: 0;
|
|
36
28
|
top: 0;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
z-index: var(--#{$prefix}modal-zindex, $modal-zindex);
|
|
30
|
+
|
|
31
|
+
&__overlay {
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
position: absolute;
|
|
35
|
+
right: 0;
|
|
36
|
+
top: 0;
|
|
37
|
+
background-color: var(
|
|
38
|
+
--#{$prefix}modal-overlay-background-color,
|
|
39
|
+
$modal-overlay-background-color
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
&__content {
|
|
44
|
+
overflow: auto;
|
|
45
|
+
position: relative;
|
|
46
|
+
margin: var(--#{$prefix}modal-content-margin, $modal-content-margin);
|
|
47
|
+
max-height: var(
|
|
48
|
+
--#{$prefix}modal-content-max-height,
|
|
49
|
+
$modal-content-max-height
|
|
50
|
+
);
|
|
51
|
+
background-color: var(
|
|
52
|
+
--#{$prefix}modal-content-background-color,
|
|
53
|
+
$modal-content-background-color
|
|
54
|
+
);
|
|
55
|
+
border-radius: var(
|
|
56
|
+
--#{$prefix}modal-content-border-radius,
|
|
57
|
+
$modal-content-border-radius
|
|
58
|
+
);
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
&--full-screen {
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
max-height: 100vh;
|
|
64
|
+
margin: 0;
|
|
65
|
+
background-color: var(
|
|
66
|
+
--#{$prefix}modal-content-fullscreen-background-color,
|
|
67
|
+
$modal-content-fullscreen-background-color
|
|
68
|
+
);
|
|
69
|
+
}
|
|
69
70
|
}
|
|
70
|
-
}
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
72
|
+
&__close {
|
|
73
|
+
background: none;
|
|
74
|
+
position: fixed;
|
|
75
|
+
border: none;
|
|
76
|
+
display: inline-block;
|
|
77
|
+
vertical-align: top;
|
|
78
|
+
border-radius: var(
|
|
79
|
+
--#{$prefix}modal-close-border-radius,
|
|
80
|
+
$modal-close-border-radius
|
|
81
|
+
);
|
|
82
|
+
right: var(--#{$prefix}modal-close-right, $modal-close-right);
|
|
83
|
+
top: var(--#{$prefix}modal-close-top, $modal-close-top);
|
|
84
|
+
height: var(--#{$prefix}modal-close-size, $modal-close-size);
|
|
85
|
+
width: var(--#{$prefix}modal-close-size, $modal-close-size);
|
|
86
|
+
color: var(--#{$prefix}modal-close-color, $modal-close-color);
|
|
87
|
+
}
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
&--mobile {
|
|
90
|
+
.o-modal__content {
|
|
91
|
+
width: 100%;
|
|
92
|
+
}
|
|
92
93
|
}
|
|
93
|
-
}
|
|
94
94
|
}
|
|
@@ -8,7 +8,7 @@ $notification-margin-bottom: 1.5rem !default;
|
|
|
8
8
|
$notification-animantion: append-animate 0.3s linear !default;
|
|
9
9
|
$notification-color: var(--#{$prefix}white) !default;
|
|
10
10
|
$notification-close-border-radius: var(
|
|
11
|
-
|
|
11
|
+
--#{$prefix}base-border-radius-rounded
|
|
12
12
|
) !default;
|
|
13
13
|
$notification-close-right: 0.5rem !default;
|
|
14
14
|
$notification-close-top: 0.5rem !default;
|
|
@@ -21,155 +21,167 @@ $notification-notices-zindex: 1000 !default;
|
|
|
21
21
|
/* @docs */
|
|
22
22
|
|
|
23
23
|
.o-notification {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
background-color: var(
|
|
28
|
-
--#{$prefix}notification-background-color,
|
|
29
|
-
$notification-background-color
|
|
30
|
-
);
|
|
31
|
-
color: var(--#{$prefix}notification-color, $notification-color);
|
|
32
|
-
border-radius: var(
|
|
33
|
-
--#{$prefix}notification-border-radius,
|
|
34
|
-
$notification-border-radius
|
|
35
|
-
);
|
|
36
|
-
padding: var(--#{$prefix}notification-padding, $notification-padding);
|
|
37
|
-
margin-bottom: var(
|
|
38
|
-
--#{$prefix}notification-margin-bottom,
|
|
39
|
-
$notification-margin-bottom
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
&__content {
|
|
43
|
-
flex-basis: auto;
|
|
44
|
-
flex-grow: 1;
|
|
45
|
-
flex-shrink: 1;
|
|
46
|
-
text-align: inherit;
|
|
47
|
-
overflow-y: hidden;
|
|
48
|
-
overflow-x: auto;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&__wrapper {
|
|
52
|
-
align-items: flex-start;
|
|
53
|
-
display: flex;
|
|
54
|
-
text-align: inherit;
|
|
55
|
-
padding-top: 0;
|
|
56
|
-
border: 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&__icon {
|
|
60
|
-
flex-basis: auto;
|
|
61
|
-
flex-grow: 0;
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
margin-right: var(
|
|
64
|
-
--#{$prefix}notification-icon-margin-right,
|
|
65
|
-
$notification-icon-margin-right
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&__close {
|
|
70
|
-
position: absolute;
|
|
71
|
-
border: none;
|
|
72
|
-
cursor: pointer;
|
|
73
|
-
pointer-events: auto;
|
|
74
|
-
display: flex;
|
|
75
|
-
justify-content: center;
|
|
76
|
-
align-items: center;
|
|
77
|
-
flex-grow: 0;
|
|
78
|
-
flex-shrink: 0;
|
|
79
|
-
vertical-align: top;
|
|
24
|
+
position: relative;
|
|
25
|
+
transform-origin: 50% 0;
|
|
26
|
+
// Modifiers
|
|
80
27
|
background-color: var(
|
|
81
|
-
|
|
82
|
-
|
|
28
|
+
--#{$prefix}notification-background-color,
|
|
29
|
+
$notification-background-color
|
|
83
30
|
);
|
|
31
|
+
color: var(--#{$prefix}notification-color, $notification-color);
|
|
84
32
|
border-radius: var(
|
|
85
|
-
|
|
86
|
-
|
|
33
|
+
--#{$prefix}notification-border-radius,
|
|
34
|
+
$notification-border-radius
|
|
87
35
|
);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
color: var(--#{$prefix}notification-close-color, $notification-close-color);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@each $name, $pair in $colors {
|
|
96
|
-
$color: list.nth($pair, 1);
|
|
97
|
-
$color-invert: list.nth($pair, 2);
|
|
98
|
-
&--#{$name} {
|
|
99
|
-
border-color: transparent;
|
|
100
|
-
background-color: var(--#{$prefix}variant-#{$name}, $color);
|
|
101
|
-
color: var(--#{$prefix}variant-invert-#{$name}, $color-invert);
|
|
102
|
-
|
|
103
|
-
&:hover {
|
|
104
|
-
// background-color: darken($color, 2.5%)
|
|
105
|
-
// IE 11 needs polyfill
|
|
106
|
-
filter: brightness(97.5%);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.o-notices {
|
|
113
|
-
position: fixed;
|
|
114
|
-
display: flex;
|
|
115
|
-
top: 0;
|
|
116
|
-
bottom: 0;
|
|
117
|
-
left: 0;
|
|
118
|
-
right: 0;
|
|
119
|
-
overflow: hidden;
|
|
120
|
-
pointer-events: none;
|
|
121
|
-
padding: var(
|
|
122
|
-
--#{$prefix}notification-notices-padding,
|
|
123
|
-
$notification-notices-padding
|
|
124
|
-
);
|
|
125
|
-
z-index: var(
|
|
126
|
-
--#{$prefix}notification-notices-zindex,
|
|
127
|
-
$notification-notices-zindex
|
|
128
|
-
);
|
|
129
|
-
|
|
130
|
-
.o-notification {
|
|
131
|
-
pointer-events: stroke;
|
|
132
|
-
max-width: 600px;
|
|
133
|
-
animation: var(
|
|
134
|
-
--#{$prefix}notification-animantion,
|
|
135
|
-
$notification-animantion
|
|
36
|
+
padding: var(--#{$prefix}notification-padding, $notification-padding);
|
|
37
|
+
margin-bottom: var(
|
|
38
|
+
--#{$prefix}notification-margin-bottom,
|
|
39
|
+
$notification-margin-bottom
|
|
136
40
|
);
|
|
137
41
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
42
|
+
&__content {
|
|
43
|
+
flex-basis: auto;
|
|
44
|
+
flex-grow: 1;
|
|
45
|
+
flex-shrink: 1;
|
|
46
|
+
text-align: inherit;
|
|
47
|
+
overflow-y: hidden;
|
|
48
|
+
overflow-x: auto;
|
|
141
49
|
}
|
|
142
50
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
51
|
+
&__wrapper {
|
|
52
|
+
align-items: center;
|
|
53
|
+
display: flex;
|
|
54
|
+
text-align: inherit;
|
|
55
|
+
padding-top: 0;
|
|
56
|
+
border: 0;
|
|
146
57
|
}
|
|
147
58
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
59
|
+
&__icon {
|
|
60
|
+
flex-basis: auto;
|
|
61
|
+
flex-grow: 0;
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
margin-right: var(
|
|
64
|
+
--#{$prefix}notification-icon-margin-right,
|
|
65
|
+
$notification-icon-margin-right
|
|
66
|
+
);
|
|
151
67
|
}
|
|
152
|
-
}
|
|
153
68
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
69
|
+
&__close {
|
|
70
|
+
position: absolute;
|
|
71
|
+
border: none;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
pointer-events: auto;
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
align-items: center;
|
|
77
|
+
flex-grow: 0;
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
vertical-align: top;
|
|
80
|
+
background-color: var(
|
|
81
|
+
--#{$prefix}notification-close-background-color,
|
|
82
|
+
$notification-close-background-color
|
|
83
|
+
);
|
|
84
|
+
border-radius: var(
|
|
85
|
+
--#{$prefix}notification-close-border-radius,
|
|
86
|
+
$notification-close-border-radius
|
|
87
|
+
);
|
|
88
|
+
right: var(
|
|
89
|
+
--#{$prefix}notification-close-right,
|
|
90
|
+
$notification-close-right
|
|
91
|
+
);
|
|
92
|
+
top: var(--#{$prefix}notification-close-top, $notification-close-top);
|
|
93
|
+
height: var(
|
|
94
|
+
--#{$prefix}notification-close-size,
|
|
95
|
+
$notification-close-size
|
|
96
|
+
);
|
|
97
|
+
width: var(
|
|
98
|
+
--#{$prefix}notification-close-size,
|
|
99
|
+
$notification-close-size
|
|
100
|
+
);
|
|
101
|
+
color: var(
|
|
102
|
+
--#{$prefix}notification-close-color,
|
|
103
|
+
$notification-close-color
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@each $name, $pair in $colors {
|
|
108
|
+
$color: list.nth($pair, 1);
|
|
109
|
+
$color-invert: list.nth($pair, 2);
|
|
110
|
+
&--#{$name} {
|
|
111
|
+
border-color: transparent;
|
|
112
|
+
background-color: var(--#{$prefix}variant-#{$name}, $color);
|
|
113
|
+
color: var(--#{$prefix}variant-invert-#{$name}, $color-invert);
|
|
114
|
+
|
|
115
|
+
&:hover {
|
|
116
|
+
// background-color: darken($color, 2.5%)
|
|
117
|
+
// IE 11 needs polyfill
|
|
118
|
+
filter: brightness(97.5%);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
157
123
|
|
|
158
|
-
|
|
159
|
-
|
|
124
|
+
.o-notices {
|
|
125
|
+
position: fixed;
|
|
126
|
+
display: flex;
|
|
127
|
+
top: 0;
|
|
128
|
+
bottom: 0;
|
|
129
|
+
left: 0;
|
|
130
|
+
right: 0;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
pointer-events: none;
|
|
133
|
+
padding: var(
|
|
134
|
+
--#{$prefix}notification-notices-padding,
|
|
135
|
+
$notification-notices-padding
|
|
136
|
+
);
|
|
137
|
+
z-index: var(
|
|
138
|
+
--#{$prefix}notification-notices-zindex,
|
|
139
|
+
$notification-notices-zindex
|
|
140
|
+
);
|
|
160
141
|
|
|
161
|
-
// Since the columns are reversed, we need to reverse the margin logic from
|
|
162
|
-
// :not(:last-child) to :not(:first-child)
|
|
163
142
|
.o-notification {
|
|
164
|
-
|
|
143
|
+
pointer-events: stroke;
|
|
144
|
+
max-width: 600px;
|
|
145
|
+
animation: var(
|
|
146
|
+
--#{$prefix}notification-animantion,
|
|
147
|
+
$notification-animantion
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
&--top,
|
|
151
|
+
&--bottom {
|
|
152
|
+
align-self: center;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&--top-right,
|
|
156
|
+
&--bottom-right {
|
|
157
|
+
align-self: flex-end;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&--top-left,
|
|
161
|
+
&--bottom-left {
|
|
162
|
+
align-self: flex-start;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
165
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
166
|
+
&--top {
|
|
167
|
+
flex-direction: column;
|
|
169
168
|
}
|
|
170
|
-
}
|
|
171
169
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
&--bottom {
|
|
171
|
+
flex-direction: column-reverse;
|
|
172
|
+
|
|
173
|
+
// Since the columns are reversed, we need to reverse the margin logic from
|
|
174
|
+
// :not(:last-child) to :not(:first-child)
|
|
175
|
+
.o-notification {
|
|
176
|
+
margin-bottom: 0;
|
|
177
|
+
|
|
178
|
+
&:not(:first-child) {
|
|
179
|
+
margin-bottom: $notification-margin-bottom;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&__custom-container {
|
|
185
|
+
position: absolute;
|
|
186
|
+
}
|
|
175
187
|
}
|