u
This commit is contained in:
1 parent
c280cbf961
commit
b24015fbae
12 files changed
+760
-133
No files matched your search
@@ -0,0 +1,121 @@
|
||||
@use '../_styles/_variables.scss' as *;
|
||||
@use 'sass:color';
|
||||
|
||||
$notification-prefix: #{$prefix}-notification;
|
||||
|
||||
.#{$notification-prefix}-wrapper {
|
||||
position: fixed;
|
||||
z-index: 6000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.#{$notification-prefix} {
|
||||
width: 360px;
|
||||
padding: 12px 16px;
|
||||
border-radius: $border-radius;
|
||||
background-color: $bg-color-container;
|
||||
color: $text-color-base;
|
||||
box-shadow: $shadow-overlay;
|
||||
box-sizing: border-box;
|
||||
font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
outline: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
|
||||
&-icon {
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
&-main {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
&-title-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&-title {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
small {
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
&-close {
|
||||
flex-shrink: 0;
|
||||
margin-left: 6px;
|
||||
color: $text-color-assist;
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
&:hover {
|
||||
background-color: $default-color-hover;
|
||||
}
|
||||
}
|
||||
|
||||
&-content {
|
||||
margin-top: 8px;
|
||||
font-size: 14px;
|
||||
color: $text-color-secondary;
|
||||
text-overflow: ellipsis;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
&-footer {
|
||||
}
|
||||
|
||||
&-info {
|
||||
color: $primary-color;
|
||||
}
|
||||
&-success {
|
||||
color: $success-color;
|
||||
}
|
||||
&-warning {
|
||||
color: $warning-color;
|
||||
}
|
||||
&-error {
|
||||
color: $danger-color;
|
||||
}
|
||||
&-question {
|
||||
color: $primary-color;
|
||||
}
|
||||
&-loading {
|
||||
color: $primary-color;
|
||||
}
|
||||
|
||||
&-placement {
|
||||
&-top-start {
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
&-top-end {
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
}
|
||||
&-bottom-start {
|
||||
bottom: 20px;
|
||||
left: 20px;
|
||||
flex-direction: column-reverse;
|
||||
align-items: flex-start;
|
||||
}
|
||||
&-bottom-end {
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
flex-direction: column-reverse;
|
||||
align-items: flex-end;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user