0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00
penpot/resources/styles/partials/library-bar.scss
2016-03-01 20:39:50 +02:00

97 lines
2 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;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
width: 250px;
.library-bar-inside {
display: flex;
flex-direction: column;
height: 100%;
padding-top: 60px;
.library-tabs {
align-items: center;
background-color: $color-gray-lighter;
display: flex;
justify-content: space-around;
margin: 0;
padding-top: 12px;
li {
background-color: darken($color-gray-lighter, 10%);
border-top-left-radius: 3px;
border-top-right-radius: 3px;
color: $color-gray;
cursor: pointer;
font-weight: bold;
padding: .6rem;
&:hover {
color: $color-white;
}
&.current {
background-color: $color-white;
color: $main-ui-color;
}
}
}
.library-elements {
display: flex;
flex-direction: column;
height: 85%;
overflow-y: auto;
padding-bottom: 20px;
li {
border-bottom: 1px solid $color-gray-lighter;
cursor: pointer;
display: flex;
flex-direction: column;
flex-shrink: 0;
padding: 10px;
.element-title {
color: $color-gray-dark;
font-weight: bold;
margin-bottom: 5px;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.element-subtitle {
color: $color-gray-light;
font-style: italic;
}
&:hover,
&.current {
background-color: $main-ui-color;
.element-title,
.element-subtitle {
color: $color-white;
}
}
}
}
}
}