0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-31 03:09:19 -05:00
penpot/frontend/resources/styles/main/partials/library-bar.scss
2020-03-25 09:39:27 +01:00

223 lines
4.3 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-2016 Andrey Antukh <niwi@niwi.nz>
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
.library-bar {
background-color: $color-white;
.library-bar-inside {
border-right: 1px solid $color-gray-lighter;
display: flex;
flex-direction: column;
height: 100%;
.library-tabs {
align-items: center;
background-color: $color-white;
border-bottom: 1px solid $color-gray-20;
display: flex;
justify-content: space-around;
margin: 0;
padding-top: 12px;
li {
background-color: $color-white;
border-bottom: 2px solid transparent;
color: $color-gray;
cursor: pointer;
font-size: $fs14;
padding: .6rem;
text-align: center;
width: 118px;
&:hover {
color: $color-gray-60;
}
&.current {
border-color: $color-primary;
color: $color-gray-60;
}
}
}
.library-elements {
display: flex;
flex-direction: column;
height: calc(95% - 1rem);
margin-bottom: $size-4;
overflow-y: auto;
padding-bottom: 20px;
li {
align-items: center;
cursor: pointer;
display: flex;
flex-shrink: 0;
padding: $size-4 $size-2;
svg {
border-radius: 3px;
fill: $color-black;
margin-right: 8px;
height: $size-4;
width: $size-4;
}
span.element-title {
color: $color-gray-60;
font-size: $fs14;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&.recent-projects {
border-top: 1px solid $color-gray-10;
svg {
fill: $color-white;
}
span {
font-size: $fs15;
}
}
& .edit-wrapper {
display: flex;
}
input.element-title {
border: 0;
height: 30px;
padding: 5px;
margin: 0;
width: 100%;
background-color: $color-white;
}
.close {
background-color: $color-white;
cursor: pointer;
padding: 3px 5px;
svg {
fill: $color-gray;
height: 15px;
transform: rotate(45deg) translateY(7px);
width: 15px;
margin: 0;
}
}
.element-subtitle {
color: $color-gray-light;
font-style: italic;
}
&:hover,
&.current {
background-color: $color-primary-lighter;
color: $color-gray-60;
}
}
}
}
&.profile-bar {
background-color: $color-gray-10;
.library-bar-inside {
display: none;
}
}
}
.projects-row {
align-items: center;
display: flex;
padding: $size-2;
span {
color: $color-gray-30;
font-size: $fs14;
}
.add-project {
align-items: center;
background-color: $color-gray-10;
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-60;
height: $size-2;
width: $size-2;
}
&:hover {
background-color: $color-primary;
svg {
fill: $color-gray-60;
}
}
}
}
.dashboard-search {
align-items: center;
border: 1px solid $color-gray-10;
display: flex;
margin: $size-2;
.input-text {
background: $color-white;
border: 0;
color: $color-gray-60;
font-size: $fs14;
padding: 4px 8px;
margin: 0;
max-width: 170px;
width: 100%;
}
&:focus,
&:focus-within {
border-color: $color-black;
}
.clear-search {
align-items: center;
cursor: pointer;
display: flex;
height: 22px;
padding: 0 5px;
width: 22px;
svg {
fill: $color-gray-30;
height: 15px;
transform: rotate(45deg);
width: 15px;
&:hover {
fill: $color-danger;
}
}
}
}