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

206 lines
3.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>
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
bottom: 0;
height: 100%;
2015-12-15 22:56:03 +01:00
left: 0;
2015-12-15 19:13:50 +01:00
position: fixed;
2019-12-19 12:50:58 +01:00
width: 230px;
2015-12-15 19:13:50 +01:00
2015-12-15 22:56:03 +01:00
.library-bar-inside {
2015-12-15 19:13:50 +01:00
display: flex;
flex-direction: column;
2015-12-15 22:56:03 +01:00
height: 100%;
2019-12-19 13:23:30 +01:00
padding-top: 40px;
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;
border-bottom: 1px solid $medium-ui-border;
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-02-01 11:54:25 +01:00
color: $intense-ui-text;
2015-12-15 22:56:03 +01:00
}
&.current {
2020-02-01 11:54:25 +01:00
border-color: $main-ui-color;
color: $intense-ui-text;
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: 1rem;
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 {
cursor: pointer;
2015-12-15 19:13:50 +01:00
display: flex;
2015-12-15 22:56:03 +01:00
flex-direction: column;
2016-02-20 22:26:07 +01:00
flex-shrink: 0;
2019-12-20 11:27:24 +01:00
padding: $small $medium;
2015-12-15 19:13:50 +01:00
span.element-title {
2019-12-19 13:23:30 +01:00
color: $intense-ui-text;
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 {
border-top: 1px solid $dark-ui-bg;
border-bottom: 1px solid $dark-ui-bg;
}
2015-12-15 19:13:50 +01:00
input.element-title {
border: 0;
height: 30px;
padding: 5px;
}
.close {
2019-02-19 15:56:22 +01:00
background: $primary-ui-bg;
cursor: pointer;
padding: 5px 10px;
svg {
fill: $color-gray;
height: 20px;
transform: rotate(45deg) translateY(7px);
width: 20px;
}
}
2015-12-15 22:56:03 +01:00
.element-subtitle {
color: $color-gray-light;
font-style: italic;
}
2019-12-19 13:23:30 +01:00
&:hover {
2016-02-17 08:56:02 +01:00
background-color: $main-ui-color;
2019-12-19 13:23:30 +01:00
color: $intense-ui-text;
}
&.current {
2015-12-15 22:56:03 +01:00
span.element-title,
2015-12-15 22:56:03 +01:00
.element-subtitle {
2019-12-19 13:23:30 +01:00
color: $intense-ui-text;
font-weight: bold;
2015-12-15 22:56:03 +01:00
}
input.element-title {
color: $color-gray-dark;
}
2015-12-15 22:56:03 +01:00
}
2015-12-15 19:13:50 +01:00
}
2015-12-15 22:56:03 +01:00
2015-12-15 19:13:50 +01:00
}
2015-12-15 22:56:03 +01:00
2015-12-15 19:13:50 +01:00
}
}
2019-12-20 11:27:24 +01:00
.projects-row {
align-items: center;
display: flex;
padding: $medium;
span {
color: $color-gray-30;
font-size: $fs14;
}
.add-project {
align-items: center;
background-color: $dark-ui-bg;
border-radius: $br-small;
border: 1px solid transparent;
cursor: pointer;
display: flex;
justify-content: center;
margin-left: auto;
padding: $x-small;
svg {
fill: $soft-ui-icons;
height: 16px;
width: 16px;
}
&:hover {
background-color: $main-ui-color;
svg {
fill: $soft-ui-icons;
}
}
}
}
.dashboard-search {
align-items: center;
border: 1px solid $color-gray-10;
display: flex;
margin: $medium;
.input-text {
background: $color-white;
border: 0;
color: $intense-ui-text;
font-size: $fs14;
padding: 4px 8px;
margin: 0;
max-width: 170px;
width: 100%;
}
.clear-search {
align-items: center;
cursor: pointer;
display: flex;
height: 28px;
padding: 0 5px;
svg {
fill: $medium-ui-icons;
height: 15px;
transform: rotate(45deg);
width: 15px;
&:hover {
fill: $color-danger;
}
}
}
}