0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-30 19:00:10 -05:00
penpot/frontend/resources/styles/main/partials/library-bar.scss

224 lines
4.3 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>
2015-12-15 22:56:03 +01:00
.library-bar {
2019-12-19 12:50:58 +01:00
background-color: $color-white;
2015-12-15 19:13:50 +01:00
2015-12-15 22:56:03 +01:00
.library-bar-inside {
2020-03-13 13:12:02 +01:00
border-right: 1px solid $color-gray-lighter;
2015-12-15 19:13:50 +01:00
display: flex;
flex-direction: column;
2015-12-15 22:56:03 +01:00
height: 100%;
2015-12-15 19:13:50 +01:00
2015-12-15 22:56:03 +01:00
.library-tabs {
align-items: center;
2020-02-01 11:54:25 +01:00
background-color: $color-white;
2020-03-03 13:14:37 +01:00
border-bottom: 1px solid $color-gray-20;
2015-12-15 22:56:03 +01:00
display: flex;
justify-content: space-around;
margin: 0;
padding-top: 12px;
2015-12-15 19:13:50 +01:00
2015-12-15 22:56:03 +01:00
li {
2020-02-01 11:54:25 +01:00
background-color: $color-white;
border-bottom: 2px solid transparent;
2015-12-15 22:56:03 +01:00
color: $color-gray;
cursor: pointer;
2016-10-31 10:41:28 +01:00
font-size: $fs14;
2015-12-15 22:56:03 +01:00
padding: .6rem;
2016-10-31 10:41:28 +01:00
text-align: center;
width: 118px;
2015-12-15 22:56:03 +01:00
&:hover {
2020-03-03 13:14:37 +01:00
color: $color-gray-60;
2015-12-15 22:56:03 +01:00
}
&.current {
2020-03-03 13:14:37 +01:00
border-color: $color-primary;
color: $color-gray-60;
2015-12-15 22:56:03 +01:00
}
}
2015-12-15 19:13:50 +01:00
}
2015-12-15 22:56:03 +01:00
.library-elements {
2015-12-15 19:13:50 +01:00
display: flex;
flex-direction: column;
height: calc(95% - 1rem);
margin-bottom: $size-4;
2015-12-15 22:56:03 +01:00
overflow-y: auto;
padding-bottom: 20px;
2015-12-15 19:13:50 +01:00
2015-12-15 22:56:03 +01:00
li {
2020-03-09 11:54:35 +01:00
align-items: center;
2015-12-15 22:56:03 +01:00
cursor: pointer;
2015-12-15 19:13:50 +01:00
display: flex;
2016-02-20 22:26:07 +01:00
flex-shrink: 0;
padding: $size-4 $size-2;
2020-03-09 11:54:35 +01:00
svg {
border-radius: 3px;
fill: $color-black;
margin-right: 8px;
height: $size-4;
width: $size-4;
2020-03-09 11:54:35 +01:00
}
2015-12-15 19:13:50 +01:00
span.element-title {
2020-03-03 13:14:37 +01:00
color: $color-gray-60;
2019-12-19 13:23:30 +01:00
font-size: $fs14;
2016-02-20 22:30:33 +01:00
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2015-12-15 19:13:50 +01:00
}
2019-12-19 13:23:30 +01:00
&.recent-projects {
2020-03-03 13:14:37 +01:00
border-top: 1px solid $color-gray-10;
2020-03-09 11:54:35 +01:00
svg {
fill: $color-white;
}
span {
font-size: $fs15;
}
2019-12-19 13:23:30 +01:00
}
2015-12-15 19:13:50 +01:00
& .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;
}
}
2015-12-15 22:56:03 +01:00
.element-subtitle {
color: $color-gray-light;
font-style: italic;
}
&:hover,
2019-12-19 13:23:30 +01:00
&.current {
background-color: $color-primary-lighter;
color: $color-gray-60;
2015-12-15 22:56:03 +01:00
}
2015-12-15 19:13:50 +01:00
}
}
}
&.profile-bar {
background-color: $color-gray-10;
.library-bar-inside {
display: none;
}
}
2015-12-15 19:13:50 +01:00
}
2019-12-20 11:27:24 +01:00
.projects-row {
align-items: center;
display: flex;
padding: $size-2;
2019-12-20 11:27:24 +01:00
span {
color: $color-gray-30;
font-size: $fs14;
}
.add-project {
align-items: center;
2020-03-03 13:14:37 +01:00
background-color: $color-gray-10;
2019-12-20 11:27:24 +01:00
border-radius: $br-small;
border: 1px solid transparent;
cursor: pointer;
display: flex;
justify-content: center;
margin-left: auto;
padding: $x-small;
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
height: $size-2;
width: $size-2;
2019-12-20 11:27:24 +01:00
}
&:hover {
2020-03-03 13:14:37 +01:00
background-color: $color-primary;
2019-12-20 11:27:24 +01:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2019-12-20 11:27:24 +01:00
}
}
}
}
.dashboard-search {
align-items: center;
border: 1px solid $color-gray-10;
display: flex;
margin: $size-2;
2019-12-20 11:27:24 +01:00
.input-text {
background: $color-white;
border: 0;
2020-03-03 13:14:37 +01:00
color: $color-gray-60;
2019-12-20 11:27:24 +01:00
font-size: $fs14;
padding: 4px 8px;
margin: 0;
max-width: 170px;
width: 100%;
}
2020-03-09 11:54:35 +01:00
&:focus,
&:focus-within {
border-color: $color-black;
}
2019-12-20 11:27:24 +01:00
.clear-search {
align-items: center;
cursor: pointer;
display: flex;
2020-03-09 11:54:35 +01:00
height: 22px;
2019-12-20 11:27:24 +01:00
padding: 0 5px;
2020-03-09 11:54:35 +01:00
width: 22px;
2019-12-20 11:27:24 +01:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-30;
2019-12-20 11:27:24 +01:00
height: 15px;
transform: rotate(45deg);
width: 15px;
&:hover {
fill: $color-danger;
}
}
}
2020-03-10 13:26:07 +01:00
}