mirror of
https://github.com/penpot/penpot.git
synced 2026-09-07 04:29:31 +00:00
add sitemap sidebar
This commit is contained in:
parent
fb913fcefc
commit
353f6f0efa
@ -84,6 +84,133 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.view-sitemap {
|
||||||
|
background-color: $primary-ui-bg;
|
||||||
|
border-top: 1px solid $soft-ui-border;
|
||||||
|
border-right: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex-shrink: 0;
|
||||||
|
height: 55px;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.sitemap-title {
|
||||||
|
border-bottom: 1px solid $soft-ui-border;
|
||||||
|
padding: $small;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include bp(tablet) {
|
||||||
|
border-right: 1px solid $soft-ui-border;
|
||||||
|
border-top: 0;
|
||||||
|
height: 100%;
|
||||||
|
width: 220px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.sitemap-list {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
li {
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid $soft-ui-border;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
padding: $small;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
.page-icon {
|
||||||
|
|
||||||
|
svg {
|
||||||
|
fill: $medium-ui-icons;
|
||||||
|
height: 15px;
|
||||||
|
margin-right: $x-small;
|
||||||
|
width: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: $medium-ui-text;
|
||||||
|
font-size: $fs14;
|
||||||
|
max-width: 75%;
|
||||||
|
overflow-x: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-actions {
|
||||||
|
align-items: center;
|
||||||
|
display: none;
|
||||||
|
margin-left: auto;
|
||||||
|
|
||||||
|
a {
|
||||||
|
|
||||||
|
svg {
|
||||||
|
fill: $soft-ui-icons;
|
||||||
|
height: 15px;
|
||||||
|
margin-left: $x-small;
|
||||||
|
width: 15px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
fill: $intense-ui-icons;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
|
||||||
|
.page-icon {
|
||||||
|
|
||||||
|
svg {
|
||||||
|
fill: $main-ui-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: $main-ui-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
|
||||||
|
.page-icon {
|
||||||
|
|
||||||
|
svg {
|
||||||
|
fill: $main-ui-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: $main-ui-color;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
|
||||||
|
.page-actions {
|
||||||
|
display: flex;
|
||||||
|
@include animation(0s,.3s,fadeIn);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.view-canvas {
|
.view-canvas {
|
||||||
background-color: $secondary-ui-bg;
|
background-color: $secondary-ui-bg;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@ -21,6 +21,24 @@
|
|||||||
[own]
|
[own]
|
||||||
(html
|
(html
|
||||||
[:section.view-content
|
[:section.view-content
|
||||||
|
|
||||||
|
[:div.view-sitemap.hide
|
||||||
|
[:span.sitemap-title "_Sitename_"]
|
||||||
|
[:ul.sitemap-list
|
||||||
|
[:li
|
||||||
|
[:div.page-icon i/page]
|
||||||
|
[:span "page 001"]]
|
||||||
|
[:li
|
||||||
|
[:div.page-icon i/page]
|
||||||
|
[:span "page 002"]]
|
||||||
|
[:li
|
||||||
|
[:div.page-icon i/page]
|
||||||
|
[:span "page 003"]]
|
||||||
|
[:li
|
||||||
|
[:div.page-icon i/page]
|
||||||
|
[:span "page 004"]]]
|
||||||
|
]
|
||||||
|
|
||||||
[:div.view-nav
|
[:div.view-nav
|
||||||
[:ul.view-options-btn
|
[:ul.view-options-btn
|
||||||
[:li.tooltip.tooltip-right
|
[:li.tooltip.tooltip-right
|
||||||
@ -31,9 +49,8 @@
|
|||||||
{:alt "share"} i/export]
|
{:alt "share"} i/export]
|
||||||
[:li.tooltip.tooltip-right
|
[:li.tooltip.tooltip-right
|
||||||
{:alt "save SVG"} i/save]]]
|
{:alt "save SVG"} i/save]]]
|
||||||
[:div.view-canvas "VIEW CONTENT"]
|
|
||||||
]
|
[:div.view-canvas "VIEW CONTENT"]]))
|
||||||
))
|
|
||||||
|
|
||||||
(def app
|
(def app
|
||||||
(mx/component
|
(mx/component
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user