0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -05:00
penpot/frontend/resources/styles/main/partials/sidebar-element-options.scss

2522 lines
44 KiB
SCSS
Raw Normal View History

2016-03-01 20:39:13 +02:00
// 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/.
//
2022-09-20 23:23:22 +02:00
// Copyright (c) KALEIDOS INC
2016-03-01 20:39:13 +02:00
2015-06-18 19:35:50 +02:00
.element-options {
display: flex;
2020-04-27 14:31:57 +02:00
flex-direction: column;
2016-02-28 10:41:55 +01:00
width: 100%;
2021-11-24 16:00:05 +01:00
height: 100%;
2016-02-28 10:41:55 +01:00
2015-06-18 19:35:50 +02:00
.element-icons {
2020-03-03 13:14:37 +01:00
background-color: $color-gray-60;
border: 1px solid $color-gray-60;
border-radius: $br3;
2015-06-18 19:35:50 +02:00
display: flex;
2021-10-05 10:16:44 +02:00
margin: $size-1;
2015-06-18 19:35:50 +02:00
li {
align-items: center;
2020-03-03 13:14:37 +01:00
border-right: 1px solid $color-gray-60;
border-radius: $br3;
2015-06-18 19:35:50 +02:00
cursor: pointer;
display: flex;
flex: 1;
justify-content: center;
2021-10-05 10:16:44 +02:00
padding: $size-2;
2015-06-18 19:35:50 +02:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-20;
2015-06-18 19:35:50 +02:00
height: 15px;
width: 15px;
}
&:hover {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-primary;
2015-06-18 19:35:50 +02:00
}
}
&.selected {
2020-03-03 13:14:37 +01:00
background-color: $color-primary;
2015-06-18 19:35:50 +02:00
svg {
fill: $color-white;
2015-06-18 19:35:50 +02:00
}
}
&:last-child {
border: none;
}
}
}
2022-11-29 14:03:08 +01:00
&.inspect {
& > :first-child {
margin-top: 7px;
}
}
2015-06-18 19:35:50 +02:00
.element-set {
2020-03-03 13:14:37 +01:00
border-bottom: 1px solid $color-gray-60;
color: $color-gray-20;
2021-10-05 10:16:44 +02:00
padding: $size-2 $size-1;
2015-06-18 19:35:50 +02:00
.element-set-title {
2022-10-03 09:50:25 +02:00
height: 35px;
2020-10-20 11:31:24 +02:00
color: $color-gray-20;
2020-04-09 09:43:04 +02:00
display: flex;
2021-10-05 12:59:00 +02:00
font-size: $fs14;
2021-10-05 10:16:44 +02:00
padding: $size-1;
2015-06-18 19:35:50 +02:00
width: 100%;
align-items: center;
2015-06-18 19:35:50 +02:00
}
}
2016-05-25 17:41:10 +02:00
.element-list {
2021-10-05 10:16:44 +02:00
margin-bottom: $size-2;
2016-05-25 17:41:10 +02:00
li {
align-items: center;
2020-03-03 13:14:37 +01:00
border-bottom: 1px solid $color-gray-60;
2016-05-25 17:41:10 +02:00
display: flex;
flex-direction: row;
2021-10-05 10:16:44 +02:00
padding: $size-2;
2016-05-25 17:41:10 +02:00
width: 100%;
.list-icon {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-30;
2016-05-25 17:41:10 +02:00
height: 15px;
2021-10-05 10:16:44 +02:00
margin-right: $size-1;
2016-05-25 17:41:10 +02:00
width: 15px;
}
}
span {
2020-03-03 13:14:37 +01:00
color: $color-gray-20;
2020-04-25 18:26:17 +02:00
font-size: $fs12;
2016-05-25 17:41:10 +02:00
max-width: 75%;
2022-07-15 10:57:53 +02:00
overflow: hidden;
2016-05-25 17:41:10 +02:00
text-overflow: ellipsis;
white-space: nowrap;
}
.list-actions {
align-items: center;
cursor: pointer;
display: none;
margin-left: auto;
a {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-60;
2016-05-25 17:41:10 +02:00
height: 15px;
2021-10-05 10:16:44 +02:00
margin-left: $size-1;
2016-05-25 17:41:10 +02:00
width: 15px;
&:hover {
2020-03-03 13:14:37 +01:00
fill: $color-gray-20;
2016-05-25 17:41:10 +02:00
}
}
}
}
&:hover {
.list-icon {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-primary;
2016-05-25 17:41:10 +02:00
}
}
span {
2020-03-03 13:14:37 +01:00
color: $color-primary;
2016-05-25 17:41:10 +02:00
}
}
&.selected {
.list-icon {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-primary;
2016-05-25 17:41:10 +02:00
}
}
span {
2020-03-03 13:14:37 +01:00
color: $color-primary;
font-weight: $fw700;
2016-05-25 17:41:10 +02:00
}
}
}
&:hover {
.list-actions {
display: flex;
@include animation(0s, 0.3s, fadeIn);
2016-05-25 17:41:10 +02:00
}
}
}
2015-06-18 19:35:50 +02:00
}
.element-set-content {
display: flex;
flex-direction: column;
2021-10-05 10:16:44 +02:00
padding: $size-1;
2021-09-24 10:07:10 +02:00
width: 100%;
2015-06-18 19:35:50 +02:00
.input-text {
2020-03-03 13:14:37 +01:00
background-color: $color-gray-50;
border: 1px solid transparent;
border-bottom-color: $color-gray-40;
2020-10-20 11:31:24 +02:00
color: $color-white;
2020-04-25 18:26:17 +02:00
font-size: $fs12;
2021-10-05 10:16:44 +02:00
margin: $size-1;
2020-11-13 14:34:24 +01:00
min-width: 0;
2021-10-05 10:16:44 +02:00
padding: $size-1;
2015-06-18 19:35:50 +02:00
width: 100%;
&:focus {
2020-03-03 13:14:37 +01:00
color: lighten($color-gray-10, 8%);
2020-04-28 22:13:18 +02:00
border-color: $color-primary !important;
}
&:hover {
border-color: $color-gray-40;
2015-06-18 19:35:50 +02:00
}
&.error {
border-color: $color-danger;
}
2022-10-27 16:34:26 +02:00
&[disabled] {
color: $color-gray-30;
}
2015-06-18 19:35:50 +02:00
}
.input-select {
/* This padding is so the text won't overlap the arrow*/
padding-right: 1rem;
overflow: hidden;
text-overflow: ellipsis;
2020-03-03 13:14:37 +01:00
color: $color-gray-10;
2015-06-18 19:35:50 +02:00
&:focus {
2020-03-03 13:14:37 +01:00
color: lighten($color-gray-10, 8%);
2023-01-05 16:35:12 +01:00
border-color: $color-primary;
2015-06-18 19:35:50 +02:00
}
option {
2020-03-03 13:14:37 +01:00
color: $color-gray-60;
2019-12-19 18:06:21 +01:00
background: $color-white;
font-size: $fs12;
2021-09-24 10:07:10 +02:00
&:disabled {
color: $color-gray-20;
}
}
2015-06-18 19:35:50 +02:00
}
.input-checkbox {
label {
color: $color-gray-20;
}
label::before {
background-color: transparent;
width: 16px;
height: 16px;
}
label::after {
width: 16px;
height: 16px;
}
input:checked + label::before {
border-width: 1px;
}
input:checked + label::after {
font-size: $fs13;
}
}
.element-set-subtitle {
2020-10-20 11:31:24 +02:00
color: $color-gray-20;
2021-10-05 12:59:00 +02:00
font-size: $fs12;
2020-11-18 15:41:05 +01:00
width: 64px;
2021-09-06 15:53:44 +02:00
&.wide {
2021-09-24 10:07:10 +02:00
min-width: 75px;
2021-09-06 15:53:44 +02:00
}
2015-06-18 19:35:50 +02:00
}
.lock-size {
cursor: pointer;
2020-11-18 15:41:05 +01:00
margin: auto;
2015-06-18 19:35:50 +02:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-20;
2020-11-18 15:41:05 +01:00
height: 14px;
width: 14px;
2015-06-18 19:35:50 +02:00
&:hover {
2020-03-03 13:14:37 +01:00
fill: $color-primary;
2015-06-18 19:35:50 +02:00
}
}
&.selected {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-primary;
2015-06-18 19:35:50 +02:00
}
2015-12-15 11:32:06 +02:00
}
&.disabled {
cursor: unset;
svg {
fill: $color-gray-40;
}
}
2015-12-15 11:32:06 +02:00
}
2016-05-25 17:41:10 +02:00
.save-btn {
width: 100%;
}
.cancel-btn {
color: $color-danger;
text-align: center;
width: 100%;
}
.custom-select {
border: 1px solid $color-gray-40;
border-radius: $br3;
2020-10-20 11:48:17 +02:00
cursor: pointer;
2021-10-05 10:16:44 +02:00
padding: $size-1 $size-5 $size-1 $size-1;
position: relative;
.dropdown-button {
position: absolute;
2021-10-05 10:16:44 +02:00
right: $size-1;
2020-06-19 14:15:58 +02:00
top: 7px;
svg {
fill: $color-gray-40;
height: 10px;
width: 10px;
}
}
span {
2020-06-19 14:15:58 +02:00
font-size: $fs12;
}
2020-07-30 12:40:04 +02:00
&:hover {
border: 1px solid $color-gray-20;
}
2023-07-25 12:35:24 +02:00
&.no-check {
.custom-select-dropdown {
width: 100%;
min-width: unset;
.check-icon {
display: none;
}
li.checked-element {
padding-left: 0.5rem;
&.is-selected {
background-color: $color-primary;
}
}
}
}
2020-05-19 10:52:11 +02:00
}
2023-01-05 16:35:12 +01:00
.opened {
border: 1px solid $color-primary;
&:hover,
&:focus {
outline: none;
border: 1px solid $color-primary;
}
}
2020-05-19 15:22:39 +02:00
.custom-select-dropdown {
2020-10-20 11:48:17 +02:00
background-color: $color-white;
border-radius: $br3;
2020-10-20 11:48:17 +02:00
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
2020-05-19 15:22:39 +02:00
left: 0;
max-height: 30rem;
min-width: 7rem;
2020-10-20 11:48:17 +02:00
position: absolute;
2020-05-19 15:22:39 +02:00
overflow-y: auto;
2020-10-20 11:48:17 +02:00
top: 30px;
z-index: 12;
2020-05-19 15:22:39 +02:00
.presets {
width: 200px;
}
2020-05-19 10:52:11 +02:00
2020-05-19 15:22:39 +02:00
hr {
margin: 0;
border-color: $color-gray-20;
}
2020-05-19 15:22:39 +02:00
li {
color: $color-gray-60;
cursor: pointer;
font-size: $fs14;
display: flex;
gap: 0 10px;
justify-content: flex-start;
2021-10-05 10:16:44 +02:00
padding: $size-2;
2020-05-19 15:22:39 +02:00
span {
color: $color-gray-20;
2023-01-17 11:48:18 +01:00
display: flex;
justify-content: flex-start;
2023-01-17 11:48:18 +01:00
align-items: center;
}
.check-icon {
min-width: 25px;
color: $color-gray-20;
justify-content: center;
2020-05-19 15:22:39 +02:00
}
2020-04-27 14:31:57 +02:00
2020-05-19 15:22:39 +02:00
&.dropdown-separator:not(:last-child) {
border-bottom: 1px solid $color-gray-10;
}
2020-05-19 15:22:39 +02:00
&.dropdown-label:not(:first-child) {
border-top: 1px solid $color-gray-10;
}
2020-05-19 15:22:39 +02:00
&.dropdown-label span {
margin-left: 0;
}
&:hover {
background-color: $color-primary-lighter;
}
}
2020-05-19 15:22:39 +02:00
}
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
& li.checked-element {
padding-left: 0;
2020-05-19 10:52:11 +02:00
2020-05-19 15:22:39 +02:00
& span {
color: $color-black;
}
2020-05-19 10:52:11 +02:00
2020-05-19 15:22:39 +02:00
& svg {
visibility: hidden;
width: 8px;
height: 8px;
background: none;
margin: 0.25rem;
fill: $color-black;
}
2020-05-19 10:52:11 +02:00
2020-05-19 15:22:39 +02:00
&.is-selected {
& svg {
visibility: visible;
}
}
}
2020-05-14 14:08:17 +02:00
2020-05-19 10:52:11 +02:00
.editable-select {
2020-07-30 12:40:04 +02:00
border: 1px solid transparent;
2020-05-19 15:22:39 +02:00
position: relative;
height: 38px;
// margin-left: $size-2;
2020-07-30 12:40:04 +02:00
max-height: 30px;
2020-05-19 15:22:39 +02:00
position: relative;
width: 60%;
svg {
fill: $color-gray-10;
2020-05-19 15:22:39 +02:00
height: 10px;
width: 10px;
}
.input-text {
left: 0;
position: absolute;
top: -1px;
2020-05-19 10:52:11 +02:00
width: 60%;
2020-05-19 15:22:39 +02:00
}
2020-05-14 14:08:17 +02:00
input.input-text {
border: none;
background: none;
}
2020-05-19 15:22:39 +02:00
.input-select {
background-color: transparent;
border: none;
border-bottom: 1px solid $color-gray-40;
color: transparent;
left: 0;
position: absolute;
top: 0;
width: 100%;
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
option {
color: $color-gray-60;
background: $color-white;
font-size: $fs12;
2021-09-24 10:07:10 +02:00
&:disabled {
color: $color-gray-20;
}
2020-05-19 10:52:11 +02:00
}
2020-05-19 15:22:39 +02:00
}
2020-05-19 15:22:39 +02:00
.dropdown-button {
position: absolute;
right: 0;
padding-right: 4px;
height: 100%;
display: flex;
align-items: center;
2020-05-19 15:22:39 +02:00
}
2020-05-19 15:22:39 +02:00
&.input-option {
height: 26px;
border-bottom: 1px solid #64666a;
2020-05-19 15:22:39 +02:00
width: 100%;
margin-left: 0.25rem;
2020-05-19 15:22:39 +02:00
.input-text {
border: none;
margin: 0;
width: calc(100% - 12px);
height: 100%;
top: auto;
2021-01-26 12:12:31 +01:00
color: $color-white;
}
2020-05-19 15:22:39 +02:00
}
2020-07-30 12:40:04 +02:00
.custom-select-dropdown {
top: unset;
margin-bottom: 0;
}
2020-07-30 12:40:04 +02:00
&:hover {
border: 1px solid $color-gray-40;
}
}
2015-12-15 11:32:06 +02:00
}
.element-set-content .border-data {
&[draggable="true"] {
cursor: pointer;
}
}
.element-set-content .grid-option-main {
.editable-select {
height: 2rem;
}
.editable-select svg {
fill: $color-gray-40;
}
2020-05-19 15:22:39 +02:00
.editable-select.input-option .input-text {
padding: 0;
padding-top: 0.18rem;
padding-left: 0.25rem;
2020-05-19 15:22:39 +02:00
}
2020-05-19 15:22:39 +02:00
.input-element {
width: 55px;
margin: 0 0.2rem;
}
2020-05-19 15:22:39 +02:00
.input-text {
padding-left: 0;
2021-01-26 12:12:31 +01:00
color: $color-white;
2020-06-04 15:25:15 +02:00
background-color: transparent;
2020-07-30 12:40:04 +02:00
height: 30px;
2020-05-19 15:22:39 +02:00
}
2020-05-19 10:52:11 +02:00
}
.element-set-content .component-row {
display: flex;
align-items: center;
font-size: $fs12;
color: $color-gray-10;
svg {
fill: $color-gray-20;
height: 16px;
width: 16px;
2021-10-05 10:16:44 +02:00
margin-right: $size-2;
}
.row-actions {
margin-left: auto;
cursor: pointer;
svg {
fill: $color-gray-20;
2020-12-10 09:56:00 +01:00
height: 12px;
2021-10-05 10:16:44 +02:00
margin-right: $size-1;
2020-12-10 09:56:00 +01:00
width: 12px;
}
.context-menu-items {
right: 0.5rem;
left: unset;
top: 0;
.context-menu-action {
overflow-wrap: break-word;
min-width: 223px;
white-space: break-spaces;
}
}
}
}
2020-06-04 13:14:00 +02:00
.grid-option .custom-select {
margin-bottom: 0;
}
2020-05-19 15:22:39 +02:00
.presets {
2023-01-05 16:35:12 +01:00
&:focus,
&:focus-within {
outline: none;
border: 1px solid $color-primary;
}
2020-05-19 15:22:39 +02:00
.custom-select-dropdown {
2021-03-02 17:33:34 +01:00
width: 237px;
li {
font-size: $fs12;
span {
2021-10-05 12:59:00 +02:00
font-size: $fs12;
2021-03-02 17:33:34 +01:00
}
}
2020-05-19 15:22:39 +02:00
}
}
2015-12-15 11:32:06 +02:00
.row-flex.align-icons {
margin-left: 0;
}
2015-12-15 11:32:06 +02:00
.align-icons {
cursor: pointer;
display: flex;
flex: 1;
2020-11-18 15:25:03 +01:00
justify-content: flex-end;
2021-10-05 10:16:44 +02:00
margin: $size-2 0 $size-2 $size-2;
padding: 0 $size-1;
&:first-child {
justify-content: flex-start;
margin-left: 0;
}
2016-02-28 10:41:55 +01:00
span {
align-items: center;
display: flex;
2020-05-11 09:48:07 +02:00
height: 20px;
justify-content: center;
2021-10-05 10:16:44 +02:00
margin-right: $size-2;
position: relative;
2020-05-11 09:48:07 +02:00
width: 20px;
2015-12-15 11:32:06 +02:00
svg {
2020-03-03 13:14:37 +01:00
fill: $color-gray-30;
2020-11-18 15:25:03 +01:00
height: 14px;
width: 14px;
2016-02-28 10:41:55 +01:00
}
&:hover,
&.current {
svg {
2020-03-03 13:14:37 +01:00
fill: $color-primary;
2016-02-28 10:41:55 +01:00
}
2015-06-18 19:35:50 +02:00
}
&:last-child {
margin-right: 0;
}
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 {
2020-03-03 13:14:37 +01:00
background-color: $color-gray-50;
2016-01-12 15:04:51 +01:00
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%;
}
}
}
.radius-options,
.padding-options,
.margin-options {
align-items: center;
border: 1px solid $color-gray-60;
border-radius: $br4;
display: flex;
justify-content: space-between;
padding: 8px;
width: 64px;
.radius-icon,
.padding-icon,
.margin-icon {
display: flex;
align-items: center;
svg {
cursor: pointer;
height: 16px;
fill: $color-gray-30;
width: 16px;
}
&:hover,
&.selected {
svg {
fill: $color-primary;
}
}
}
}
.orientation-icon {
2021-10-05 10:16:44 +02:00
margin-left: $size-2;
display: flex;
align-items: center;
svg {
cursor: pointer;
height: 20px;
fill: $color-gray-40;
width: 20px;
}
&:hover {
svg {
fill: $color-gray-10;
}
}
}
2020-04-27 14:31:57 +02:00
.navigate-icon {
background-color: $color-gray-60;
cursor: pointer;
2021-10-05 10:16:44 +02:00
margin-left: $size-2;
2020-04-27 14:31:57 +02:00
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
svg {
height: 16px;
fill: $color-gray-30;
width: 16px;
}
&:hover {
svg {
stroke: $color-gray-10;
}
}
}
.input-icon {
align-items: center;
display: flex;
width: 100%;
&:first-child {
2021-10-05 10:16:44 +02:00
margin-right: $size-2;
}
.icon-before {
align-items: center;
display: flex;
height: 18px;
position: relative;
2020-11-18 15:25:03 +01:00
width: 14px;
2020-05-19 15:22:39 +02:00
svg {
fill: $color-gray-30;
2020-11-18 15:25:03 +01:00
height: 14px;
width: 14px;
}
}
}
2020-05-14 14:08:17 +02:00
.custom-button {
2020-05-19 15:22:39 +02:00
cursor: pointer;
background: none;
border: none;
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
& svg {
2020-06-19 14:15:58 +02:00
width: 12px;
height: 12px;
2020-05-19 15:22:39 +02:00
fill: $color-gray-20;
}
2020-05-15 15:00:40 +02:00
&:hover svg,
&.is-active svg {
2020-05-19 15:22:39 +02:00
fill: $color-primary;
}
2020-05-14 14:08:17 +02:00
}
.element-set-content .input-row {
2020-05-19 15:22:39 +02:00
& .element-set-subtitle {
width: 5.5rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2020-05-19 15:22:39 +02:00
}
2020-05-14 14:08:17 +02:00
}
.grid-option,
.shadow-option {
2020-05-19 15:22:39 +02:00
margin-bottom: 0.5rem;
.advanced-options {
.row-flex {
justify-content: flex-end;
}
.custom-button {
left: 0;
position: absolute;
top: 12px;
}
.element-set-actions-button {
min-width: auto;
min-height: auto;
padding-right: 10px;
svg {
width: 12px;
height: 12px;
}
}
}
2020-05-14 14:08:17 +02:00
}
2020-05-18 15:30:40 +02:00
.element-set-content .custom-select.input-option {
2020-05-19 15:22:39 +02:00
border-top: none;
border-left: none;
border-right: none;
margin-left: 0.25rem;
2020-05-18 15:30:40 +02:00
}
.element-set-content .grid-option-main,
.element-set-content .shadow-option-main {
2020-07-30 12:40:04 +02:00
align-items: center;
2020-05-19 15:22:39 +02:00
display: flex;
2020-07-30 12:40:04 +02:00
padding: 0.3rem 0;
2020-05-19 15:22:39 +02:00
border: 1px solid $color-black;
border-radius: $br4;
2020-07-30 12:40:04 +02:00
height: 48px;
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
&:hover {
2020-07-30 12:40:04 +02:00
background: $color-gray-60;
.custom-select,
.editable-select,
input {
background-color: $color-gray-50;
}
2020-05-19 15:22:39 +02:00
}
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
& .custom-select {
min-width: 4.75rem;
height: 2rem;
2020-07-30 12:40:04 +02:00
border-color: transparent;
border-bottom: 1px solid #65666a;
2020-07-30 12:40:04 +02:00
max-height: 30px;
&:hover {
border: 1px solid $color-gray-40;
}
2020-05-19 15:22:39 +02:00
}
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
& .input-element {
width: 50px;
overflow: hidden;
}
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
& .custom-select-dropdown {
width: 96px;
}
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
& .input-option {
margin-left: 0.5rem;
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
& .custom-select-dropdown {
width: 5rem;
min-width: 5rem;
2020-05-19 15:22:39 +02:00
max-height: 10rem;
2020-05-14 14:08:17 +02:00
}
2020-05-19 15:22:39 +02:00
}
2020-05-14 14:08:17 +02:00
}
.grid-option-main-actions,
.shadow-option-main-actions {
2020-05-19 15:22:39 +02:00
display: flex;
visibility: hidden;
2020-05-14 14:08:17 +02:00
.grid-option:hover &,
.shadow-option:hover & {
2020-05-19 15:22:39 +02:00
visibility: visible;
}
2020-05-14 14:08:17 +02:00
}
.focus-overlay {
2020-05-19 15:22:39 +02:00
background: $color-black;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: calc(100%);
2020-05-19 15:22:39 +02:00
opacity: 0.4;
z-index: 10;
display: flex;
2020-05-14 14:08:17 +02:00
}
.advanced-options-wrapper {
width: 100%;
}
.advanced-options {
2021-06-03 18:35:01 +02:00
border: 1px solid $color-gray-60;
background-color: $color-gray-50;
border-radius: $br4;
padding: 8px;
2020-05-19 15:22:39 +02:00
position: relative;
top: 2px;
width: 100%;
2020-05-14 14:08:17 +02:00
}
.btn-options {
2020-05-19 15:22:39 +02:00
cursor: pointer;
border: 1px solid $color-black;
background: $color-gray-60;
border-radius: $br2;
2020-05-19 15:22:39 +02:00
color: $color-gray-20;
font-size: $fs11;
line-height: $lh-145; // Original value was 16px; 16px/11px = 145.454545455% => $lh-145
2020-05-19 15:22:39 +02:00
flex-grow: 1;
padding: 0.25rem 0;
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
&:first-child {
margin-right: 0.5rem;
}
2020-05-14 14:08:17 +02:00
2020-05-19 15:22:39 +02:00
&:not([disabled]):hover {
background: $color-primary;
color: $color-black;
}
2020-05-18 15:30:40 +02:00
2020-05-19 15:22:39 +02:00
&[disabled] {
opacity: 0.4;
cursor: auto;
}
2020-05-14 14:08:17 +02:00
}
2020-07-02 14:48:17 +02:00
.element-set-options-group {
display: flex;
2022-03-22 09:50:18 +01:00
justify-content: space-between;
2020-07-02 14:48:17 +02:00
padding: 3px;
border: 1px solid $color-black;
border-radius: $br4;
2020-07-02 14:48:17 +02:00
&:hover {
background: #1f1f1f;
2020-07-02 14:48:17 +02:00
}
&.selected {
border: 1px solid $color-primary;
}
&:not(:first-child) {
margin-top: 7px;
}
&.open {
&:hover {
background: unset;
}
}
}
.interactions-options {
&.element-set {
border-bottom: 0;
}
.element-set-options-group {
flex-wrap: wrap;
}
2021-09-30 16:24:52 +02:00
&:not(:first-child) {
border-top: 1px solid $color-gray-60;
}
2020-07-02 14:48:17 +02:00
}
.exports-options,
.shadow-options {
2020-07-02 14:48:17 +02:00
.element-set-options-group {
.delete-icon {
display: flex;
min-width: 40px;
min-height: 40px;
justify-content: center;
align-items: center;
cursor: pointer;
svg {
2020-07-30 12:40:04 +02:00
width: 12px;
height: 12px;
2020-07-02 14:48:17 +02:00
fill: $color-gray-20;
}
}
}
.download-button {
margin-top: 10px;
}
2021-06-03 18:35:01 +02:00
.input-element {
width: 100%;
flex-shrink: initial;
}
.row-grid-2 {
grid-column-gap: 1em;
}
.color-info {
input {
margin-right: 1em;
width: 74px;
2023-01-05 16:35:12 +01:00
&:focus {
border-color: $color-primary !important;
color: $color-white;
outline: none;
}
&:hover {
border-color: $color-gray-20;
}
2021-06-03 18:35:01 +02:00
}
}
2020-07-02 14:48:17 +02:00
}
.shadow-options .color-row-wrap {
margin-left: 6px;
margin-top: 0.5rem;
}
.element-set-actions-button {
display: flex;
min-width: 30px;
min-height: 30px;
justify-content: center;
align-items: center;
cursor: pointer;
svg {
width: 12px;
height: 12px;
fill: $color-gray-20;
stroke: $color-gray-20;
}
&.remove {
min-width: 20px;
min-height: 20px;
}
&:hover svg,
&.active svg {
fill: $color-primary;
stroke: $color-primary;
}
2021-09-17 19:48:18 +02:00
&.actions-inside {
position: absolute;
right: 0;
}
}
.element-set-label {
2021-10-05 12:59:00 +02:00
font-size: $fs12;
padding: 0.5rem;
color: $color-gray-10;
}
.element-set-actions {
display: flex;
visibility: hidden;
}
.row-flex-removable:hover .element-set-actions,
.element-set-options-group:hover .element-set-actions {
visibility: visible;
}
.layer-actions {
visibility: visible;
}
.typography-entry {
margin: 0.5rem 0.3rem;
display: flex;
flex-direction: row;
align-items: center;
.typography-selection-wrapper {
display: flex;
flex-direction: row;
align-items: center;
flex: 1;
height: 100%;
&.is-selectable {
cursor: pointer;
}
}
.typography-sample {
font-size: $fs17;
color: $color-white;
margin: 0 0.5rem;
font-family: sourcesanspro;
font-style: normal;
font-weight: $fw400;
}
.typography-name {
flex-grow: 1;
font-size: $fs11;
margin-top: 4px;
max-width: calc(var(--width, 256px) - 100px);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.element-set-actions-button svg {
width: 10px;
height: 10px;
}
}
2020-11-18 15:25:03 +01:00
.spacing-options {
display: flex;
width: 100%;
2020-11-18 15:25:03 +01:00
}
.asset-section {
.typography-entry {
margin: 0.25rem 0;
}
.element-set-content .font-option,
.element-set-content .size-option {
margin: 0.5rem 0;
}
.element-set-content .variant-option {
margin-left: 0.5rem;
}
}
.row-flex input.adv-typography-name {
font-size: $fs14;
color: $color-gray-10;
width: 100%;
max-width: none;
margin: 0;
background-color: #303236;
border-top: none;
border-left: none;
border-right: none;
}
.size-option .custom-select-dropdown {
cursor: pointer;
max-height: 16rem;
min-width: 6rem;
left: initial;
top: 0;
}
.typography-read-only-data {
font-size: $fs12;
color: $color-white;
.typography-name {
font-size: $fs14;
}
2021-03-23 10:53:40 +01:00
.row-flex {
padding: 0.5rem 0;
}
.label {
color: $color-gray-30;
&::after {
content: ":";
margin-right: 0.25rem;
}
}
.go-to-lib-button {
color: $color-white;
transition: border 0.3s, color 0.3s;
text-align: center;
background: $color-gray-50;
padding: 0.5rem;
border-radius: $br2;
cursor: pointer;
font-size: $fs14;
margin-top: 1rem;
&:hover {
background: $color-primary;
color: $color-black;
}
}
}
2020-10-01 11:59:36 +02:00
.multiple-typography {
margin: 0.5rem;
padding: 0.5rem;
border: 1px dashed $color-gray-30;
border-radius: $br4;
display: flex;
justify-content: space-between;
.multiple-typography-text,
.multiple-typography-button {
2021-10-05 12:59:00 +02:00
font-size: $fs12;
2020-10-01 11:59:36 +02:00
display: flex;
align-items: center;
}
.multiple-typography-button {
cursor: pointer;
svg {
transition: fill 0.3s;
width: 16px;
height: 16px;
fill: $color-gray-10;
}
&:hover svg {
fill: $color-primary;
}
}
}
.font-selector {
background: $color-black;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: calc(100%);
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
.font-selector-dropdown {
background: #303236;
display: flex;
flex-direction: column;
flex-grow: 1;
height: 100%;
}
header {
display: flex;
flex-direction: column;
position: relative;
.backend-filters {
2021-10-05 10:16:44 +02:00
padding: $size-2 $size-4;
// width: 220px;
top: 40px;
right: 20px;
}
.backend-filter {
display: flex;
align-items: center;
2021-10-05 10:16:44 +02:00
padding: $size-2 0;
cursor: pointer;
.checkbox-icon {
2020-10-01 11:59:36 +02:00
display: flex;
justify-content: center;
2020-10-01 11:59:36 +02:00
align-items: center;
2021-10-05 10:16:44 +02:00
width: $size-4;
height: $size-4;
border: 1px solid $color-gray-30;
border-radius: $br3;
2020-10-01 11:59:36 +02:00
svg {
width: 8px;
display: none;
height: 8px;
fill: $color-black;
2020-10-01 11:59:36 +02:00
}
}
2020-10-01 11:59:36 +02:00
.backend-name {
2021-10-05 10:16:44 +02:00
margin-left: $size-2;
color: $color-gray-50;
}
&.selected {
.checkbox-icon {
svg {
display: inherit;
}
2020-10-01 11:59:36 +02:00
}
}
2020-10-01 11:59:36 +02:00
}
input {
display: flex;
flex-grow: 1;
padding: 4px;
font-size: $fs12;
background: $color-gray-50;
border-radius: $br3;
color: $color-gray-20;
border: 1px solid $color-gray-30;
width: 88%;
margin: 15px 17px;
}
.title {
font-size: $fs14;
margin: 9px 17px;
}
.options {
display: flex;
justify-content: center;
align-items: center;
width: 24px;
height: 24px;
2021-10-05 10:16:44 +02:00
margin-left: $size-2;
svg {
width: 16px;
height: 16px;
fill: $color-gray-20;
}
&.active {
svg {
fill: $color-primary;
}
}
}
}
.fonts-list {
display: flex;
flex-direction: column;
height: 100%;
position: relative;
-webkit-box-flex: 1;
flex: 1 1 auto;
}
hr {
margin-bottom: 0px;
margin-top: 0px;
}
.font-item {
2021-10-05 10:16:44 +02:00
padding-left: $size-5;
height: $size-6;
max-height: $size-6;
width: 100%;
display: flex;
align-items: center;
cursor: pointer;
color: $color-gray-10;
&.selected {
background-color: $color-black;
color: $color-primary;
.icon svg {
fill: $color-primary;
}
2020-10-01 11:59:36 +02:00
}
&:hover {
background-color: $color-primary;
color: $color-black;
2020-10-01 11:59:36 +02:00
}
.icon {
display: flex;
// justify-content: center;
align-items: center;
// border: 1px solid red;
width: $size-5;
}
.label {
font-size: $fs12;
}
svg {
fill: $color-gray-10;
width: 10px;
height: 10px;
}
}
2020-10-01 11:59:36 +02:00
}
.row-flex.align-top {
align-items: flex-start;
}
.constraints-widget {
min-width: 72px;
min-height: 72px;
position: relative;
background-color: $color-gray-60;
flex-grow: 0;
.constraints-box {
width: 28px;
height: 28px;
position: absolute;
top: 22px;
left: 22px;
border: 2px solid $color-gray-50;
}
.constraint-button {
position: absolute;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
&::after {
content: " ";
2021-08-20 10:36:40 +02:00
background-color: $color-gray-30;
}
&.active,
&:hover {
&::after {
background-color: $color-primary;
}
}
&.top,
&.bottom {
width: 28px;
height: 22px;
left: calc(50% - 14px);
&::after {
width: 3px;
height: 15px;
}
}
&.top {
top: 0;
}
&.bottom {
bottom: 0;
}
&.left,
&.right {
width: 22px;
height: 28px;
top: calc(50% - 14px);
&::after {
width: 15px;
height: 3px;
}
}
&.left {
left: 0;
}
&.right {
right: 0;
}
&.centerv {
width: 28px;
height: 28px;
left: calc(50% - 14px);
top: calc(50% - 14px);
&::after {
width: 3px;
height: 15px;
}
}
&.centerh {
width: 28px;
height: 15px;
left: calc(50% - 14px);
top: calc(50% - 7px);
&::after {
width: 15px;
height: 3px;
}
}
}
}
.constraints-form {
display: flex;
flex-grow: 1;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
.input-select {
2021-10-05 12:59:00 +02:00
font-size: $fs12;
margin: 0 $size-1 $size-2 $size-1;
padding: 0 $size-1;
}
svg {
width: 15px;
height: 15px;
2021-10-05 10:16:44 +02:00
margin-left: $size-4;
fill: $color-gray-20;
}
.left-right svg {
transform: rotate(45deg);
}
2021-06-10 11:19:25 +02:00
.top-bottom svg {
transform: rotate(-45deg);
}
.fix-when {
2021-10-05 12:59:00 +02:00
font-size: $fs12;
cursor: pointer;
display: flex;
span {
2021-10-05 10:16:44 +02:00
margin-left: $size-2;
}
&:hover,
&.active {
color: $color-primary;
svg {
fill: $color-primary;
}
}
}
2021-08-19 15:04:43 +02:00
}
.cap-select {
background-color: transparent;
border: 1px solid transparent;
border-bottom-color: $color-gray-40;
color: $color-gray-10;
cursor: pointer;
2021-10-05 12:59:00 +02:00
font-size: $fs12;
2021-10-05 10:16:44 +02:00
margin: $size-1;
2021-08-19 15:04:43 +02:00
overflow: hidden;
2021-10-05 10:16:44 +02:00
padding: $size-1;
2021-08-19 15:04:43 +02:00
padding-right: 20px;
position: relative;
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
& .cap-select-button {
svg {
fill: $color-gray-10;
height: 11px;
position: absolute;
right: 5px;
top: 6px;
width: 11px;
}
}
&:hover {
border-color: $color-gray-40;
}
&:focus {
border-color: $color-primary;
}
}
2021-08-19 15:04:43 +02:00
.cap-select-dropdown {
right: 5px;
top: 30px;
z-index: 12;
width: 200px;
height: 320px;
2021-08-19 15:04:43 +02:00
position: fixed;
& li.separator {
border-top: 1px solid $color-gray-10;
}
& li img {
width: 16px;
2021-10-05 10:16:44 +02:00
margin-right: $size-2;
2021-08-19 15:04:43 +02:00
}
}
2022-03-15 11:02:13 +01:00
.expand-colors {
cursor: pointer;
display: flex;
.text {
color: $color-gray-30;
font-size: $fs12;
2022-03-15 11:02:13 +01:00
padding-left: 10px;
}
svg {
width: 16px;
height: 16px;
fill: $color-gray-20;
stroke: $color-gray-20;
}
}
.selected-colors {
.color-data {
margin-bottom: 0;
padding-bottom: 5px;
svg {
visibility: hidden;
}
.percentil {
margin-bottom: 0;
}
}
.color-data:hover {
background-color: $color-gray-60;
svg {
visibility: visible;
}
}
}
2022-10-03 09:50:25 +02:00
.layout-menu,
2023-02-21 14:33:15 +01:00
.layout-item-menu,
.layout-grid-item-menu {
2022-10-03 09:50:25 +02:00
font-family: "worksans", sans-serif;
svg {
height: 16px;
width: 16px;
fill: $color-gray-30;
}
2022-10-03 09:50:25 +02:00
.layout-row {
display: grid;
grid-template-columns: 60px 1fr;
margin-bottom: 5px;
.row-title {
font-size: $fs12;
display: flex;
justify-content: flex-start;
2022-10-03 09:50:25 +02:00
align-items: center;
margin-right: 5px;
font-family: "worksans", sans-serif;
2022-12-09 14:59:38 +01:00
&.justify-content,
2023-02-14 16:12:11 +01:00
&.align-content,
&.sizing {
align-items: flex-start;
2022-12-09 14:59:38 +01:00
margin-top: 4px;
}
2023-02-21 09:12:30 +01:00
&.align-items-grid,
&.jusfiy-content-grid {
align-items: flex-start;
2023-02-21 09:12:30 +01:00
margin-top: 11px;
}
2022-10-03 09:50:25 +02:00
}
.btn-wrapper {
display: flex;
width: 100%;
2022-11-21 11:59:13 +01:00
max-width: 185px;
2023-02-21 14:33:15 +01:00
&.wrap {
flex-direction: column;
gap: 5px;
}
2022-12-09 14:59:38 +01:00
2023-02-14 16:12:11 +01:00
&.justify-content,
&.align-content {
2022-12-09 14:59:38 +01:00
display: flex;
flex-direction: column;
gap: 5px;
}
2022-10-03 09:50:25 +02:00
.direction,
.wrap-type,
.align-items-style,
.align-self-style,
.justify-content-style,
.align-content-style,
.layout-behavior,
.absolute {
display: flex;
border-radius: $br4;
2022-10-03 09:50:25 +02:00
border: 1px solid $color-gray-60;
height: 26px;
margin-right: 5px;
flex-grow: 1;
&.horizontal {
button svg {
transform: rotate(90deg);
}
}
2022-10-03 09:50:25 +02:00
button {
display: flex;
flex-grow: 1;
justify-content: center;
align-items: center;
background: none;
border: none;
cursor: pointer;
border-right: 1px solid $color-gray-60;
color: $color-gray-20;
2022-10-03 09:50:25 +02:00
&.active,
&:hover {
color: $color-primary;
2023-02-22 12:21:44 +01:00
&.dir {
color: $color-primary;
}
2022-10-03 09:50:25 +02:00
svg {
fill: $color-primary;
}
}
}
2022-10-03 09:50:25 +02:00
.dir {
display: flex;
justify-content: center;
align-items: center;
background: none;
border: none;
cursor: pointer;
border-right: 1px solid $color-gray-60;
2022-11-21 11:59:13 +01:00
padding: 2px;
&.row-reverse {
2022-10-03 09:50:25 +02:00
svg {
transform: rotate(180deg);
}
}
2022-10-03 09:50:25 +02:00
&.column-reverse {
2022-10-03 09:50:25 +02:00
svg {
transform: rotate(-90deg);
}
}
&.column {
svg {
transform: rotate(90deg);
}
}
&.active,
&:hover {
svg {
fill: $color-primary;
}
}
}
2022-10-03 09:50:25 +02:00
:last-child {
border-right: none;
}
}
.z-index {
display: flex;
align-items: center;
margin-left: 2px;
margin-top: -4px;
svg {
width: 30px;
}
}
2023-02-21 09:12:30 +01:00
.edit-mode {
2023-06-14 13:00:50 +02:00
align-items: center;
border-radius: 4px;
border: 1px solid $color-gray-60;
2023-02-21 09:12:30 +01:00
display: flex;
2023-06-14 13:00:50 +02:00
flex-direction: row;
gap: 10px;
2023-02-21 09:12:30 +01:00
justify-content: center;
margin-left: 5px;
2023-06-14 13:00:50 +02:00
padding: 0 8px;
text-align: left;
width: 120px;
2023-02-21 09:12:30 +01:00
button {
2023-06-14 13:00:50 +02:00
color: $color-gray-30;
2023-02-21 09:12:30 +01:00
display: flex;
justify-content: center;
align-items: center;
background: transparent;
border: none;
cursor: pointer;
2023-06-14 13:00:50 +02:00
gap: 16px;
2023-02-21 09:12:30 +01:00
&.active,
&:hover {
2023-06-14 13:00:50 +02:00
color: $color-primary;
2023-02-21 09:12:30 +01:00
svg {
fill: $color-primary;
}
}
}
}
2023-06-14 13:00:50 +02:00
&.align-grid-items {
flex-direction: row;
gap: 0px;
margin: 7px 0;
.align-items-style {
margin-right: 2px;
}
}
&.align-grid-content {
2023-02-21 09:12:30 +01:00
flex-direction: column;
gap: 7px;
margin: 7px 0;
}
}
2023-02-21 14:33:15 +01:00
.position-wrapper {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
width: 100%;
max-width: 185px;
height: 26px;
border-radius: 4px;
border: 1px solid $color-gray-60;
.position-btn {
display: flex;
justify-content: center;
align-items: center;
background: transparent;
border: none;
cursor: pointer;
color: $color-gray-20;
border-right: 1px solid $color-gray-60;
&:last-child {
border-right: none;
}
&.active,
&:hover {
color: $color-primary;
}
}
}
2022-10-03 09:50:25 +02:00
}
.no-wrap {
display: flex;
align-items: center;
justify-content: center;
height: 21px;
2022-11-21 11:59:13 +01:00
width: 17px;
2022-10-03 09:50:25 +02:00
svg {
height: 0.7rem;
width: 0.7rem;
}
}
2022-11-21 11:59:13 +01:00
.wrap {
padding: 1px;
}
.gap-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 7px;
2022-10-03 09:50:25 +02:00
margin-top: 3px;
margin-bottom: 8px;
height: 26px;
max-width: 166px;
.gap-row {
display: flex;
justify-content: center;
align-items: center;
.icon {
display: flex;
justify-content: center;
align-items: center;
margin-right: 7px;
2022-10-03 09:50:25 +02:00
svg {
height: 14px;
width: 14px;
}
&.rotated {
transform: rotate(90deg);
}
&.activated {
svg {
fill: $color-primary;
}
}
}
input {
font-size: $fs12;
min-width: 0;
padding: 0.25rem;
height: 20px;
margin: 0;
}
}
2022-10-03 09:50:25 +02:00
button {
display: flex;
justify-content: center;
align-items: center;
background: none;
border: none;
cursor: pointer;
border-radius: $br3;
2022-12-09 14:59:38 +01:00
&.lock {
border: 1px solid $color-gray-60;
border-radius: $br3;
2022-12-09 14:59:38 +01:00
width: 30px;
height: 30px;
}
2022-10-03 09:50:25 +02:00
&.active {
svg {
fill: $color-primary;
}
}
&:hover {
background-color: $color-primary;
svg {
fill: $color-gray-60;
}
}
}
}
.padding-row,
.margin-row {
2022-10-03 09:50:25 +02:00
display: grid;
grid-template-columns: auto 30px;
max-width: 226px;
.padding-group,
.margin-item-group {
display: flex;
margin-top: 3px;
margin-bottom: 3px;
height: 26px;
.padding-item,
.margin-item {
display: flex;
align-items: center;
flex-grow: 1;
.icon {
display: flex;
justify-content: center;
align-items: center;
margin-right: 7px;
svg {
height: 14px;
width: 14px;
}
&.rotated {
transform: rotate(90deg);
}
&.activated {
svg {
fill: $color-primary;
}
}
}
input {
font-size: $fs12;
min-width: 0;
padding: 0.25rem;
width: 70px;
height: 20px;
margin: 0;
}
}
button {
display: flex;
justify-content: center;
align-items: center;
background: none;
border: none;
cursor: pointer;
border-radius: $br3;
&.lock {
border: 1px solid $color-gray-60;
border-radius: $br3;
width: 30px;
height: 30px;
}
&.active {
svg {
fill: $color-primary;
}
}
&:hover {
background-color: $color-primary;
svg {
fill: $color-gray-60;
}
}
}
}
2022-10-03 09:50:25 +02:00
.padding-icons,
.margin-item-icons {
2022-10-03 09:50:25 +02:00
padding: 0;
border: 1px solid $color-gray-60;
border-radius: $br3;
margin-bottom: 8px;
margin-top: $br3;
margin-right: 1px;
height: 30px;
width: 30px;
2022-10-03 09:50:25 +02:00
.padding-icon,
.margin-item-icon {
2022-10-03 09:50:25 +02:00
display: flex;
justify-content: center;
align-items: center;
padding: 6px;
flex-grow: 1;
border-right: 1px solid $color-gray-60;
cursor: pointer;
&:hover,
&.selected {
svg {
fill: $color-primary;
}
}
svg {
height: 14px;
width: 14px;
fill: $color-gray-30;
}
}
2022-12-09 14:59:38 +01:00
2022-10-03 09:50:25 +02:00
:last-child {
border: none;
}
}
2022-12-09 14:59:38 +01:00
2022-10-03 09:50:25 +02:00
.wrapper {
display: flex;
height: 26px;
2022-12-09 14:59:38 +01:00
2022-10-03 09:50:25 +02:00
.input-element {
margin: 0;
2022-12-09 14:59:38 +01:00
margin-top: 3px;
2022-10-03 09:50:25 +02:00
height: 26px;
}
}
}
.layout-container {
border: 1px solid $color-gray-60;
border-radius: $br3;
margin: 5px 0;
.layout-entry {
display: flex;
align-items: center;
color: $color-gray-20;
height: 38px;
cursor: pointer;
&:hover {
svg {
fill: $color-primary;
}
}
}
.layout-info {
font-size: $fs12;
width: 100%;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&::first-letter {
text-transform: capitalize;
}
}
.layout-body {
display: flex;
align-items: center;
margin: 7px;
.selects-wrapper {
width: 100%;
margin-left: 12px;
select {
text-transform: capitalize;
}
option {
text-transform: capitalize;
}
}
.orientation-grid {
background-color: $color-gray-60;
.button-wrapper {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
width: 47px;
height: 47px;
border: 1px solid $color-gray-30;
margin: 12px;
.orientation {
background: none;
border: none;
height: 14px;
width: 14px;
display: flex;
justify-content: center;
align-items: center;
padding: 2px;
cursor: pointer;
.icon {
display: flex;
justify-content: center;
align-items: center;
svg {
fill: none;
height: 10px;
width: 10px;
}
&.rotated {
transform: rotate(90deg);
}
}
&.active {
.icon {
svg {
fill: $color-primary;
}
}
}
&:hover {
.icon {
svg {
fill: $color-gray-20;
}
}
}
}
}
&.col {
.button-wrapper {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr;
.orientation {
height: 100%;
justify-content: space-between;
flex-direction: column;
}
}
}
&.row {
.button-wrapper {
display: grid;
grid-template-rows: 1fr 1fr 1fr;
grid-template-columns: 1fr;
.orientation {
width: 100%;
justify-content: space-between;
padding: 2px;
}
}
}
}
}
}
2023-02-21 09:12:30 +01:00
.grid-columns {
border: 1px solid $color-gray-60;
padding: 5px;
min-height: 38px;
display: flex;
flex-direction: column;
align-items: center;
&:not(:first-child) {
margin-top: 5px;
}
.grid-columns-header {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
flex-grow: 1;
min-height: 36px;
.columns-info {
flex-grow: 1;
font-size: 12px;
2023-02-22 12:21:44 +01:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2023-02-21 09:12:30 +01:00
}
.expand-icon,
.add-column {
cursor: pointer;
background-color: transparent;
border: none;
display: flex;
justify-content: center;
align-items: center;
&.active,
&:hover {
svg {
fill: $color-primary;
}
}
}
.add-column svg {
height: 12px;
width: 12px;
fill: $color-gray-20;
}
}
.columns-info-wrapper {
.column-info {
display: grid;
grid-template-columns: 35px 1fr 1fr auto;
background-color: $color-gray-60;
padding: 3px;
&:not(:first-child) {
margin-top: 3px;
}
.direction-grid-icon {
display: flex;
justify-content: center;
align-items: center;
padding: 5px;
}
input {
background-color: $color-gray-60;
}
.grid-column-value,
.grid-column-unit {
display: flex;
justify-content: center;
align-items: center;
height: 30px;
&.active,
&:focus,
&:focus-within {
border-bottom: 1px solid $color-primary;
}
}
.grid-column-unit-selector {
border: none;
border-bottom: 1px solid $color-gray-30;
margin: 0.25rem 0;
height: 23px;
width: 100%;
&:hover {
border-bottom: 1px solid $color-gray-20;
}
}
.remove-grid-column {
cursor: pointer;
background-color: transparent;
border: none;
display: flex;
justify-content: center;
align-items: center;
margin-left: 40px;
svg {
height: 12px;
width: 12px;
fill: $color-gray-20;
}
&.active,
&:hover {
svg {
fill: $color-primary;
}
}
}
}
}
}
2023-02-21 14:33:15 +01:00
.manage-grid-columns {
margin-left: 60px;
margin-bottom: 10px;
.grid-auto,
.grid-manual {
display: grid;
grid-template-columns: 1fr 1fr;
.grid-columns-auto,
.grid-rows-auto {
display: grid;
grid-template-columns: 20px 1fr;
.icon {
display: flex;
justify-content: center;
align-items: center;
}
input {
width: 80%;
}
}
}
.grid-manual {
.input-wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
}
}
}
}
2022-10-03 09:50:25 +02:00
.advanced-ops {
margin: 10px 0;
display: flex;
align-items: center;
cursor: pointer;
font-size: $fs12;
color: $color-gray-30;
border: none;
background-color: transparent;
padding: 0;
.icon {
display: flex;
justify-content: flex-start;
align-items: center;
2022-10-03 09:50:25 +02:00
margin-right: 10px;
svg {
fill: $color-gray-20;
}
}
2022-10-03 09:50:25 +02:00
&:hover {
svg {
fill: $color-primary;
}
}
2022-10-03 09:50:25 +02:00
}
.advanced-ops-body {
.input-wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
.input-element {
width: 100%;
&::after {
2022-10-03 09:50:25 +02:00
content: attr(alt);
width: 100px;
}
}
}
}
2023-04-27 13:26:32 +02:00
.component-annotation {
background-color: $color-gray-60;
border: 1px solid $color-gray-60;
border-radius: 2px;
2023-04-27 13:26:32 +02:00
.title {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid $color-gray-50;
font-size: $fs12;
color: $color-gray-20;
padding: 0 10px;
&.expandeable {
cursor: pointer;
}
div {
display: flex;
align-items: center;
line-height: 2.5;
}
.expand {
svg {
fill: $color-gray-20;
width: $size-2;
height: $size-2;
margin-right: 10px;
}
}
.icon {
display: none;
cursor: pointer;
svg {
fill: $color-gray-20;
width: $size-4;
height: $size-4;
margin-left: 15px;
&.icon-cross {
width: $size-3;
height: $size-3;
}
}
.icon-tick:hover,
.icon-pencil:hover {
fill: $color-primary;
}
.icon-cross:hover,
.icon-trash:hover {
fill: $color-danger;
}
2023-04-27 13:26:32 +02:00
}
&:hover {
.icon {
display: flex;
}
}
}
&.editing {
border: 1px solid $color-primary;
.title .icon {
display: flex;
}
textarea {
min-height: 250px;
}
}
&.creating {
textarea {
min-height: 250px;
}
}
2023-04-27 13:26:32 +02:00
.hidden {
display: none;
svg {
display: none;
}
2023-04-27 13:26:32 +02:00
}
.counter {
text-align: right;
font-size: $fs11;
color: $color-gray-30;
margin: 0 10px 10px 0;
}
// Auto growing text
.grow-wrap {
// easy way to plop the elements on top of each other and have them both sized based on the tallest one's height
display: grid;
&:after {
// The space is needed to preventy jumpy behavior
content: attr(data-replicated-value) " ";
white-space: pre-wrap;
visibility: hidden;
}
textarea {
background-color: $color-gray-60;
color: $color-white;
padding: 10px;
border: none;
overflow: hidden;
outline: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
resize: none; /*remove the resize handle on the bottom right*/
}
textarea,
&:after {
/* Identical styling required!! */
font: inherit;
font-size: $fs14;
overflow-wrap: anywhere;
padding: 10px;
/* Place on top of each other */
grid-area: 1 / 1 / 2 / 2;
}
}
}