First version, for githup; UNSTABLE, DO NOT USE!
This commit is contained in:
79
www/intern/css/custom-msg-display.css
Normal file
79
www/intern/css/custom-msg-display.css
Normal file
@@ -0,0 +1,79 @@
|
||||
.msgDiv {
|
||||
position: fixed;
|
||||
bottom: 50px;
|
||||
right: 20px;
|
||||
display: flex;
|
||||
align-items: end;
|
||||
flex-direction: column-reverse;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.msgDiv, .msgDiv > * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.msgBox,
|
||||
.confirmBox {
|
||||
transform: translateX(calc(100% + 40px)) scaleY(0);
|
||||
height: 0;
|
||||
margin-top: 0;
|
||||
padding: 10px 15px;
|
||||
color: #fff;
|
||||
background-color: #0b0b0b;
|
||||
border-left: 4px solid;
|
||||
border-radius: 2px;
|
||||
transition: all 1s ease;
|
||||
}
|
||||
|
||||
.msgBox.show,
|
||||
.confirmBox.show {
|
||||
transform: translateX(0) scaleY(1);
|
||||
height: 40px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.msgBox.show {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.confirmBox.show {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.buttonConfirmDiv {
|
||||
margin-top: 16px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.confirmBox button {
|
||||
padding: 8px 24px;
|
||||
transition: background-color 0.3s ease, opacity 1s ease, height 1s ease;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
opacity: 0;
|
||||
height: 0;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.confirmBox.show button {
|
||||
opacity: 1;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.confirmYesButton {
|
||||
background-color: rgba(0, 255, 0, 0.75);
|
||||
}
|
||||
|
||||
.confirmNoButton {
|
||||
background-color: rgba(255, 0, 0, 0.75);
|
||||
}
|
||||
|
||||
.confirmYesButton:hover {
|
||||
background-color: rgba(0, 255, 0, 1);
|
||||
}
|
||||
|
||||
.confirmNoButton:hover {
|
||||
background-color: rgba(255, 0, 0, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user