0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-15 19:48:22 -05:00
penpot/frontend/resources/styles/main/partials/sidebar-sitemap.scss

176 lines
2.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) 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 {
2019-12-17 15:37:30 +01:00
max-height: 180px;
.tool-window-bar {
2016-02-20 21:09:03 +01:00
.add-page {
align-items: center;
2016-02-20 21:14:37 +01:00
background-color: $soft-ui-icons;
2016-02-20 21:09:03 +01:00
border-radius: $br-small;
2016-02-20 21:14:37 +01:00
border: 1px solid transparent;
2016-02-20 21:09:03 +01:00
cursor: pointer;
display: flex;
justify-content: center;
margin-left: auto;
padding: $x-small;
svg {
2016-02-20 21:14:37 +01:00
fill: $intense-ui-icons;
2016-02-20 21:09:03 +01:00
height: 16px;
width: 16px;
}
&:hover {
2019-12-17 15:37:30 +01:00
background-color: $main-ui-color;
2016-02-20 21:09:03 +01:00
2019-12-17 15:37:30 +01:00
svg {
fill: $soft-ui-icons;
}
}
2016-02-20 21:09:03 +01:00
}
}
.element-list {
li {
align-items: center;
display: flex;
flex-direction: row;
width: 100%;
.page-icon {
svg {
fill: $medium-ui-icons;
2019-12-17 11:52:04 +01:00
height: 13px;
margin-right: $small;
width: 13px;
2016-02-20 21:09:03 +01:00
}
}
span {
color: $medium-ui-text;
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 {
2019-12-17 13:23:53 +01:00
fill: $soft-ui-icons;
2016-02-20 21:09:03 +01:00
height: 15px;
margin-left: $x-small;
2019-12-17 13:23:53 +01:00
opacity: .6;
2016-02-20 21:09:03 +01:00
width: 15px;
&:hover {
2019-12-17 13:23:53 +01:00
opacity: 1;
2016-02-20 21:09:03 +01:00
}
}
}
}
&:hover {
2019-12-17 13:23:53 +01:00
background-color: $main-ui-color;
2016-02-20 21:09:03 +01:00
.page-icon {
svg {
2019-12-17 13:23:53 +01:00
fill: $soft-ui-icons;
}
span {
color: $intense-ui-text;
2016-02-20 21:09:03 +01:00
}
}
2019-12-17 13:23:53 +01:00
.page-actions {
display: flex;
@include animation(0s,.3s,fadeIn);
2016-02-20 21:09:03 +01:00
}
}
&.selected {
.page-icon {
svg {
2019-12-17 13:23:53 +01:00
fill: $main-ui-color;
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 {
2019-12-17 13:23:53 +01:00
color: $main-ui-color;
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 {
fill: $soft-ui-icons;
}
}
2016-04-10 19:07:59 +02:00
2019-12-17 13:23:53 +01:00
span {
color: $intense-ui-text;
}
2016-04-10 19:07:59 +02:00
}
}
2019-12-17 13:23:53 +01: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 {
fill: $soft-ui-icons;
height: 13px;
margin-right: 8px;
width: 13px;
}
.element-actions {
align-items: center;
display: flex;
flex-shrink: 0;
width: 62px;
}
&.dragging {
// TODO: revisit this
2019-12-17 13:23:53 +01:00
background-color: $dark-ui-bg;
2016-12-21 19:17:16 +01:00
}
}
2016-02-20 21:09:03 +01:00
}
}