penpot/frontend/src/app/main/ui/viewer/thumbnails.scss

165 lines
3.0 KiB
SCSS

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC Sucursal en España SL
@use "refactor/common-refactor.scss" as deprecated;
.viewer-thumbnails {
background-color: var(--viewer-background-color);
grid-row: 1 / span 1;
grid-column: 1 / span 1;
overflow: hidden;
display: flex;
flex-direction: column;
z-index: deprecated.$z-index-10;
}
.expanded {
grid-row: 1 / span 2;
.expand-btn svg {
transform: rotate(-90deg);
}
}
.thumbnails-summary {
display: flex;
justify-content: space-between;
align-items: center;
height: deprecated.$s-32;
margin: deprecated.$s-24 deprecated.$s-24 0 deprecated.$s-24;
}
.counter {
@include deprecated.body-small-typography;
color: var(--viewer-thumbnails-control-foreground-color);
}
.actions {
@include deprecated.flex-row;
width: deprecated.$s-60;
}
.expand-btn,
.close-btn {
@extend %button-tertiary;
height: deprecated.$s-32;
width: deprecated.$s-28;
svg {
@extend %button-icon;
}
}
.expand-btn svg {
transform: rotate(90deg);
}
.thumbnails-content {
display: grid;
grid-template-columns: deprecated.$s-40 auto deprecated.$s-40;
grid-template-rows: auto;
}
.thumbnails-list-expanded {
grid-column: 1 / span 3;
grid-row: 1 / span 1;
display: flex;
flex-wrap: wrap;
overflow: hidden;
}
.right-scroll-handler,
.left-scroll-handler {
@extend %button-tertiary;
@include deprecated.flex-center;
grid-column: 3 / span 1;
grid-row: 1 / span 1;
width: deprecated.$s-32;
height: deprecated.$s-60;
margin: auto 0;
z-index: deprecated.$z-index-10;
opacity: 0;
&:hover {
opacity: 1;
}
svg {
@extend %button-icon;
stroke: var(--icon-foreground);
}
}
.left-scroll-handler {
grid-column: 1 / span 1;
grid-row: 1 / span 1;
svg {
transform: rotate(180deg);
}
}
.thumbnails-list {
grid-column: 1 / span 3;
grid-row: 1 / span 1;
display: flex;
flex-wrap: nowrap;
overflow: hidden;
}
.thumbnails-list-inside {
display: flex;
position: relative;
}
.thumbnail-item {
@include deprecated.button-style;
display: flex;
flex-direction: column;
padding: deprecated.$s-16;
}
.thumbnail-preview {
@include deprecated.flex-center;
width: deprecated.$s-132;
min-height: deprecated.$s-132;
height: deprecated.$s-132;
padding: deprecated.$s-4;
svg {
width: 100%;
height: 100%;
}
&.selected {
background-color: var(--viewer-thumbnail-background-color-selected);
border-radius: deprecated.$br-8;
}
&:hover {
border: deprecated.$s-1 solid var(--viewer-thumbnail-border-color);
border-radius: deprecated.$br-8;
}
}
.thumbnail-info {
@include deprecated.body-small-typography;
@include deprecated.text-ellipsis;
text-align: center;
color: var(--viewer-thumbnails-control-foreground-color);
padding: deprecated.$s-8 0;
width: 100%;
max-width: deprecated.$s-132;
}