mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-17 06:35:14 +08:00
44c919d3dc
* Implement shareable link task view [SCI-8752]
159 lines
2.7 KiB
SCSS
159 lines
2.7 KiB
SCSS
// scss-lint:disable IdSelector PropertyUnits NestingDepth SelectorDepth
|
|
|
|
// Image preview modal
|
|
#filePreviewModal {
|
|
background: transparent;
|
|
font-size: $font-size-base;
|
|
padding: 0;
|
|
z-index: 1060;
|
|
|
|
.modal-dialog {
|
|
background: inherit;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.modal-content {
|
|
background: inherit;
|
|
border: 0;
|
|
border-radius: 0;
|
|
height: auto;
|
|
min-height: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
.file-preview-container {
|
|
align-items: center;
|
|
display: flex;
|
|
height: 100%;
|
|
justify-content: center;
|
|
text-align: center;
|
|
width: 100%;
|
|
|
|
&.processing {
|
|
background-image: url("/images/medium/loading_white.svg");
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: 64px;
|
|
}
|
|
|
|
.wopi-file-preview {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
}
|
|
|
|
img {
|
|
background: url(asset-path("custom/checkerboard-pattern.png"));
|
|
height: auto;
|
|
max-width: 100%;
|
|
|
|
@media (max-height: 520px) {
|
|
height: 80%;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
align-items: center;
|
|
background: $color-white;
|
|
display: flex;
|
|
height: 4em;
|
|
padding: 0 1em;
|
|
|
|
.file-name {
|
|
font-weight: bold;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.asset-context-menu {
|
|
float: left;
|
|
}
|
|
}
|
|
|
|
.modal-body {
|
|
align-items: center;
|
|
background: transparent;
|
|
display: flex;
|
|
height: calc(100vh - 8em);
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.modal-footer {
|
|
background: $color-white;
|
|
height: 4em;
|
|
padding: 0 1em;
|
|
|
|
.gallery {
|
|
align-items: center;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
height: 100%;
|
|
padding: 0 1em;
|
|
width: 100%;
|
|
|
|
img {
|
|
max-height: 2em;
|
|
max-width: 2em;
|
|
}
|
|
|
|
|
|
.file-counter {
|
|
font-weight: bold;
|
|
grid-column-start: 2;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.gallery-switcher,
|
|
.shareable-gallery-switcher {
|
|
align-items: center;
|
|
color: $color-black;
|
|
display: flex;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.file-name {
|
|
display: inline-block;
|
|
max-width: 16em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
.fa-angle-right,
|
|
.fa-angle-left {
|
|
margin: 0 .5em;
|
|
}
|
|
|
|
&.previous-asset {
|
|
grid-column-start: 1;
|
|
margin-right: auto;
|
|
}
|
|
|
|
&.next-asset {
|
|
grid-column-start: 3;
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn-light:not(.file-download-link) {
|
|
.fas {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.modal-backdrop.in {
|
|
opacity: .4;
|
|
}
|