mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
230 lines
4.3 KiB
SCSS
230 lines
4.3 KiB
SCSS
/**Variable**/
|
|
@import './helpers/mixin.scss';
|
|
|
|
.vxe-msg--wrapper {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: $vxe-zindex;
|
|
font-size: $vxe-font-size;
|
|
color: $vxe-font-color;
|
|
font-family: $vxe-font-family;
|
|
pointer-events: none;
|
|
transition: top .4s;
|
|
&.active {
|
|
display: block;
|
|
}
|
|
&.is--visible {
|
|
&.is--mask {
|
|
&:before {
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
}
|
|
}
|
|
&.type--message {
|
|
.vxe-msg--box {
|
|
transform: translate(0, 0);
|
|
}
|
|
}
|
|
&:not(.type--message) {
|
|
.vxe-msg--box {
|
|
transform: translate(-50%, 0);
|
|
}
|
|
}
|
|
.vxe-msg--box {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
}
|
|
&.lock--view,
|
|
&.is--mask {
|
|
&:before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: -1;
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
&.is--mask {
|
|
&:before {
|
|
background-color: rgba(0, 0, 0, 0);
|
|
}
|
|
}
|
|
&.is--animat {
|
|
&.is--mask {
|
|
&:before {
|
|
@include animatTransition(background-color, .2s);
|
|
}
|
|
}
|
|
.vxe-msg--box {
|
|
&:not(.drag-move) {
|
|
@include animatTransition(all, .2s, ease-out);
|
|
}
|
|
}
|
|
}
|
|
&.size--small,
|
|
&.size--mini {
|
|
font-size: 12px;
|
|
.vxe-msg--box {
|
|
padding: 6px 0;
|
|
}
|
|
.vxe-msg--body,
|
|
.vxe-msg--footer {
|
|
padding: 8px 14px;
|
|
}
|
|
.vxe-msg--header {
|
|
font-size: 14px;
|
|
padding: 6px 30px 8px 14px;
|
|
}
|
|
.vxe-msg--close-btn {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
&.type--message {
|
|
text-align: center;
|
|
.vxe-msg--box {
|
|
padding: 2px 0;
|
|
margin-top: 0;
|
|
width: auto;
|
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
|
|
transform: translate(0, -10%);
|
|
.vxe-msg--body {
|
|
&:after {
|
|
content: '';
|
|
display: block;
|
|
clear: both;
|
|
height: 0;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
.vxe-msg--content {
|
|
max-width: 800px;
|
|
float: left;
|
|
}
|
|
}
|
|
.vxe-msg--status-wrapper {
|
|
font-size: 16px;
|
|
padding-right: 10px;
|
|
}
|
|
}
|
|
&:not(.type--message) {
|
|
.vxe-msg--box {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 15vh;
|
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
|
|
border: 1px solid rgba(0,0,0,.2);
|
|
transform: translate(-50%, -10%);
|
|
.vxe-msg--header {
|
|
cursor: move;
|
|
}
|
|
}
|
|
.vxe-msg--status-wrapper {
|
|
font-size: 22px;
|
|
padding: 0 10px 0 2px;
|
|
}
|
|
}
|
|
.vxe-msg--box {
|
|
display: inline-block;
|
|
visibility: hidden;
|
|
width: 420px;
|
|
background-color: #fff;
|
|
border-radius: 4px;
|
|
border: 1px solid #ebeef5;
|
|
font-size: 14px;
|
|
text-align: left;
|
|
pointer-events: auto;
|
|
opacity: 0;
|
|
&.drag-move {
|
|
cursor: move;
|
|
.vxe-msg--body,
|
|
.vxe-msg--footer {
|
|
&:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&.msg--info {
|
|
.vxe-msg--status-wrapper {
|
|
color: #2998FF;
|
|
}
|
|
}
|
|
&.msg--warning,
|
|
&.msg--question {
|
|
.vxe-msg--status-wrapper {
|
|
color: #FAAD14;
|
|
}
|
|
}
|
|
&.msg--success {
|
|
.vxe-msg--status-wrapper {
|
|
color: #52C41A;
|
|
}
|
|
}
|
|
&.msg--error {
|
|
.vxe-msg--status-wrapper {
|
|
color: #F5222D;
|
|
}
|
|
}
|
|
&.msg--loading {
|
|
.vxe-msg--status-wrapper {
|
|
color: #78B1EB;
|
|
}
|
|
}
|
|
.vxe-msg--status-wrapper {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.vxe-msg--content {
|
|
flex-grow: 1;
|
|
}
|
|
.vxe-msg--header,
|
|
.vxe-msg--body,
|
|
.vxe-msg--footer {
|
|
position: relative;
|
|
}
|
|
.vxe-msg--body {
|
|
padding: 10px 16px;
|
|
white-space: normal;
|
|
word-break: break-word;
|
|
display: flex;
|
|
}
|
|
.vxe-msg--header {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
padding: 10px 40px 8px 16px;
|
|
border-bottom: 1px solid #eee;
|
|
background-color: #F8F8F8;
|
|
border-radius: 2px 2px 0 0;
|
|
user-select: none;
|
|
}
|
|
.vxe-msg--close-btn {
|
|
font-size: 18px;
|
|
position: absolute;
|
|
right: 14px;
|
|
top: 10px;
|
|
z-index: 1;
|
|
color: $vxe-table-column-icon-border-color;
|
|
cursor: pointer;
|
|
&:hover {
|
|
color: $vxe-font-color;
|
|
}
|
|
}
|
|
.vxe-msg--footer {
|
|
text-align: right;
|
|
padding: 8px 16px 10px 16px;
|
|
}
|
|
} |