Files
workspace/code/base-project/base-vue/packages/ao-design/src/notification/index.scss
T
2025-09-11 17:31:55 +08:00

122 lines
2.1 KiB
SCSS

@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: 16px;
}
.#{$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: $border-radius;
width: 20px;
height: 20px;
&:hover {
background-color: $default-color-hover;
}
}
&-message {
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;
}
}
}