// 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) UXBOX Labs SL .element-options { display: flex; flex-direction: column; width: 100%; height: 100%; .element-icons { background-color: $color-gray-60; border: 1px solid $color-gray-60; border-radius: $br-small; display: flex; margin: $size-1; li { align-items: center; border-right: 1px solid $color-gray-60; border-radius: $br-small; cursor: pointer; display: flex; flex: 1; justify-content: center; padding: $size-2; svg { fill: $color-gray-20; height: 15px; width: 15px; } &:hover { svg { fill: $color-primary; } } &.selected { background-color: $color-primary; svg { fill: $color-white; } } &:last-child { border: none; } } } .element-set { border-bottom: 1px solid $color-gray-60; color: $color-gray-20; padding: $size-2 $size-1; .element-set-title { color: $color-gray-20; display: flex; font-size: $fs14; padding: $size-1; width: 100%; align-items: center; } } .element-list { margin-bottom: $size-2; li { align-items: center; border-bottom: 1px solid $color-gray-60; display: flex; flex-direction: row; padding: $size-2; width: 100%; .list-icon { svg { fill: $color-gray-30; height: 15px; margin-right: $size-1; width: 15px; } } span { color: $color-gray-20; font-size: $fs12; 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: $color-gray-60; height: 15px; margin-left: $size-1; width: 15px; &:hover { fill: $color-gray-20; } } } } &:hover { .list-icon { svg { fill: $color-primary; } } span { color: $color-primary; } } &.selected { .list-icon { svg { fill: $color-primary; } } span { color: $color-primary; font-weight: bold; } } } &:hover { .list-actions { display: flex; @include animation(0s, 0.3s, fadeIn); } } } } .element-set-content { display: flex; flex-direction: column; padding: $size-1; width: 100%; .input-text { background-color: $color-gray-50; border: 1px solid transparent; border-bottom-color: $color-gray-40; color: $color-white; font-size: $fs12; margin: $size-1; min-width: 0; padding: $size-1; width: 100%; &:focus { color: lighten($color-gray-10, 8%); border-color: $color-primary !important; } &:hover { border-color: $color-gray-40; } &.error { border-color: $color-danger; } } .input-select { color: $color-gray-10; &:focus { color: lighten($color-gray-10, 8%); } option { color: $color-gray-60; background: $color-white; font-size: $fs12; &:disabled { color: $color-gray-20; } } } .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: 0.8rem; } } .element-set-subtitle { color: $color-gray-20; font-size: $fs12; width: 64px; &.wide { min-width: 75px; } } .lock-size { cursor: pointer; margin: auto; svg { fill: $color-gray-20; height: 14px; width: 14px; &:hover { fill: $color-primary; } } &.selected { svg { fill: $color-primary; } } &.disabled { cursor: unset; svg { fill: $color-gray-40; } } } .save-btn { width: 100%; } .cancel-btn { color: $color-danger; text-align: center; width: 100%; } .custom-select { border: 1px solid $color-gray-40; border-radius: $br-small; cursor: pointer; padding: $size-1 $size-5 $size-1 $size-1; position: relative; .dropdown-button { position: absolute; right: $size-1; top: 7px; svg { fill: $color-gray-40; height: 10px; width: 10px; } } span { font-size: $fs12; } &:hover { border: 1px solid $color-gray-20; } } .custom-select-dropdown { background-color: $color-white; border-radius: $br-small; box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25); left: 0; max-height: 30rem; min-width: 7rem; position: absolute; overflow-y: auto; top: 30px; z-index: 12; .presets { width: 200px; } hr { margin: 0; border-color: $color-gray-20; } li { color: $color-gray-60; cursor: pointer; font-size: $fs14; display: flex; padding: $size-2; span { color: $color-gray-20; margin-left: auto; } &.dropdown-separator:not(:last-child) { border-bottom: 1px solid $color-gray-10; } &.dropdown-label:not(:first-child) { border-top: 1px solid $color-gray-10; } &.dropdown-label span { margin-left: 0; } &:hover { background-color: $color-primary-lighter; } } } & li.checked-element { padding-left: 0; display: flex; justify-content: space-around; & span { margin: 0; color: $color-black; } & svg { visibility: hidden; width: 8px; height: 8px; background: none; margin: 0.25rem; fill: $color-black; } &.is-selected { & svg { visibility: visible; } } } .editable-select { border: 1px solid transparent; position: relative; height: 38px; // margin-left: $size-2; max-height: 30px; position: relative; width: 60%; svg { fill: $color-gray-10; height: 10px; width: 10px; } .input-text { left: 0; position: absolute; top: -1px; width: 60%; } input.input-text { border: none; background: none; } .input-select { background-color: transparent; border: none; border-bottom: 1px solid $color-gray-40; color: transparent; left: 0; position: absolute; top: 0; width: 100%; option { color: $color-gray-60; background: $color-white; font-size: $fs12; &:disabled { color: $color-gray-20; } } } .dropdown-button { position: absolute; right: 0; padding-right: 4px; height: 100%; display: flex; align-items: center; } &.input-option { height: 26px; border-bottom: 1px solid #64666a; width: 100%; margin-left: 0.25rem; .input-text { border: none; margin: 0; width: calc(100% - 12px); height: 100%; top: auto; color: $color-white; } } .custom-select-dropdown { top: unset; margin-bottom: 0; } &:hover { border: 1px solid $color-gray-40; } } } .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; } .editable-select.input-option .input-text { padding: 0; padding-top: 0.18rem; padding-left: 0.25rem; } .input-element { width: 55px; margin: 0 0.2rem; } .input-text { padding-left: 0; color: $color-white; background-color: transparent; height: 30px; } } .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; margin-right: $size-2; } .row-actions { margin-left: auto; cursor: pointer; svg { fill: $color-gray-20; height: 12px; margin-right: $size-1; 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; } } } } .grid-option .custom-select { margin-bottom: 0; } .presets { .custom-select-dropdown { width: 237px; li { font-size: $fs12; span { font-size: $fs12; } } } } .row-flex.align-icons { margin-left: 0; } .align-icons { cursor: pointer; display: flex; flex: 1; justify-content: flex-end; margin: $size-2 0 $size-2 $size-2; padding: 0 $size-1; &:first-child { justify-content: flex-start; margin-left: 0; } span { align-items: center; display: flex; height: 20px; justify-content: center; margin-right: $size-2; position: relative; width: 20px; svg { fill: $color-gray-30; height: 14px; width: 14px; } &:hover, &.current { svg { fill: $color-primary; } } &:last-child { margin-right: 0; } } } .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-gray-50; height: 3px; left: -4px; position: absolute; width: 23px; transition: none; top: 30%; } } } .radius-options { align-items: center; border: 1px solid $color-gray-60; border-radius: 4px; display: flex; justify-content: space-between; padding: 8px; width: 64px; .radius-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 { 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; } } } .navigate-icon { background-color: $color-gray-60; cursor: pointer; margin-left: $size-2; 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 { margin-right: $size-2; } .icon-before { align-items: center; display: flex; height: 18px; position: relative; width: 14px; svg { fill: $color-gray-30; height: 14px; width: 14px; } } } .custom-button { cursor: pointer; background: none; border: none; & svg { width: 12px; height: 12px; fill: $color-gray-20; } &:hover svg, &.is-active svg { fill: $color-primary; } } .element-set-content .input-row { & .element-set-subtitle { width: 5.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } .grid-option { margin-bottom: 0.5rem; .advanced-options { .row-flex { justify-content: flex-end; } .custom-button { left: 0; position: absolute; top: 12px; } } } .element-set-content .custom-select.input-option { border-top: none; border-left: none; border-right: none; margin-left: 0.25rem; } .element-set-content .grid-option-main { align-items: center; display: flex; padding: 0.3rem 0; border: 1px solid $color-black; border-radius: 4px; height: 48px; &:hover { background: $color-gray-60; .custom-select, .editable-select, input { background-color: $color-gray-50; } } & .custom-select { min-width: 4.75rem; height: 2rem; border-color: transparent; border-bottom: 1px solid #65666a; max-height: 30px; &:hover { border: 1px solid $color-gray-40; } } & .input-element { width: 50px; overflow: hidden; } & .custom-select-dropdown { width: 96px; } & .input-option { margin-left: 0.5rem; & .custom-select-dropdown { width: 5rem; min-width: 5rem; max-height: 10rem; } } } .grid-option-main-actions { display: flex; visibility: hidden; .grid-option:hover & { visibility: visible; } } .focus-overlay { background: $color-black; height: 100%; left: 0; position: absolute; top: 0; width: calc(100%); opacity: 0.4; z-index: 10; display: flex; } .advanced-options-wrapper { width: 100%; } .advanced-options { border: 1px solid $color-gray-60; background-color: $color-gray-50; border-radius: 4px; padding: 8px; position: relative; top: 2px; width: 100%; } .btn-options { cursor: pointer; border: 1px solid $color-black; background: $color-gray-60; border-radius: 2px; color: $color-gray-20; font-size: 11px; line-height: 16px; flex-grow: 1; padding: 0.25rem 0; &:first-child { margin-right: 0.5rem; } &:not([disabled]):hover { background: $color-primary; color: $color-black; } &[disabled] { opacity: 0.4; cursor: auto; } } .element-set-options-group { display: flex; justify-content: space-between; padding: 3px; border: 1px solid $color-black; border-radius: 4px; &:hover { background: #1f1f1f; } &.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; } &:not(:first-child) { border-top: 1px solid $color-gray-60; } } .exports-options, .shadow-options { .element-set-options-group { .delete-icon { display: flex; min-width: 40px; min-height: 40px; justify-content: center; align-items: center; cursor: pointer; svg { width: 12px; height: 12px; fill: $color-gray-20; } } } .download-button { margin-top: 10px; } .input-element { width: 100%; flex-shrink: initial; } .row-grid-2 { grid-column-gap: 1em; } .color-info { input { margin-right: 1em; width: 74px; } } } .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; } &.actions-inside { position: absolute; right: 0; } } .element-set-label { 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: 17px; color: $color-white; margin: 0 0.5rem; font-family: sourcesanspro; font-style: normal; font-weight: normal; } .typography-name { flex-grow: 1; font-size: 11px; margin-top: 4px; white-space: nowrap; } .element-set-actions-button svg { width: 10px; height: 10px; } } .spacing-options { display: flex; width: 100%; } .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: 14px; 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: 12px; color: $color-white; .typography-name { font-size: 14px; } .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: 2px; cursor: pointer; font-size: 14px; margin-top: 1rem; &:hover { background: $color-primary; color: $color-black; } } } .multiple-typography { margin: 0.5rem; padding: 0.5rem; border: 1px dashed $color-gray-30; border-radius: 4px; display: flex; justify-content: space-between; .multiple-typography-text, .multiple-typography-button { font-size: $fs12; 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; } } svg { } .multiple-typography-button:hover svg { } } .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 { padding: $size-2 $size-4; // width: 220px; top: 40px; right: 20px; } .backend-filter { display: flex; align-items: center; padding: $size-2 0; cursor: pointer; .checkbox-icon { display: flex; justify-content: center; align-items: center; width: $size-4; height: $size-4; border: 1px solid $color-gray-30; border-radius: $br-small; svg { width: 8px; display: none; height: 8px; fill: $color-black; } } .backend-name { margin-left: $size-2; color: $color-gray-50; } &.selected { .checkbox-icon { svg { display: inherit; } } } } input { display: flex; flex-grow: 1; padding: 4px; font-size: $fs12; background: $color-gray-50; border-radius: $br-small; 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; 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 { 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; } } &:hover { background-color: $color-primary; color: $color-black; } .icon { display: flex; // justify-content: center; align-items: center; // border: 1px solid red; width: $size-5; } .label { font-size: 12px; } svg { fill: $color-gray-10; width: 10px; height: 10px; } } } .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: " "; 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 { font-size: $fs12; margin: 0 $size-1; } svg { width: 15px; height: 15px; margin-left: $size-4; fill: $color-gray-20; } .left-right svg { transform: rotate(45deg); } .top-bottom svg { transform: rotate(-45deg); } .fix-when { font-size: $fs12; cursor: pointer; span { margin-left: $size-2; } &:hover, &.active { color: $color-primary; svg { fill: $color-primary; } } } } .cap-select { background-color: transparent; border: 1px solid transparent; border-bottom-color: $color-gray-40; color: $color-gray-10; cursor: pointer; font-size: $fs12; margin: $size-1; overflow: hidden; padding: $size-1; 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; } } .cap-select-dropdown { right: 5px; top: 30px; z-index: 12; width: 200px; height: 320px; position: fixed; & li.separator { border-top: 1px solid $color-gray-10; } & li img { width: 16px; margin-right: $size-2; } }