@@ -80,6 +80,8 @@ const root = ref<HTMLElement>();
80
80
</template >
81
81
82
82
<style lang="scss">
83
+ /* stylelint-disable selector-class-pattern -- library class name */
84
+
83
85
@use ' ~/styles/base.scss' ;
84
86
@use ' ~/styles/mixin' as mixin ;
85
87
@use ' ~/styles/layout' as layout ;
@@ -137,6 +139,8 @@ const root = ref<HTMLElement>();
137
139
}
138
140
}
139
141
142
+ .n-notification-container .n-notification ,
143
+ .n-message-wrapper .n-message ,
140
144
.n-dropdown-menu ,
141
145
.n-date-panel ,
142
146
.n-virtual-list {
@@ -146,6 +150,27 @@ const root = ref<HTMLElement>();
146
150
);
147
151
}
148
152
153
+ .n-notification-container .n-notification ,
154
+ .n-message-wrapper .n-message.n-message--error-type {
155
+ --custom-bg-color : var (--bg-color-error-80 );
156
+ --custom-bg-color-hover : var (--bg-color-error );
157
+ }
158
+
159
+ .n-message-wrapper .n-message.n-message--success-type {
160
+ --custom-bg-color : var (--bg-color-success-80 );
161
+ --custom-bg-color-hover : var (--bg-color-success );
162
+ }
163
+
164
+ .n-message-wrapper .n-message.n-message--info-type {
165
+ --custom-bg-color : var (--bg-color-info-80 );
166
+ --custom-bg-color-hover : var (--bg-color-info );
167
+ }
168
+
169
+ .n-message-wrapper .n-message.n-message--warning-type {
170
+ --custom-bg-color : var (--bg-color-warning-80 );
171
+ --custom-bg-color-hover : var (--bg-color-warning );
172
+ }
173
+
149
174
.n-popselect-menu ,
150
175
.n-select-menu {
151
176
@include mixin .hover-background (
@@ -163,8 +188,6 @@ const root = ref<HTMLElement>();
163
188
background : transparent ;
164
189
}
165
190
166
- .n-message-wrapper .n-message ,
167
- .n-notification-container .n-notification ,
168
191
.n-tooltip.n-tooltip ,
169
192
.n-popover-arrow.n-popover-arrow.n-popover-arrow {
170
193
background : var (--custom-bg-color , var (--bg-color-60 ));
0 commit comments