mirror of
https://github.com/penpot/penpot.git
synced 2026-11-23 10:50:49 +00:00
* ♻️ Use DS buttons in the delete shared libraries modal The delete shared libraries modal (unpublish a library, delete a shared file or project) gets a ghost DS icon button named "Close", placed on the tooltip wrapper, and DS buttons for cancel (secondary) and accept (destructive for the danger style, primary otherwise) instead of raw inputs. The buttons are narrower and the accept button takes the DS destructive red. A new empty library references fixture and a visual test cover the unpublish library modal from the workspace main menu. AI-assisted-by: claude-opus-5-5 * ♻️ Move delete shared libraries modal styles closer to the DS The delete shared libraries stylesheet resolves its legacy modal color aliases to DS tokens, uses a logical property and the DS typography module without a namespace. refactor/ stays only for the modal placeholders (%modal-*), which move with the modals refactor. Two unused selectors are commented out with a TODO. No visual change. AI-assisted-by: claude-opus-5-5 * 🔥 Remove unused styles from the delete shared libraries modal The SCSS refactor of the delete shared libraries modal left rules commented out with a TODO because the module does not use them, or because they target an svg inside a DS icon that is the svg itself. CSS modules scope the classes to this module and no other source uses them, so they go: &.transparent, .list-wrapper. No visual change. AI-assisted-by: claude-opus-5-5
68 lines
1.4 KiB
SCSS
68 lines
1.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 SUBSIDIARY SL
|
|
|
|
// refactor/ stays for the modal placeholders (%modal-*), which move with
|
|
// the modals refactor.
|
|
@use "refactor/basic-rules.scss" as *;
|
|
@use "ds/typography.scss" as *;
|
|
|
|
.modal-overlay {
|
|
@extend %modal-overlay-base;
|
|
}
|
|
|
|
.modal-container {
|
|
@extend %modal-container-base;
|
|
|
|
display: grid;
|
|
gap: var(--sp-xxl);
|
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
}
|
|
|
|
.modal-title {
|
|
@include use-typography("headline-medium");
|
|
|
|
color: var(--color-foreground-primary);
|
|
}
|
|
|
|
// Tooltip wrapper of the close button: it places it in the corner.
|
|
.modal-close-btn {
|
|
position: absolute;
|
|
inset-block-start: var(--sp-s);
|
|
inset-inline-end: var(--sp-xs);
|
|
}
|
|
|
|
.modal-content {
|
|
@include use-typography("body-small");
|
|
|
|
display: grid;
|
|
gap: var(--sp-s);
|
|
}
|
|
|
|
.element-list {
|
|
@include use-typography("body-large");
|
|
|
|
color: var(--color-foreground-secondary);
|
|
overflow-y: auto;
|
|
margin-block: 0;
|
|
}
|
|
|
|
.action-buttons {
|
|
@extend %modal-action-btns;
|
|
}
|
|
|
|
.modal-scd-msg {
|
|
margin-block: 0;
|
|
}
|
|
|
|
.modal-scd-msg,
|
|
.modal-subtitle,
|
|
.modal-msg {
|
|
@include use-typography("body-large");
|
|
|
|
color: var(--color-foreground-secondary);
|
|
line-height: 1.5;
|
|
}
|