0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00
penpot/frontend/resources/styles/main/partials/sidebar-sitemap.scss

227 lines
3.9 KiB
SCSS
Raw Normal View History

2016-03-01 20:39:13 +02:00
// 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 INC
2016-03-01 20:39:13 +02:00
#sitemap,
.sitemap {
height: var(--height, 200px);
2016-02-20 21:09:03 +01:00
.element-list,
.pages-list {
2016-02-20 21:09:03 +01:00
li {
align-items: center;
display: flex;
flex-direction: row;
width: 100%;
.page-icon {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-30;
2019-12-17 11:52:04 +01:00
height: 13px;
2021-10-05 10:16:44 +02:00
margin-right: $size-1;
2019-12-17 11:52:04 +01:00
width: 13px;
2016-02-20 21:09:03 +01:00
}
}
span {
2020-03-03 13:14:37 +01:00
color: $color-gray-20;
2020-04-25 18:26:17 +02:00
font-size: $fs12;
2016-02-20 21:09:03 +01:00
max-width: 75%;
2022-07-15 10:57:53 +02:00
overflow: hidden;
2016-02-20 21:09:03 +01:00
text-overflow: ellipsis;
white-space: nowrap;
}
.page-actions {
align-items: center;
2016-04-10 19:07:59 +02:00
display: none;
2016-02-20 21:09:03 +01:00
margin-left: auto;
button {
border: none;
background-color: transparent;
2016-02-20 21:09:03 +01:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2016-02-20 21:09:03 +01:00
height: 15px;
2021-10-05 10:16:44 +02:00
margin-left: $size-1;
2016-02-20 21:09:03 +01:00
width: 15px;
}
}
}
&:hover {
2020-03-03 13:14:37 +01:00
background-color: $color-primary;
2016-02-20 21:09:03 +01:00
.page-icon {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2019-12-17 13:23:53 +01:00
}
span {
2020-03-03 13:14:37 +01:00
color: $color-gray-60;
2016-02-20 21:09:03 +01:00
}
}
2019-12-17 13:23:53 +01:00
.page-actions {
display: flex;
2016-02-20 21:09:03 +01:00
}
}
&.selected {
.page-icon {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-primary;
2016-02-20 21:09:03 +01:00
}
}
span {
2020-03-03 13:14:37 +01:00
color: $color-primary;
2016-02-20 21:09:03 +01:00
}
}
2019-12-17 13:23:53 +01:00
&:hover {
.page-icon {
2019-12-17 11:52:04 +01:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2019-12-17 11:52:04 +01:00
}
}
2016-04-10 19:07:59 +02:00
2019-12-17 13:23:53 +01:00
span {
2020-03-03 13:14:37 +01:00
color: $color-gray-60;
2019-12-17 13:23:53 +01:00
}
2016-04-10 19:07:59 +02:00
}
}
2016-12-21 19:17:16 +01:00
.element-list-body {
align-items: center;
display: flex;
2021-10-05 10:16:44 +02:00
padding: $size-1 $size-2;
2016-12-21 19:17:16 +01:00
transition: none;
width: 100%;
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2016-12-21 19:17:16 +01:00
height: 13px;
margin-right: 8px;
width: 13px;
}
.element-actions {
align-items: center;
display: flex;
flex-shrink: 0;
width: 62px;
}
&.dragging {
// TODO: revisit this
2020-03-03 13:14:37 +01:00
background-color: $color-gray-10;
2016-12-21 19:17:16 +01:00
}
}
2016-02-20 21:09:03 +01:00
}
& .resize-area {
position: absolute;
width: 100%;
height: 16px;
bottom: -8px;
left: 0;
cursor: ns-resize;
}
2020-03-24 14:38:13 +01:00
}
.add-page,
.collapse-pages {
align-items: center;
background-color: transparent;
border-radius: $br3;
2020-03-24 14:38:13 +01:00
border: 1px solid transparent;
cursor: pointer;
display: flex;
justify-content: center;
margin-left: auto;
2021-10-05 10:16:44 +02:00
padding: $size-1;
2020-03-24 14:38:13 +01:00
svg {
fill: $color-gray-20;
2020-03-27 21:41:12 +01:00
height: 0.7rem;
width: 0.7rem;
2020-03-24 14:38:13 +01:00
}
&:hover {
background-color: $color-primary;
svg {
2020-03-27 21:41:12 +01:00
fill: $color-gray-60 !important;
2020-03-24 14:38:13 +01:00
}
}
}
2022-10-03 09:50:25 +02:00
.title-actions {
align-items: center;
display: flex;
justify-content: center;
margin-left: auto;
.layout-btns {
display: flex;
align-items: center;
justify-content: flex-end;
2022-10-03 09:50:25 +02:00
}
.remove-layout {
display: flex;
align-items: center;
justify-content: center;
height: 21px;
width: 21px;
padding: 4px;
svg {
height: 0.7rem;
width: 0.7rem;
}
}
button {
background-color: transparent;
border-radius: $br3;
2022-10-03 09:50:25 +02:00
border: 1px solid transparent;
cursor: pointer;
color: $color-gray-20;
svg {
fill: $color-gray-20;
height: 0.7rem;
width: 0.7rem;
}
&.active {
color: $color-primary;
}
&:hover {
background-color: $color-primary;
color: $color-gray-60;
svg {
fill: $color-gray-60 !important;
}
}
}
}
2020-10-20 15:38:02 +02:00
.element-set-title-actions {
display: flex;
flex-direction: row;
flex: 1;
justify-content: flex-end;
.add-page {
margin: 0;
}
}
2020-03-24 14:38:13 +01:00
.collapse-pages {
2021-10-05 10:16:44 +02:00
margin-left: $size-2;
2016-02-20 21:09:03 +01:00
2020-03-24 14:38:13 +01:00
svg {
transform: rotate(90deg);
}
2016-02-20 21:09:03 +01:00
}