mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
* 🐛 Fix import warnings 1 of 2 * 🐛 Fix import warnings 2 of 2 * 🐛 Fix visual tests and format files * 🐛 Fix mixed declarations on scss
235 lines
4.9 KiB
SCSS
235 lines
4.9 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
|
|
|
|
@use "refactor/common-refactor.scss" as *;
|
|
|
|
// EXPORT MODAL
|
|
.modal-overlay {
|
|
@extend .modal-overlay-base;
|
|
&.transparent {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
.modal-container {
|
|
@extend .modal-container-base;
|
|
max-height: calc(10 * $s-80);
|
|
}
|
|
|
|
.modal-header {
|
|
margin-bottom: $s-24;
|
|
}
|
|
|
|
.modal-title {
|
|
@include headlineMediumTypography;
|
|
color: var(--modal-title-foreground-color);
|
|
}
|
|
|
|
.modal-close-btn {
|
|
@extend .modal-close-btn-base;
|
|
}
|
|
|
|
.modal-content {
|
|
@include bodySmallTypography;
|
|
margin-bottom: $s-24;
|
|
.modal-link {
|
|
@include bodyLargeTypography;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
color: var(--modal-link-foreground-color);
|
|
}
|
|
.selection-header {
|
|
@include flexRow;
|
|
height: $s-32;
|
|
margin-bottom: $s-4;
|
|
.selection-btn {
|
|
@include buttonStyle;
|
|
@extend .input-checkbox;
|
|
@include flexCenter;
|
|
height: $s-24;
|
|
width: $s-24;
|
|
padding: 0;
|
|
margin-left: $s-16;
|
|
span {
|
|
@extend .checkbox-icon;
|
|
}
|
|
}
|
|
.selection-title {
|
|
@include bodyLargeTypography;
|
|
color: var(--modal-text-foreground-color);
|
|
}
|
|
}
|
|
.selection-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
height: fit-content;
|
|
}
|
|
.selection-shadow {
|
|
width: 100%;
|
|
height: 100%;
|
|
&:after {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 50px;
|
|
background: linear-gradient(to top, rgba(24, 24, 26, 1) 0%, rgba(24, 24, 26, 0) 100%);
|
|
content: "";
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
.selection-list {
|
|
@include flexColumn;
|
|
max-height: $s-400;
|
|
overflow-y: auto;
|
|
padding-bottom: $s-12;
|
|
.selection-row {
|
|
@include flexRow;
|
|
background-color: var(--entry-background-color);
|
|
min-height: $s-40;
|
|
border-radius: $br-8;
|
|
.selection-btn {
|
|
@include buttonStyle;
|
|
display: grid;
|
|
grid-template-columns: min-content auto 1fr auto auto;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 10%;
|
|
gap: $s-8;
|
|
padding: 0 $s-16;
|
|
.checkbox-wrapper {
|
|
@extend .input-checkbox;
|
|
@include flexCenter;
|
|
height: $s-24;
|
|
width: $s-24;
|
|
padding: 0;
|
|
.checkobox-tick {
|
|
@extend .checkbox-icon;
|
|
}
|
|
}
|
|
.selection-name {
|
|
@include bodyLargeTypography;
|
|
@include textEllipsis;
|
|
flex-grow: 1;
|
|
color: var(--modal-text-foreground-color);
|
|
text-align: start;
|
|
}
|
|
.selection-scale {
|
|
@include bodyLargeTypography;
|
|
@include textEllipsis;
|
|
min-width: $s-108;
|
|
padding: $s-12;
|
|
color: var(--modal-text-foreground-color);
|
|
}
|
|
.selection-extension {
|
|
@include bodyLargeTypography;
|
|
@include textEllipsis;
|
|
min-width: $s-72;
|
|
padding: $s-12;
|
|
color: var(--modal-text-foreground-color);
|
|
}
|
|
}
|
|
.image-wrapper {
|
|
@include flexCenter;
|
|
min-height: $s-32;
|
|
min-width: $s-32;
|
|
background-color: var(--app-white);
|
|
border-radius: $br-6;
|
|
margin: auto 0;
|
|
img,
|
|
svg {
|
|
object-fit: contain;
|
|
max-height: $s-40;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.action-buttons {
|
|
@extend .modal-action-btns;
|
|
}
|
|
.cancel-button {
|
|
@extend .modal-cancel-btn;
|
|
}
|
|
.accept-btn {
|
|
@extend .modal-accept-btn;
|
|
&.danger {
|
|
@extend .modal-danger-btn;
|
|
}
|
|
}
|
|
|
|
.modal-scd-msg,
|
|
.modal-subtitle,
|
|
.modal-msg {
|
|
@include bodyLargeTypography;
|
|
color: var(--modal-text-foreground-color);
|
|
}
|
|
|
|
.export-option {
|
|
@extend .input-checkbox;
|
|
width: 100%;
|
|
align-items: flex-start;
|
|
label {
|
|
align-items: flex-start;
|
|
.modal-subtitle {
|
|
@include bodyLargeTypography;
|
|
color: var(--modal-title-foreground-color);
|
|
padding: 0.25rem 0;
|
|
}
|
|
}
|
|
span {
|
|
margin-top: $s-8;
|
|
}
|
|
}
|
|
|
|
.option-content {
|
|
@include flexColumn;
|
|
@include bodyLargeTypography;
|
|
}
|
|
|
|
.file-entry {
|
|
.file-name {
|
|
@include flexRow;
|
|
|
|
.file-icon {
|
|
@include flexCenter;
|
|
height: $s-16;
|
|
width: $s-16;
|
|
|
|
svg {
|
|
@extend .button-icon-small;
|
|
stroke: var(--input-foreground);
|
|
}
|
|
}
|
|
.file-name-label {
|
|
@include bodyLargeTypography;
|
|
@include textEllipsis;
|
|
}
|
|
}
|
|
&.loading {
|
|
.file-name {
|
|
color: var(--modal-text-foreground-color);
|
|
}
|
|
}
|
|
&.error {
|
|
.file-name {
|
|
color: var(--modal-text-foreground-color);
|
|
.file-icon svg {
|
|
stroke: var(--modal-text-foreground-color);
|
|
}
|
|
}
|
|
}
|
|
&.success {
|
|
.file-name {
|
|
color: var(--modal-text-foreground-color);
|
|
.file-icon svg {
|
|
stroke: var(--modal-text-foreground-color);
|
|
}
|
|
}
|
|
}
|
|
}
|