0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -05:00
penpot/frontend/resources/styles/main/partials/sidebar-sitemap.scss

173 lines
2.8 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) 2015-2016 Andrey Antukh <niwi@niwi.nz>
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
2016-02-20 21:09:03 +01:00
.sitemap {
2020-03-24 14:38:13 +01:00
flex: none !important;
2016-02-20 21:09:03 +01:00
.element-list {
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;
margin-right: $small;
width: 13px;
2016-02-20 21:09:03 +01:00
}
}
span {
2020-03-03 13:14:37 +01:00
color: $color-gray-20;
2019-12-17 11:52:04 +01:00
font-size: $fs13;
2016-02-20 21:09:03 +01:00
max-width: 75%;
overflow-x: hidden;
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;
a {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2016-02-20 21:09:03 +01:00
height: 15px;
margin-left: $x-small;
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
}
2016-02-20 21:11:44 +01:00
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;
2019-12-17 11:52:04 +01:00
padding: $x-small $small;
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
}
2020-03-24 14:38:13 +01:00
}
.add-page,
.collapse-pages {
align-items: center;
background-color: transparent;
border-radius: $br-small;
border: 1px solid transparent;
cursor: pointer;
display: flex;
justify-content: center;
margin-left: auto;
padding: $x-small;
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
}
}
}
.collapse-pages {
margin-left: $small;
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
}