0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-05 22:09:06 -05:00
penpot/resources/styles/partials/library-bar.scss

98 lines
2 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 {
2015-12-15 19:13:50 +01:00
background-color: $color-white;
bottom: 0;
height: 100%;
2015-12-15 22:56:03 +01:00
left: 0;
2015-12-15 19:13:50 +01:00
position: fixed;
width: 250px;
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%;
padding-top: 60px;
2015-12-15 19:13:50 +01:00
2015-12-15 22:56:03 +01:00
.library-tabs {
align-items: center;
background-color: $color-gray-lighter;
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 {
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;
2016-02-17 08:56:02 +01:00
color: $main-ui-color;
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;
2015-12-15 22:56:03 +01:00
height: 85%;
overflow-y: auto;
padding-bottom: 20px;
2015-12-15 19:13:50 +01:00
2015-12-15 22:56:03 +01:00
li {
border-bottom: 1px solid $color-gray-lighter;
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;
2015-12-15 22:56:03 +01:00
padding: 10px;
2015-12-15 19:13:50 +01:00
2015-12-15 22:56:03 +01:00
.element-title {
color: $color-gray-dark;
2015-12-15 19:13:50 +01:00
font-weight: bold;
2015-12-15 22:56:03 +01:00
margin-bottom: 5px;
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
}
2015-12-15 22:56:03 +01:00
.element-subtitle {
color: $color-gray-light;
font-style: italic;
}
&:hover,
&.current {
2016-02-17 08:56:02 +01:00
background-color: $main-ui-color;
2015-12-15 22:56:03 +01:00
.element-title,
.element-subtitle {
color: $color-white;
}
}
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
}
}