mirror of
https://github.com/status-im/codimd.git
synced 2025-02-07 09:54:23 +00:00
ec01735424
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
77 lines
1.4 KiB
CSS
77 lines
1.4 KiB
CSS
.lightbox-container.show {
|
|
display: flex !important;
|
|
}
|
|
|
|
.lightbox-container {
|
|
display: none;
|
|
|
|
position: fixed;
|
|
z-index: 99999;
|
|
background-color: rgba(255, 255, 255, 0.8);
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0px 40px;
|
|
}
|
|
|
|
.lightbox-container .lightbox-control-previous,
|
|
.lightbox-container .lightbox-control-next,
|
|
.lightbox-container .lightbox-control-close {
|
|
position: absolute;
|
|
width: 40px;
|
|
height: 40px;
|
|
color: rgba(65, 65, 65, 0.8);
|
|
text-align: center;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
font-size: 25px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.lightbox-container .lightbox-control-previous:hover,
|
|
.lightbox-container .lightbox-control-next:hover,
|
|
.lightbox-container .lightbox-control-close:hover {
|
|
color: rgba(130, 130, 130, 0.78);
|
|
}
|
|
|
|
.lightbox-container .lightbox-control-next,
|
|
.lightbox-container .lightbox-control-previous {
|
|
top: calc(50% - 10px);
|
|
}
|
|
|
|
.lightbox-container .lightbox-control-previous {
|
|
left: 0;
|
|
}
|
|
|
|
.lightbox-container .lightbox-control-next {
|
|
right: 0;
|
|
}
|
|
|
|
.lightbox-container .lightbox-control-close {
|
|
top: 10px;
|
|
right: 10px;
|
|
}
|
|
|
|
.lightbox-container .lightbox-inner img {
|
|
max-width: 100%;
|
|
cursor: move;
|
|
|
|
transform-origin: 0 0;
|
|
-moz-transform-origin: 0 0;
|
|
-webkit-transform-origin: 0 0;
|
|
-ms-transform-origin: 0 0;
|
|
-o-transform-origin: 0 0;
|
|
}
|
|
|
|
.markdown-body img.md-image {
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
body.no-scroll {
|
|
overflow: hidden;
|
|
}
|