0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Style the form to fit the color ramp exactly

This commit is contained in:
Florian Schroedl 2024-09-18 17:23:42 +02:00
parent 8804d1432e
commit f5b62a5fc1
3 changed files with 10 additions and 2 deletions

View file

@ -326,7 +326,8 @@ Token names should only contain letters and digits separated by . characters.")}
(st/emit! (wtu/update-workspace-tokens))
(modal/hide!)))))))))]
[:form
{:on-submit on-submit}
{:class (stl/css :form-wrapper)
:on-submit on-submit}
[:div {:class (stl/css :token-rows)}
[:div
[:& tokens.common/labeled-input {:label "Name"

View file

@ -7,6 +7,10 @@
@import "refactor/common-refactor.scss";
@import "./common.scss";
.form-wrapper {
width: $s-260;
}
.button-row {
display: flex;
flex-direction: column;
@ -30,7 +34,7 @@
@include bodySmallTypography;
padding: $s-4 $s-6;
font-weight: medium;
height: $s-24;
min-height: 1lh;
color: var(--color-foreground-primary);
border: 1px solid color-mix(in hsl, var(--color-foreground-secondary) 30%, transparent);

View file

@ -8,6 +8,9 @@
.shadow {
@extend .modal-container-base;
width: auto;
max-width: auto;
min-width: auto;
@include menuShadow;
position: absolute;
z-index: 11;