0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-04 21:38:53 -05:00
penpot/resources/public/styles/partials/sidebar-element-options.scss

216 lines
3.1 KiB
SCSS
Raw Normal View History

2015-06-18 19:35:50 +02:00
.element-options {
display: flex;
.element-icons {
background-color: $primary-ui-bg;
border: 1px solid $bright-ui-border;
2015-06-18 19:35:50 +02:00
border-radius: $br-small;
display: flex;
height: 100%;
margin: $x-small 0 $x-small $x-small;
2015-06-18 19:35:50 +02:00
li {
align-items: center;
border-right: 1px solid $bright-ui-border;
2015-06-18 19:35:50 +02:00
border-radius: $br-small;
cursor: pointer;
display: flex;
flex: 1;
justify-content: center;
2015-06-18 19:35:50 +02:00
padding: $small;
svg {
fill: $dark-ui-icons;
2015-06-18 19:35:50 +02:00
height: 15px;
width: 15px;
}
&:hover {
svg {
2016-02-17 08:56:02 +01:00
fill: $main-ui-color;
2015-06-18 19:35:50 +02:00
}
}
&.selected {
background-color: $main-ui-color;
2015-06-18 19:35:50 +02:00
svg {
fill: $color-white;
2015-06-18 19:35:50 +02:00
}
}
&:last-child {
border: none;
}
}
}
.element-set {
color: $light-ui-text;
2015-06-18 19:35:50 +02:00
margin-left: $x-small;
.element-set-title {
box-sizing: border-box;
border-bottom: 1px dashed $bright-ui-border;
color: $light-ui-text;
2015-06-18 19:35:50 +02:00
font-weight: bold;
padding: 2px $x-small;
width: 100%;
}
}
}
.element-set-content {
display: flex;
flex-direction: column;
padding: $small;
.input-text {
background-color: transparent;
border-color: $bright-ui-border;
2015-06-18 19:35:50 +02:00
box-sizing: border-box;
color: $dark-ui-text;
2015-06-18 19:35:50 +02:00
font-size: $fs13;
margin: $x-small;
padding: $x-small;
width: 100%;
&:focus {
color: darken($dark-ui-text, 8%);
border-color: $dark-ui-border;
2015-06-18 19:35:50 +02:00
}
}
.input-select {
color: $dark-ui-text;
2015-06-18 19:35:50 +02:00
&:focus {
color: darken($dark-ui-text, 8%);
2015-06-18 19:35:50 +02:00
}
}
span {
color: $light-ui-text;
2015-06-18 19:35:50 +02:00
font-size: $fs12;
}
.lock-size {
cursor: pointer;
width: 20%;
svg {
fill: $light-ui-text;
2015-06-18 19:35:50 +02:00
height: 15px;
width: 15px;
&:hover {
2016-02-17 08:56:02 +01:00
fill: $main-ui-color;
2015-06-18 19:35:50 +02:00
}
}
&.selected {
svg {
fill: $color-white;
}
2015-12-15 11:32:06 +02:00
}
}
}
.color-th {
background-color: $color-gray-lighter;
2015-12-15 11:32:06 +02:00
border-radius: 50%;
cursor: pointer;
flex-shrink: 0;
height: 25px;
margin: 5px 4px 0 4px;
width: 25px;
2015-12-15 11:32:06 +02:00
&.palette-th {
align-items: center;
border: 2px solid $light-ui-icons;
2015-12-15 11:32:06 +02:00
display: flex;
justify-content: center;
2015-12-15 11:32:06 +02:00
svg {
fill: $light-ui-icons;
2015-12-15 11:32:06 +02:00
height: 18px;
width: 18px;
}
2015-12-15 11:32:06 +02:00
&:hover {
2016-02-17 08:56:02 +01:00
border-color: $main-ui-color;
2015-12-15 11:32:06 +02:00
svg {
2016-02-17 08:56:02 +01:00
fill: $main-ui-color;
2015-12-15 11:32:06 +02:00
}
2015-12-15 11:32:06 +02:00
}
2015-12-15 11:32:06 +02:00
}
}
2015-12-15 11:32:06 +02:00
.align-icons {
cursor: pointer;
2015-12-15 11:32:06 +02:00
svg {
fill: $light-ui-icons;
2015-12-15 11:32:06 +02:00
height: 20px;
margin: 5px 7px 0 7px;
width: 20px;
}
2015-12-15 11:32:06 +02:00
&:hover,
&.current {
2015-12-15 11:32:06 +02:00
svg {
2016-02-17 08:56:02 +01:00
fill: $main-ui-color;
2015-06-18 19:35:50 +02:00
}
2015-06-18 19:35:50 +02:00
}
2015-06-18 19:35:50 +02:00
}
2016-01-12 15:04:51 +01:00
.element-color-picker {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
2016-01-12 15:04:51 +01:00
margin: 0 4px;
2016-01-20 18:43:31 +02:00
2016-01-12 15:04:51 +01:00
.color-picker-body {
height: 100%;
margin-right: 15px;
}
2016-01-12 15:04:51 +01:00
.color-picker-bar {
2016-02-03 16:24:32 +01:00
height: 165px;
position: relative;
2016-01-12 15:04:51 +01:00
width: 15px;
2016-01-20 18:43:31 +02:00
2016-01-12 15:04:51 +01:00
.color-bar-select {
background-color: $color-white;
height: 3px;
2016-01-29 00:35:45 +02:00
left: -4px;
2016-01-12 15:04:51 +01:00
position: absolute;
2016-01-29 00:35:45 +02:00
width: 23px;
2016-01-12 15:04:51 +01:00
top: 30%;
}
2016-01-12 15:04:51 +01:00
}
2016-01-12 15:04:51 +01:00
}