mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 12:16:38 +02:00
🎉 Show assets as a list
This commit is contained in:
parent
112e656f40
commit
e8da04d4ab
7 changed files with 150 additions and 57 deletions
Before Width: | Height: | Size: 446 B After Width: | Height: | Size: 446 B |
|
@ -305,6 +305,56 @@
|
|||
border: 2px solid $color-primary;
|
||||
}
|
||||
|
||||
.asset-title + .asset-enum {
|
||||
margin-top: $small;
|
||||
}
|
||||
|
||||
.asset-enum {
|
||||
.enum-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: $small;
|
||||
cursor: pointer;
|
||||
|
||||
& > svg,
|
||||
& > img {
|
||||
background-color: $color-canvas;
|
||||
border-radius: 4px;
|
||||
border: 2px solid transparent;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
margin-right: $small;
|
||||
}
|
||||
|
||||
.item-name {
|
||||
width: calc(100% - 24px - #{$small});
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
display: block;
|
||||
|
||||
&.editing {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.editable-label-input {
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.editable-label-close {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.enum-item:hover,
|
||||
.enum-item.selected,
|
||||
{
|
||||
color: $color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
/* TODO: see if this is useful, or is better to leave only
|
||||
one scroll bar in the whole sidebar
|
||||
(also see .asset-section) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue