mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 00:19:07 -05:00
139 lines
2.4 KiB
SCSS
139 lines
2.4 KiB
SCSS
// 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-2020 Andrey Antukh <niwi@niwi.nz>
|
|
// Copyright (c) 2015-2020 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
|
|
|
.settings-bar {
|
|
background-color: $color-gray-50;
|
|
bottom: 0;
|
|
height: 100%;
|
|
position: fixed;
|
|
right: 0;
|
|
width: 15rem;
|
|
z-index: 10;
|
|
|
|
&.settings-bar-left {
|
|
left: 40px;
|
|
}
|
|
|
|
.settings-bar-inside {
|
|
align-items: center;
|
|
display: grid;
|
|
grid-template-columns: 100%;
|
|
|
|
&[data-layout*='layers'] {
|
|
grid-template-rows: 30% 70%;
|
|
}
|
|
|
|
&[data-layout*='libraries'] {
|
|
grid-template-rows: 100%;
|
|
}
|
|
|
|
&[data-layout*='layers'][data-layout*='libraries'] {
|
|
grid-template-rows: 15% 25% 60%;
|
|
}
|
|
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
padding-top: 40px;
|
|
height: 100%;
|
|
|
|
.tool-window {
|
|
border-bottom: 1px solid $color-gray-60;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
.tool-window-bar {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
padding: $small;
|
|
overflow: hidden;
|
|
|
|
svg {
|
|
fill: $color-gray-20;
|
|
height: 12px;
|
|
width: 12px;
|
|
}
|
|
|
|
span {
|
|
color: $color-gray-10;
|
|
font-size: $fs14;
|
|
}
|
|
|
|
.tool-window-icon {
|
|
margin-right: $small;
|
|
display: none;
|
|
}
|
|
|
|
.tool-window-close {
|
|
cursor: pointer;
|
|
margin-left: auto;
|
|
transform: rotate(45deg);
|
|
|
|
&:hover {
|
|
|
|
svg {
|
|
fill: $color-danger;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
.tool-window-content {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
.element-list {
|
|
margin: 0;
|
|
width: 100%;
|
|
|
|
ul {
|
|
border-left: 9px solid $color-gray-50;
|
|
margin: 0;
|
|
|
|
li {
|
|
border-left: 1px solid $color-gray-40;
|
|
}
|
|
}
|
|
|
|
li {
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
|
|
&.dragging-TODO {
|
|
background-color: #eee;
|
|
}
|
|
|
|
&.open {
|
|
|
|
ul {
|
|
|
|
li {
|
|
|
|
.element-list-body {
|
|
border-style: dashed;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|