0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 16:39:49 -05:00
penpot/resources/styles/partials/sidebar-element-options.scss

223 lines
3.1 KiB
SCSS
Raw Normal View History

2015-06-18 19:35:50 +02:00
.element-options {
display: flex;
2016-02-28 10:41:55 +01:00
width: 100%;
> div {
width: 100%;
}
2015-06-18 19:35:50 +02:00
.element-icons {
background-color: $primary-ui-bg;
2016-02-19 19:41:33 +01:00
border: 1px solid $soft-ui-border;
2015-06-18 19:35:50 +02:00
border-radius: $br-small;
display: flex;
2016-02-28 10:41:55 +01:00
margin: $x-small;
2015-06-18 19:35:50 +02:00
li {
align-items: center;
2016-02-19 19:41:33 +01:00
border-right: 1px solid $soft-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 {
2016-02-19 19:41:33 +01:00
fill: $intense-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 {
2016-02-19 19:41:33 +01:00
color: $medium-ui-text;
2016-02-28 10:41:55 +01:00
margin: 0 $x-small;
2015-06-18 19:35:50 +02:00
.element-set-title {
2016-02-19 19:41:33 +01:00
border-bottom: 1px dashed $soft-ui-border;
color: $medium-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;
2016-02-28 10:41:55 +01:00
padding: $small $x-small;
2015-06-18 19:35:50 +02:00
.input-text {
background-color: transparent;
2016-02-19 19:41:33 +01:00
border-color: $soft-ui-border;
color: $intense-ui-text;
2015-06-18 19:35:50 +02:00
font-size: $fs13;
margin: $x-small;
padding: $x-small;
width: 100%;
&:focus {
2016-02-19 19:41:33 +01:00
color: darken($intense-ui-text, 8%);
border-color: $intense-ui-border;
2015-06-18 19:35:50 +02:00
}
}
.input-select {
2016-02-19 19:41:33 +01:00
color: $intense-ui-text;
2015-06-18 19:35:50 +02:00
&:focus {
2016-02-19 19:41:33 +01:00
color: darken($intense-ui-text, 8%);
2015-06-18 19:35:50 +02:00
}
}
span {
2016-02-19 19:41:33 +01:00
color: $medium-ui-text;
2015-06-18 19:35:50 +02:00
font-size: $fs12;
}
.lock-size {
cursor: pointer;
width: 20%;
svg {
2016-02-19 19:41:33 +01:00
fill: $medium-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;
2016-02-19 19:41:33 +01:00
border: 2px solid $medium-ui-icons;
2015-12-15 11:32:06 +02:00
display: flex;
justify-content: center;
2015-12-15 11:32:06 +02:00
svg {
2016-02-19 19:41:33 +01:00
fill: $medium-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;
2016-02-28 10:41:55 +01:00
span {
2015-12-15 11:32:06 +02:00
svg {
2016-02-28 10:41:55 +01:00
fill: $medium-ui-icons;
height: 20px;
margin: $x-small $small;
width: 20px;
}
&:hover,
&.current {
svg {
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-02-24 16:04:19 +01:00
transition: none;
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
}