wolegca.github.io/myui.css
2019-09-13 15:52:47 +08:00

120 lines
1.8 KiB
CSS

* {
touch-action: pan-y;
}
.msg-container {
display: block;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-height: 150px;
min-width: 250px;
max-width: 460px;
color: white;
padding-bottom: 40px;
cursor: default;
border-radius: 10px;
box-sizing: border-box;
box-shadow: 3px 2px 8px rgb(0, 0, 0);
opacity: 0;
animation: fadeIn .3s forwards;
z-index: 999;
text-overflow: ellipsis;
word-break: break-word
}
.msg-header {
display: block;
position: relative;
width: 100%;
min-height: 20px;
background-color: rgb(40, 40, 40);
cursor: move;
border-radius: 10px 10px 0px 0px;
padding: 10px;
text-align: center;
box-sizing: border-box;
text-overflow: ellipsis;
word-break: break-word
}
.msg-content {
display: block;
position: relative;
width: 100%;
min-height: 70px;
background-color: rgb(50, 50, 50);
cursor: default;
padding: 10px;
box-sizing: border-box;
text-overflow: ellipsis;
word-break: break-word
}
.msg-footer {
display: block;
position: fixed;
bottom: 0px;
width: 100%;
height: 40px;
background-color: rgb(30, 30, 30);
cursor: default;
border-radius: 0px 0px 10px 10px;
padding: 10px;
text-align: right;
box-sizing: border-box;
text-overflow: ellipsis;
word-break: break-word
}
.msg-footer span {
cursor: pointer;
transition: all .1s ease;
font-size: 16px;
padding: 3px 8px;
}
.msg-footer span:hover {
color: #ccc
}
.msg-footer span:active {
color: rgb(50, 50, 50)
}
.mask{
position: absolute;
display: none;
width:100%;
height:100%;
background-color:rgba(95, 95, 95, 0.7);
z-index:998;
opacity: 0;
}
@keyframes fadeIn {
from {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes fadeOut {
from {
opacity: 1
}
to {
opacity: 0
}
}
@media screen and (max-width:480px) {
.msg-container {
max-width: 250px;
}
}