324c7342fe
In order to show a slide sorter, it is necessary to reuse the code that it is working for desktop view. changes: * modified the @media properties of the slide sorter container element. * added new @media properties for slide-sorter element. * changed the axis direction to 'x' for the mCustomScrollbar * changed the calculation using left, right and width properties for the direction 'x' * added options maxWidth and maxHeight size for the image preview, default 60, 60 for mobile case Change-Id: I23a83c831c9aa21ab2876f9d1875c7428c17d18d
71 lines
1.3 KiB
CSS
71 lines
1.3 KiB
CSS
#document-container.parts-preview-document {
|
|
left: 214px;
|
|
}
|
|
|
|
#slide-sorter {
|
|
height: 100%
|
|
}
|
|
|
|
#sidebar-panel {
|
|
height: 100%
|
|
}
|
|
|
|
.preview-frame {
|
|
max-width: 190px;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.preview-helper {
|
|
display: inline-block;
|
|
height: 100%;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.preview-img {
|
|
/* In draw docs, the width of previews are small, but we want a min of 180px to align it with document's left edge */
|
|
min-width: 180px;
|
|
vertical-align: middle;
|
|
max-width: 184px;
|
|
cursor: pointer;
|
|
border: 2px solid #dfdfdf;
|
|
}
|
|
|
|
@media (max-width: 767px),(max-device-height: 767px) {
|
|
.preview-img {
|
|
min-width: 60px;
|
|
max-width: 60px;
|
|
}
|
|
|
|
.preview-frame {
|
|
max-height: 60px;
|
|
max-width: initial;
|
|
display: table-cell;
|
|
padding-right: 1em;
|
|
}
|
|
}
|
|
|
|
/* The current part the user is on. */
|
|
.preview-img-currentpart {
|
|
border-color: #000000;
|
|
border-style: solid;
|
|
}
|
|
|
|
/* One of (potentially many) selected parts, but not the current. */
|
|
.preview-img-selectedpart {
|
|
border-color: #000000;
|
|
border-style: dotted;
|
|
}
|
|
|
|
/* Highlight where a slide can be dropped when reordering by drag-and-drop. */
|
|
.preview-img-dropsite {
|
|
border-bottom: 3px solid #b6b6b6;
|
|
}
|
|
|
|
/* Make it larger on larger displays */
|
|
@media (min-width: 768px),(min-device-height: 768px) {
|
|
.preview-img-dropsite {
|
|
border-bottom: 20px solid #b6b6b6;
|
|
}
|
|
}
|