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

87 lines
1.6 KiB
SCSS
Raw Normal View History

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;
color: $color-primary;
}
}
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;
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;
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 {
2015-12-15 22:56:03 +01:00
background-color: $color-primary;
.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
}
}