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/sidebar-element-options.scss
2019-02-19 21:05:20 +01:00

375 lines
5.7 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>
.element-options {
display: flex;
width: 100%;
> div {
width: 100%;
}
.element-icons {
background-color: $primary-ui-bg;
border: 1px solid $soft-ui-border;
border-radius: $br-small;
display: flex;
margin: $x-small;
li {
align-items: center;
border-right: 1px solid $soft-ui-border;
border-radius: $br-small;
cursor: pointer;
display: flex;
flex: 1;
justify-content: center;
padding: $small;
svg {
fill: $intense-ui-icons;
height: 15px;
width: 15px;
}
&:hover {
svg {
fill: $main-ui-color;
}
}
&.selected {
background-color: $main-ui-color;
svg {
fill: $color-white;
}
}
&:last-child {
border: none;
}
}
}
.element-set {
color: $medium-ui-text;
margin: 0 $x-small;
.element-set-title {
border-bottom: 1px dashed $soft-ui-border;
color: $medium-ui-text;
font-weight: bold;
padding: 2px $x-small;
width: 100%;
}
}
.element-list {
margin-bottom: $small;
li {
align-items: center;
border-bottom: 1px solid $soft-ui-border;
display: flex;
flex-direction: row;
padding: $small;
width: 100%;
.list-icon {
svg {
fill: $medium-ui-icons;
height: 15px;
margin-right: $x-small;
width: 15px;
}
}
span {
color: $medium-ui-text;
font-size: $fs14;
max-width: 75%;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.list-actions {
align-items: center;
cursor: pointer;
display: none;
margin-left: auto;
a {
svg {
fill: $soft-ui-icons;
height: 15px;
margin-left: $x-small;
width: 15px;
&:hover {
fill: $intense-ui-icons;
}
}
}
}
&:hover {
.list-icon {
svg {
fill: $main-ui-color;
}
}
span {
color: $main-ui-color;
}
}
&.selected {
.list-icon {
svg {
fill: $main-ui-color;
}
}
span {
color: $main-ui-color;
font-weight: bold;
}
}
}
&:hover {
.list-actions {
display: flex;
@include animation(0s,.3s,fadeIn);
}
}
}
}
.element-set-content {
display: flex;
flex-direction: column;
padding: $small $x-small;
.input-text {
background-color: transparent;
border-color: $soft-ui-border;
color: $intense-ui-text;
font-size: $fs13;
margin: $x-small;
padding: $x-small;
width: 100%;
&:focus {
color: darken($intense-ui-text, 8%);
border-color: $intense-ui-border;
}
}
.input-select {
color: $intense-ui-text;
&:focus {
color: darken($intense-ui-text, 8%);
}
option {
color: $intense-ui-text;
background: $secondary-ui-bg;
font-size: $fs12;
}
}
span {
color: $medium-ui-text;
font-size: $fs12;
}
.lock-size {
cursor: pointer;
width: 20%;
svg {
fill: $medium-ui-text;
height: 15px;
width: 15px;
&:hover {
fill: $main-ui-color;
}
}
&.selected {
svg {
fill: $main-ui-color;
}
}
}
.save-btn {
width: 100%;
}
.cancel-btn {
color: $color-danger;
text-align: center;
width: 100%;
}
.editable-select {
position: relative;
width: 100%;
height: 38px;
.input-text {
position: absolute;
top: 0;
left: 0;
width: 80%;
}
.input-select {
position: absolute;
top: 0;
left: 0;
border: none;
color: transparent;
background-color: transparent;
width: 100%;
option {
color: $intense-ui-text;
background: $secondary-ui-bg;
font-size: $fs12;
}
}
}
}
.color-th {
background-color: $color-gray-lighter;
border: 1px solid $intense-ui-border;
border-radius: 50%;
cursor: pointer;
flex-shrink: 0;
height: 25px;
margin: 5px 4px 0 4px;
width: 25px;
&.palette-th {
align-items: center;
border: 1px solid $medium-ui-icons;
display: flex;
justify-content: center;
svg {
fill: $medium-ui-icons;
height: 16px;
width: 16px;
}
&:hover {
border-color: $main-ui-color;
svg {
fill: $main-ui-color;
}
}
}
}
.align-icons {
cursor: pointer;
span {
svg {
fill: $medium-ui-icons;
height: 20px;
margin: $x-small $small;
width: 20px;
}
&:hover,
&.current {
svg {
fill: $main-ui-color;
}
}
}
}
.element-color-picker {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
margin: 0 4px;
.color-picker-body {
height: 100%;
margin-right: 15px;
}
.color-picker-bar {
height: 165px;
position: relative;
width: 15px;
.color-bar-select {
background-color: $color-white;
height: 3px;
left: -4px;
position: absolute;
width: 23px;
transition: none;
top: 30%;
}
}
}