penpot/frontend/src/app/main/ui/workspace/plugins.scss
2024-09-30 15:20:34 +02:00

275 lines
4.4 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
@import "refactor/common-refactor.scss";
.modal-overlay {
@extend .modal-overlay-base;
}
.modal-dialog {
@extend .modal-container-base;
display: grid;
grid-template-rows: auto 1fr auto;
max-height: initial;
&.plugin-permissions {
width: $s-412;
max-width: $s-412;
}
&.plugin-management {
width: $s-472;
max-width: $s-472;
}
hr {
border-color: var(--color-background-tertiary);
}
}
.modal-footer {
margin-top: 2rem;
}
.close-btn {
@extend .modal-close-btn-base;
}
.close-icon {
@extend .button-icon;
stroke: var(--icon-foreground);
}
.modal-title {
@include headlineMediumTypography;
margin-block-end: $s-32;
color: var(--modal-title-foreground-color);
}
.modal-content {
display: flex;
flex-direction: column;
.plugin-permissions & {
gap: $s-20;
}
.plugin-management & {
height: $s-380;
max-height: $s-380;
}
}
.primary-button {
@extend .button-primary;
@include headlineSmallTypography;
padding: $s-0 $s-16;
}
.button-expand {
width: 100%;
margin: 0;
}
.cancel-button {
@extend .button-secondary;
@include headlineSmallTypography;
padding: $s-0 $s-16;
}
.search-icon {
@include flexCenter;
width: $s-20;
padding: 0 0 0 $s-8;
svg {
@extend .button-icon-small;
stroke: var(--icon-foreground);
}
}
.top-bar {
display: flex;
gap: $s-8;
}
.open-button {
@extend .button-secondary;
width: $s-68;
min-width: $s-68;
height: $s-32;
text-transform: uppercase;
}
.trash-button {
@extend .button-tertiary;
width: $s-32;
height: $s-32;
svg {
@extend .button-icon;
stroke: var(--icon-foreground);
}
}
.plugins-list {
padding-top: $s-20;
overflow-x: hidden;
overflow-y: auto;
flex: 1;
display: flex;
flex-direction: column;
gap: $s-12;
}
.plugins-list-element {
display: flex;
gap: $s-12;
}
.plugin-icon {
min-width: $s-32;
min-height: $s-32;
width: $s-32;
height: $s-32;
background: var(--button-secondary-background-color-rest);
padding: $s-2;
border-radius: $s-4;
}
.plugin-description {
display: flex;
flex-direction: column;
gap: $s-8;
width: 100%;
}
.plugin-title {
@include bodyMediumTypography;
color: var(--color-foreground-primary);
}
.plugin-summary {
@include bodySmallTypography;
color: var(--color-foreground-secondary);
}
.plugins-empty {
display: flex;
flex-direction: column;
align-items: center;
gap: $s-20;
height: 100%;
justify-content: center;
padding: $s-36 0;
}
.plugins-empty-logo {
width: $s-44;
height: $s-44;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
background: var(--color-background-tertiary);
svg {
width: $s-16;
height: $s-16;
stroke: var(--color-foreground-secondary);
fill: none;
}
}
.plugins-empty-text {
@include bodySmallTypography;
color: var(--color-foreground-primary);
}
div.input-error {
border: $s-1 solid var(--input-border-color-error);
}
.info {
@include bodySmallTypography;
margin-top: $s-4;
&.error {
color: var(--input-border-color-error);
}
&.success {
color: var(--input-border-color-success);
}
}
.plugins-link {
color: var(--color-accent-primary);
font-size: $fs-12;
display: inline-flex;
align-items: center;
gap: $s-4;
svg {
margin-top: calc(-1 * $s-2);
width: $s-12;
height: $s-12;
stroke: var(--color-accent-primary);
fill: none;
}
}
.plugin-permissions {
}
.permissions-list {
display: flex;
flex-direction: column;
gap: $s-24;
}
.permissions-list-entry {
display: grid;
grid-template-columns: 24px 1fr;
gap: $s-16;
align-items: center;
svg {
width: $s-24;
height: $s-24;
stroke: var(--color-accent-primary);
fill: none;
}
}
.permissions-list-text {
@include bodySmallTypography;
margin: 0;
color: var(--color-foreground-secondary);
}
.permissions-disclaimer {
@include bodySmallTypography;
padding: $s-16;
background: var(--color-background-quaternary);
color: var(--color-foreground-quaternary);
border-radius: $br-4;
}
.action-buttons {
display: flex;
gap: $s-12;
}
.discover {
@include bodySmallTypography;
color: var(--color-foreground-secondary);
margin-top: $s-24;
a {
color: var(--color-accent-primary);
}
}