Fixed tab space

This commit is contained in:
alonso.torres 2020-05-19 15:22:39 +02:00 committed by Andrés Moya
parent 2a4573842d
commit 9681a4b32e
2 changed files with 227 additions and 218 deletions

View file

@ -279,155 +279,159 @@
font-size: $fs13; font-size: $fs13;
} }
} }
.custom-select-dropdown { .custom-select-dropdown {
position: absolute; position: absolute;
left: 0; left: 0;
z-index: 12; z-index: 12;
max-height: 30rem; max-height: 30rem;
min-width: 7rem; min-width: 7rem;
overflow-y: auto; overflow-y: auto;
background-color: $color-white; background-color: $color-white;
border-radius: $br-small; border-radius: $br-small;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25); box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
hr { .presets {
margin: 0; width: 200px;
border-color: $color-gray-20; }
hr {
margin: 0;
border-color: $color-gray-20;
}
li {
color: $color-gray-60;
cursor: pointer;
font-size: $fs14;
display: flex;
padding: $small;
span {
color: $color-gray-20;
margin-left: auto;
} }
li { &.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;
& 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 {
position: relative;
height: 38px;
margin-right: $small;
position: relative;
width: 60%;
svg {
fill: $color-gray-40;
height: 10px;
width: 10px;
}
.input-text {
left: 0;
position: absolute;
top: -1px;
width: 60%;
}
.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; color: $color-gray-60;
cursor: pointer; background: $color-white;
font-size: $fs14; font-size: $fs12;
display: flex;
padding: $small;
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 { .dropdown-button {
padding-left: 0; position: absolute;
top: 7px;
right: 0;
}
& span { &.input-option {
margin: 0; height: 2rem;
color: $color-black; border-bottom: 1px solid #64666A;
} width: 100%;
margin-left: 0.25rem;
& svg {
visibility: hidden;
width: 8px;
height: 8px;
background: none;
margin: 0.25rem;
fill: $color-black;
}
&.is-selected {
& svg {
visibility: visible;
}
}
}
.editable-select {
position: relative;
height: 38px;
margin-right: $small;
position: relative;
width: 60%;
svg {
fill: $color-gray-40;
height: 10px;
width: 10px;
}
.input-text { .input-text {
left: 0; border: none;
position: absolute; margin: 0;
top: -1px; width: calc(100% - 12px);
width: 60%; height: 100%;
} top: auto;
color: #b1b2b5;
.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;
}
}
.dropdown-button {
position: absolute;
top: 7px;
right: 0;
}
&.input-option {
height: 2rem;
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: #b1b2b5;
}
} }
}
} }
} }
.element-set-content .grid-option-main { .element-set-content .grid-option-main {
.editable-select.input-option .input-text { .editable-select.input-option .input-text {
padding: 0; padding: 0;
padding-top: 0.18rem; padding-top: 0.18rem;
} }
.input-element { .input-element {
width: 55px; width: 55px;
margin: 0 0.2rem; margin: 0 0.2rem;
} }
.input-text { .input-text {
padding-left: 0; padding-left: 0;
color: #b1b2b5; color: #b1b2b5;
} }
} }
.color-th { .color-th {
@ -461,7 +465,12 @@
} }
} }
}
.presets {
.custom-select-dropdown {
width: 200px;
}
} }
.row-flex.align-icons { .row-flex.align-icons {
@ -602,7 +611,7 @@
height: 18px; height: 18px;
position: relative; position: relative;
width: 18px; width: 18px;
svg { svg {
fill: $color-gray-30; fill: $color-gray-30;
height: 16px; height: 16px;
@ -612,127 +621,127 @@
} }
.custom-button { .custom-button {
cursor: pointer; cursor: pointer;
background: none; background: none;
border: none; border: none;
& svg { & svg {
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
fill: $color-gray-20; fill: $color-gray-20;
} }
&:hover svg, &.is-active svg { &:hover svg, &.is-active svg {
fill: $color-primary; fill: $color-primary;
} }
} }
.element-set-content .input-row { .element-set-content .input-row {
& .element-set-subtitle { & .element-set-subtitle {
width: 5.5rem; width: 5.5rem;
} }
} }
.grid-option { .grid-option {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
.element-set-content .custom-select.input-option { .element-set-content .custom-select.input-option {
border-top: none; border-top: none;
border-left: none; border-left: none;
border-right: none; border-right: none;
margin-left: 0.25rem; margin-left: 0.25rem;
} }
.element-set-content .grid-option-main { .element-set-content .grid-option-main {
display: flex; display: flex;
padding: 0.5rem 0; padding: 0.5rem 0;
border: 1px solid $color-black; border: 1px solid $color-black;
border-radius: 4px; border-radius: 4px;
&:hover { &:hover {
background: #1F1F1F; background: #1F1F1F;
} }
& .custom-select { & .custom-select {
min-width: 4.75rem; min-width: 4.75rem;
height: 2rem; height: 2rem;
border: none; border: none;
border-bottom: 1px solid #65666A; border-bottom: 1px solid #65666A;
} }
& .input-element { & .input-element {
width: 50px; width: 50px;
overflow: hidden; overflow: hidden;
} }
& .custom-select-dropdown {
width: 96px;
}
& .input-option {
margin-left: 0.5rem;
& .custom-select-dropdown { & .custom-select-dropdown {
width: 96px; width: 56px;
min-width: 56px;
max-height: 10rem;
} }
& .input-option { }
margin-left: 0.5rem;
& .custom-select-dropdown {
width: 56px;
min-width: 56px;
max-height: 10rem;
}
}
} }
.grid-option-main-actions { .grid-option-main-actions {
display: flex; display: flex;
visibility: hidden; visibility: hidden;
.grid-option:hover & { .grid-option:hover & {
visibility: visible; visibility: visible;
} }
} }
.focus-overlay { .focus-overlay {
background: $color-black; background: $color-black;
height: 100%; height: 100%;
left: 0; left: 0;
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; width: 100%;
opacity: 0.4; opacity: 0.4;
} }
.element-set-content .advanced-options { .element-set-content .advanced-options {
background-color: #303236; background-color: #303236;
border-radius: 4px; border-radius: 4px;
left: -8px; left: -8px;
padding: 0.5rem; padding: 0.5rem;
position: relative; position: relative;
top: 2px; top: 2px;
width: calc(100% + 16px); width: calc(100% + 16px);
} }
.btn-options { .btn-options {
cursor: pointer; cursor: pointer;
border: 1px solid $color-black; border: 1px solid $color-black;
background: $color-gray-60; background: $color-gray-60;
border-radius: 2px; border-radius: 2px;
color: $color-gray-20; color: $color-gray-20;
font-size: 11px; font-size: 11px;
line-height: 16px; line-height: 16px;
flex-grow: 1; flex-grow: 1;
padding: 0.25rem 0; padding: 0.25rem 0;
&:first-child { &:first-child {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
&:not([disabled]):hover { &:not([disabled]):hover {
background: $color-primary; background: $color-primary;
color: $color-black; color: $color-black;
} }
&[disabled] { &[disabled] {
opacity: 0.4; opacity: 0.4;
cursor: auto; cursor: auto;
} }
} }

View file

@ -80,7 +80,7 @@
[:div.element-set-content [:div.element-set-content
[:div.row-flex [:div.row-flex
[:div.custom-select.flex-grow {:on-click #(reset! show-presets-dropdown? true)} [:div.presets.custom-select.flex-grow {:on-click #(reset! show-presets-dropdown? true)}
[:span (tr "workspace.options.size-presets")] [:span (tr "workspace.options.size-presets")]
[:span.dropdown-button i/arrow-down] [:span.dropdown-button i/arrow-down]
[:& dropdown {:show @show-presets-dropdown? [:& dropdown {:show @show-presets-dropdown?