0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-30 10:51:09 -05:00
penpot/resources/styles/partials/sidebar-sitemap.scss

153 lines
2.6 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 {
.project-title {
align-items: center;
border-bottom: 1px solid $soft-ui-border;
display: flex;
padding: $x-small;
width: 100%;
span {
color: $intense-ui-text;
font-size: $fs14;
font-weight: bold;
max-width: 80%;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.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 {
2016-02-20 21:14:37 +01:00
background-color: $color-white;
border-color: $soft-ui-border;
2016-02-20 21:09:03 +01:00
}
}
}
.element-list {
li {
align-items: center;
border-bottom: 1px solid $soft-ui-border;
display: flex;
flex-direction: row;
padding: $small;
2016-02-20 21:09:03 +01:00
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;
2016-04-10 19:07:59 +02:00
display: none;
2016-02-20 21:09:03 +01:00
margin-left: auto;
a {
svg {
2016-02-20 21:41:49 +01:00
fill: $soft-ui-icons;
2016-02-20 21:09:03 +01:00
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;
}
2016-02-20 21:11:44 +01:00
2016-02-20 21:09:03 +01:00
}
span {
color: $main-ui-color;
font-weight: bold;
}
}
}
2016-04-10 19:07:59 +02:00
&:hover {
.page-actions {
display: flex;
@include animation(0s,.3s,fadeIn);
}
}
2016-02-20 21:09:03 +01:00
}
}