wolegca.github.io/myui.css

120 lines
1.8 KiB
CSS
Raw Normal View History

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