libreoffice-online/browser/css/partsPreviewControl.css
Pedro Pinto Silva 30903fa6f9 Impress: Fix imperceptible active (current) slide border
- Make it bigger
- Also size is not enough, specially for slides that have backgrounds
  - Add white inner margin so there is a clear distinction between
- what is the slide preview (image) and its contour

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ifee386b98d74c937efa35c19551334482ec18632
2023-05-05 09:20:06 +02:00

55 lines
1.3 KiB
CSS

#slide-sorter {
white-space: nowrap;
overflow-x: hidden;
overflow-y: visible;
background: var(--color-background-lighter);
max-height: 100%;
scrollbar-color: var(--color-background-darker) var(--color-background-lighter);
scrollbar-width: thin;
}
#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 160px to align it with document's left edge */
min-width: 160px;
vertical-align: middle;
max-width: 164px;
cursor: pointer;
border: 3px solid transparent !important;
outline: 3px solid var(--color-border);
box-sizing: border-box;
margin-left: 10px;
margin-right: 10px;
}
/* The current part the user is on. */
.preview-img-currentpart {
border-color: var(--color-background-lighter) !important;
outline-color: var(--color-primary-dark);
}
/* One of (potentially many) selected parts, but not the current. */
.preview-img-selectedpart {
border-color: var(--color-primary) !important;
}
/* Highlight where a slide can be dropped when reordering by drag-and-drop. */
.preview-img-dropsite {
border-bottom: 20px solid var(--color-primary);
}