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

322 lines
4.8 KiB
SCSS
Raw Normal View History

2015-06-18 19:35:50 +02:00
.settings-bar {
background-color: $color-gray-dark;
bottom: 0;
height: 100%;
position: fixed;
right: 0;
2016-01-07 19:35:18 +01:00
width: 250px;
2015-06-18 19:35:50 +02:00
.settings-bar-inside {
align-items: center;
display: flex;
flex-direction: column;
overflow-y: auto;
2016-01-07 19:35:18 +01:00
padding-bottom: 30px;
2015-06-18 19:35:50 +02:00
padding-top: 50px;
height: 100%;
.tool-window {
display: flex;
flex-direction: column;
flex: 1;
width: 100%;
.tool-window-bar {
align-items: center;
background-color: $color-gray-darker;
display: flex;
flex-shrink: 0;
padding: 2px $x-small;
svg {
fill: $color-gray;
height: 12px;
width: 12px;
}
span {
color: $color-gray-light;
font-weight: bold;
}
.tool-window-icon {
margin-right: $small;
}
.tool-window-close {
cursor: pointer;
margin-left: auto;
transform: rotate(45deg);
&:hover {
svg {
fill: $color-gray-lighter;
}
}
}
}
.tool-window-content {
display: flex;
flex-wrap: wrap;
overflow-y: auto;
padding-bottom: $medium;
.figures-catalog {
width: 100%;
padding: $medium $medium 0 $medium;
select {
width: 100%;
margin-bottom: 0;
}
}
}
}
}
2016-01-07 19:35:18 +01:00
.layers-tools {
background-color: $color-gray-darker;
bottom: 0;
display: flex;
height: 30px;
justify-content: center;
position: absolute;
width: 100%;
.layers-tools-content {
align-items: center;
display: flex;
justify-content: space-between;
margin: 0;
width: 80px;
li {
cursor: pointer;
svg {
fill: $color-gray;
height: 16px;
width: 16px;
&:hover {
fill: $color-white;
}
}
&.delete-layer {
svg {
&:hover {
fill: $color-danger;
}
}
}
}
}
}
2015-06-18 19:35:50 +02:00
}
.tool-btn {
align-items: center;
background-color: $color-gray-light;
cursor: pointer;
display: flex;
flex-shrink: 0;
2016-01-07 19:35:18 +01:00
height: 94px;
2015-06-18 19:35:50 +02:00
justify-content: center;
margin: $medium 0 0 $big;
2016-01-07 19:35:18 +01:00
width: 94px;
2015-06-18 19:35:50 +02:00
svg {
fill: $color-gray-darker;
2016-01-07 19:35:18 +01:00
height: 52px;
width: 52px;
2015-06-18 19:35:50 +02:00
}
&:hover {
background-color: $color-white;
}
&.selected {
background-color: $color-gray-darker;
svg {
fill: $color-primary;
}
}
}
.figure-btn {
align-items: center;
background-color: $color-gray-light;
cursor: pointer;
display: flex;
flex-shrink: 0;
2016-01-07 19:35:18 +01:00
height: 62px;
2015-06-18 19:35:50 +02:00
justify-content: center;
margin: $medium 0 0 $medium;
2016-01-07 19:35:18 +01:00
width: 62px;
2015-06-18 19:35:50 +02:00
svg {
fill: $color-gray-darker;
height: 50px;
width: 50px;
}
&:hover {
background-color: $color-white;
}
&.selected {
background-color: $color-gray-darker;
svg {
fill: $color-primary;
}
}
}
.element-list {
margin: 0;
width: 100%;
li {
box-sizing: border-box;
cursor: pointer;
display: flex;
2016-01-17 11:02:59 +01:00
flex-direction: column;
2015-06-18 19:35:50 +02:00
width: 100%;
2016-01-17 11:02:59 +01:00
.element-list-body {
2016-01-07 19:35:18 +01:00
align-items: center;
2016-01-17 11:02:59 +01:00
border-bottom: 1px solid $color-gray-darker;
box-sizing: border-box;
2016-01-07 19:35:18 +01:00
display: flex;
2016-01-17 11:02:59 +01:00
padding: $small;
width: 100%;
2015-06-18 19:35:50 +02:00
svg {
2016-01-17 11:02:59 +01:00
fill: $color-gray;
height: 13px;
margin-right: 8px;
width: 13px;
2015-06-18 19:35:50 +02:00
}
2016-01-17 11:02:59 +01:00
.element-actions {
align-items: center;
display: flex;
width: 62px;
2016-01-07 19:35:18 +01:00
}
2016-01-17 11:02:59 +01:00
.element-icon,
.sublevel-element {
2016-01-07 19:35:18 +01:00
svg {
2016-01-17 11:02:59 +01:00
fill: $color-gray-darker;
2016-01-07 19:35:18 +01:00
}
}
2016-01-17 11:02:59 +01:00
.toggle-content {
margin-left: auto;
width: 12px;
2016-01-07 19:35:18 +01:00
2016-01-17 11:02:59 +01:00
svg {
fill: $color-gray-darker;
transform: rotate(90deg);
width: 12px;
}
2016-01-07 19:35:18 +01:00
2016-01-17 11:02:59 +01:00
&:hover {
2016-01-07 19:35:18 +01:00
svg {
2016-01-17 11:02:59 +01:00
fill: $color-white;
2016-01-07 19:35:18 +01:00
}
}
}
2016-01-17 11:02:59 +01:00
&.group {
2016-01-07 19:35:18 +01:00
2016-01-17 11:02:59 +01:00
&.open {
2015-06-18 19:35:50 +02:00
2016-01-17 11:02:59 +01:00
.toggle-content {
2015-06-18 19:35:50 +02:00
2016-01-17 11:02:59 +01:00
svg {
transform: rotate(270deg);
}
}
2015-06-18 19:35:50 +02:00
}
}
span {
2016-01-17 11:02:59 +01:00
color: darken($color-gray-darker, 8%);
font-size: $fs13;
2015-06-18 19:35:50 +02:00
}
2016-01-17 11:02:59 +01:00
&.selected {
background-color: lighten($color-gray-darker, 5%);
2015-06-18 19:35:50 +02:00
2016-01-17 11:02:59 +01:00
.element-icon {
2015-06-18 19:35:50 +02:00
2016-01-17 11:02:59 +01:00
svg {
fill: $color-primary;
}
2015-06-18 19:35:50 +02:00
2016-01-17 11:02:59 +01:00
}
span {
color: $color-primary;
}
2015-06-18 19:35:50 +02:00
2016-01-17 11:02:59 +01:00
}
2015-06-18 19:35:50 +02:00
2016-01-17 11:02:59 +01:00
.selected {
2015-06-18 19:35:50 +02:00
svg {
fill: $color-gray-lighter;
}
}
2016-01-17 11:02:59 +01:00
&:hover {
border-color: $color-gray-light;
.element-icon {
svg {
fill: $color-gray-lighter;
}
}
span {
color: $color-gray-lighter;
}
2015-06-18 19:35:50 +02:00
}
}
}
}