mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
101 lines
1.9 KiB
SCSS
101 lines
1.9 KiB
SCSS
|
@use "mixins/mixins";
|
||
|
@use "./common/var";
|
||
|
|
||
|
@include mixins.b(notification) {
|
||
|
display: flex;
|
||
|
width: var.$notification-width;
|
||
|
padding: var.$notification-padding;
|
||
|
border-radius: var.$notification-radius;
|
||
|
box-sizing: border-box;
|
||
|
border: 1px solid var.$notification-border-color;
|
||
|
position: fixed;
|
||
|
background-color: var.$color-white;
|
||
|
box-shadow: var.$notification-shadow;
|
||
|
transition: opacity 0.3s, transform 0.3s, left 0.3s, right 0.3s, top 0.4s,
|
||
|
bottom 0.3s;
|
||
|
overflow: hidden;
|
||
|
|
||
|
&.right {
|
||
|
right: 16px;
|
||
|
}
|
||
|
|
||
|
&.left {
|
||
|
left: 16px;
|
||
|
}
|
||
|
|
||
|
@include mixins.e(group) {
|
||
|
margin-left: var.$notification-group-margin-left;
|
||
|
margin-right: var.$notification-group-margin-right;
|
||
|
}
|
||
|
|
||
|
@include mixins.e(title) {
|
||
|
font-weight: bold;
|
||
|
font-size: var.$notification-title-font-size;
|
||
|
color: var.$notification-title-color;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
@include mixins.e(content) {
|
||
|
font-size: var.$notification-content-font-size;
|
||
|
line-height: 21px;
|
||
|
margin: 6px 0 0 0;
|
||
|
color: var.$notification-content-color;
|
||
|
text-align: justify;
|
||
|
|
||
|
p {
|
||
|
margin: 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@include mixins.e(icon) {
|
||
|
height: var.$notification-icon-size;
|
||
|
width: var.$notification-icon-size;
|
||
|
font-size: var.$notification-icon-size;
|
||
|
}
|
||
|
|
||
|
@include mixins.e(closeBtn) {
|
||
|
position: absolute;
|
||
|
top: 18px;
|
||
|
right: 15px;
|
||
|
cursor: pointer;
|
||
|
color: var.$notification-close-color;
|
||
|
font-size: var.$notification-close-font-size;
|
||
|
|
||
|
&:hover {
|
||
|
color: var.$notification-close-hover-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.el-icon-success {
|
||
|
color: var.$notification-success-icon-color;
|
||
|
}
|
||
|
|
||
|
.el-icon-error {
|
||
|
color: var.$notification-danger-icon-color;
|
||
|
}
|
||
|
|
||
|
.el-icon-info {
|
||
|
color: var.$notification-info-icon-color;
|
||
|
}
|
||
|
|
||
|
.el-icon-warning {
|
||
|
color: var.$notification-warning-icon-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.el-notification-fade-enter {
|
||
|
&.right {
|
||
|
right: 0;
|
||
|
transform: translateX(100%);
|
||
|
}
|
||
|
|
||
|
&.left {
|
||
|
left: 0;
|
||
|
transform: translateX(-100%);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.el-notification-fade-leave-active {
|
||
|
opacity: 0;
|
||
|
}
|