mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 19:56:10 +02:00
Add edit button
This commit is contained in:
parent
c807baaf7a
commit
cb46e11162
2 changed files with 31 additions and 3 deletions
|
@ -28,9 +28,14 @@
|
||||||
[:li {:key id
|
[:li {:key id
|
||||||
:class (stl/css-case
|
:class (stl/css-case
|
||||||
:checked-element true
|
:checked-element true
|
||||||
|
:sub-item true
|
||||||
:is-selected selected?)}
|
:is-selected selected?)}
|
||||||
[:span {:class (stl/css :label)} name]
|
[:span {:class (stl/css :label)} name]
|
||||||
[:span {:class (stl/css :check-icon)} i/tick]])]])]))
|
[:span {:class (stl/css :check-icon)} i/tick]])]])
|
||||||
|
[:li {:class (stl/css-case :checked-element true
|
||||||
|
:checked-element-button true)}
|
||||||
|
[:span "Edit themes"]
|
||||||
|
[:span {:class (stl/css :icon)} i/arrow]]]))
|
||||||
|
|
||||||
(mf/defc theme-select
|
(mf/defc theme-select
|
||||||
[{:keys []}]
|
[{:keys []}]
|
||||||
|
|
|
@ -97,11 +97,34 @@
|
||||||
top: auto;
|
top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sub-item {
|
||||||
|
padding-left: $s-16;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checked-element-button {
|
||||||
|
@extend .dropdown-element-base;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
li + .checked-element-button {
|
||||||
|
margin-top: $s-8;
|
||||||
|
&:before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -$s-4;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 1px;
|
||||||
|
background-color: color-mix(in hsl, var(--color-foreground-secondary) 20%, transparent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.checked-element {
|
.checked-element {
|
||||||
@extend .dropdown-element-base;
|
@extend .dropdown-element-base;
|
||||||
|
|
||||||
padding-left: $s-16;
|
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
@include flexCenter;
|
@include flexCenter;
|
||||||
height: $s-24;
|
height: $s-24;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue