64 lines
2.3 KiB
CSS
64 lines
2.3 KiB
CSS
/*
|
|
* Copyright (C) 2022 Apple Inc. All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
|
* THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
.timeline-view.screenshots > .content-view {
|
|
position: absolute;
|
|
inset: 0;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
overflow-x: auto;
|
|
background-color: hsl(0, 0%, 90%);
|
|
}
|
|
|
|
.timeline-view.screenshots > .content-view > .spacer {
|
|
display: inline-block;
|
|
height: 50%;
|
|
}
|
|
|
|
.timeline-view.screenshots > .content-view > img {
|
|
max-width: calc(80% - (var(--margin) * 2));
|
|
max-height: calc(100% - (var(--margin) * 2));
|
|
margin: var(--margin);
|
|
vertical-align: middle;
|
|
box-shadow: var(--shadow);
|
|
|
|
--margin: 20px;
|
|
--shadow: 1px 2px 6px rgba(0, 0, 0, 0.58);
|
|
}
|
|
|
|
.timeline-view.screenshots > .content-view > img + img {
|
|
margin-inline-start: 0;
|
|
}
|
|
|
|
.timeline-view.screenshots > .content-view > img.selected {
|
|
box-shadow: 0 0 0 2px var(--glyph-color-active), var(--shadow);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.timeline-view.screenshots > .content-view {
|
|
background-color: hsl(0, 0%, 14%);
|
|
}
|
|
}
|