etherpad-lite/src/static/css/pad/popup.css

83 lines
1.5 KiB
CSS
Raw Normal View History

.popup.popup-show, .popup#users.chatAndUsers {
2020-04-06 11:11:08 +02:00
visibility: visible;
}
.popup > .popup-content {
transform: scale(0.7);
opacity: 0;
transition: all 0.3s cubic-bezier(0.74, -0.05, 0.27, 1.75)
}
.popup.popup-show > .popup-content, .popup#users.chatAndUsers > .popup-content {
2020-04-06 11:11:08 +02:00
transform: scale(1);
opacity: 1;
}
.popup {
position: absolute;
2020-04-06 11:11:08 +02:00
top: 10px;
right: 30px;
visibility: hidden;
z-index: 500;
2020-04-06 11:11:08 +02:00
}
#mycolorpicker {
top: 0;
}
.popup.toolbar-popup {
right: auto;
margin-left: -10px;
}
.popup-content {
padding: 10px;
2020-04-06 11:11:08 +02:00
border-radius: 6px;
border: 1px solid #ccc;
box-shadow: 0 2px 4px #ddd;
background: #f7f7f7;
min-width: 300px;
max-width: 600px;
}
.popup input[type=text] {
width: 100%;
padding: 5px;
display: block;
margin-top: 10px;
}
.popup input[type=text], #users input[type=text] {
outline: none;
}
.popup a {
text-decoration: none
}
.popup h1 {
2020-04-04 14:59:11 +02:00
font-size: 1.8rem;
margin-bottom: 10px;
}
.popup h2 {
opacity: .7;
margin: 10px 0;
font-size: 1.2rem;
}
2020-04-15 12:04:47 +02:00
.popup:not(.comment-modal) p {
margin: 5px 0;
}
/* Mobile devices */
@media only screen and (max-width: 720px) {
.popup {
border-radius: 0;
2020-04-07 18:47:36 +02:00
top: 1rem;
margin: 0 !important;
right: 1rem !important;
left: 1rem !important;
2020-04-04 11:15:33 +02:00
max-width: none !important;
}
2020-04-07 18:47:36 +02:00
.popup-content {
max-height: 80vh;
overflow: auto;
}
2020-04-04 11:15:33 +02:00
/* Move popup to the bottom, except popup linked to left toolbar, like hyperklink popup */
2020-04-06 11:11:08 +02:00
.popup:not(.toolbar-popup) {
2020-04-04 11:15:33 +02:00
top: auto;
2020-04-07 18:47:36 +02:00
bottom: 1rem;
2020-04-04 13:05:53 +02:00
}
}