snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 2s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 0s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 2s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 0s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
This commit is contained in:
211
frontend/less/espo/misc/selectize/custom.less
Normal file
211
frontend/less/espo/misc/selectize/custom.less
Normal file
@@ -0,0 +1,211 @@
|
||||
.filter > .form-group .field .selectize-control,
|
||||
.selectize-control.input-sm.form-control {
|
||||
&.multi {
|
||||
.selectize-input {
|
||||
font-size: var(--font-size-small);
|
||||
padding: var(--2px) var(--7px) 0;
|
||||
|
||||
> .item {
|
||||
margin: 0 var(--3px) var(--2px) 0;
|
||||
}
|
||||
|
||||
> input {
|
||||
padding-top: var(--1px) !important;
|
||||
}
|
||||
|
||||
min-height: var(--input-height-small);
|
||||
}
|
||||
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&.single {
|
||||
.selectize-input {
|
||||
font-size: var(--font-size-small);
|
||||
padding: var(--padding-small-vertical) var(--19px) var(--padding-small-vertical) var(--padding-small-horizontal);
|
||||
min-height: var(--input-height-small);
|
||||
max-height: var(--input-height-small);
|
||||
}
|
||||
|
||||
height: var(--input-height-small);
|
||||
}
|
||||
|
||||
.selectize-dropdown-content {
|
||||
max-height: calc(var(--220px) + var(--14px));
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-dropdown {
|
||||
min-width: var(--80px);
|
||||
|
||||
.selectize-dropdown-content {
|
||||
> .option {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
max-height: calc(var(--256px) + var(--6px));
|
||||
}
|
||||
|
||||
margin-top: 0;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.form-control.selectize-control.single {
|
||||
height: var(--input-height-base);
|
||||
}
|
||||
|
||||
.selectize-control {
|
||||
&.single {
|
||||
> .selectize-input {
|
||||
> .item {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
vertical-align: top;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
.color-icon {
|
||||
padding-right: var(--5px);
|
||||
}
|
||||
}
|
||||
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-dropdown {
|
||||
z-index: 1031;
|
||||
|
||||
.selectize-dropdown-content {
|
||||
.option {
|
||||
.color-icon {
|
||||
padding-right: var(--5px);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-control.multi .selectize-input {
|
||||
> div {
|
||||
border-radius: var(--border-radius);
|
||||
padding: var(--1px) var(--4px);
|
||||
|
||||
&:not(.active) {
|
||||
&.primary {
|
||||
> span {
|
||||
color: var(--state-primary-text);
|
||||
}
|
||||
}
|
||||
|
||||
&.warning {
|
||||
> span {
|
||||
color: var(--state-warning-text);
|
||||
}
|
||||
}
|
||||
|
||||
&.danger {
|
||||
> span {
|
||||
color: var(--state-danger-text);
|
||||
}
|
||||
}
|
||||
|
||||
&.info {
|
||||
> span {
|
||||
color: var(--state-info-text);
|
||||
}
|
||||
}
|
||||
|
||||
&.success {
|
||||
> span {
|
||||
color: var(--state-success-text);
|
||||
}
|
||||
}
|
||||
|
||||
&.soft {
|
||||
> span {
|
||||
color: var(--gray-soft);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-control.single {
|
||||
.selectize-dropdown {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.selectize-input {
|
||||
padding-right: var(--19px);
|
||||
|
||||
//height: var(--line-height-base);
|
||||
max-height: var(--input-height-base);
|
||||
|
||||
&.dropdown-active:after,
|
||||
&:after {
|
||||
color: var(--text-muted-color);
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
top: var(--16px);
|
||||
right: var(--8px);
|
||||
margin-left: var(--2px);
|
||||
vertical-align: middle;
|
||||
border-top: var(--4px) dashed;
|
||||
border-right: var(--4px) solid transparent;
|
||||
border-left: var(--4px) solid transparent;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
> .item {
|
||||
//display: block;
|
||||
//vertical-align: middle;
|
||||
}
|
||||
|
||||
> .item + input {
|
||||
caret-color: transparent;
|
||||
margin-right: var(--minus-4px) !important; // Prevent select changing width on focus.
|
||||
}
|
||||
}
|
||||
|
||||
&.input-sm {
|
||||
.selectize-input {
|
||||
height: var(--line-height-small);
|
||||
line-height: var(--line-height-small);
|
||||
|
||||
&.dropdown-active:after,
|
||||
&:after {
|
||||
top: var(--13px);
|
||||
}
|
||||
|
||||
> .item {
|
||||
line-height: var(--line-height-small);
|
||||
|
||||
// Prevents height added.
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-dropdown .active {
|
||||
&.text-success {
|
||||
color: var(--state-success-text);
|
||||
}
|
||||
&.text-danger {
|
||||
color: var(--state-danger-text);
|
||||
}
|
||||
&.text-warning {
|
||||
color: var(--state-warning-text);
|
||||
}
|
||||
&.text-warning {
|
||||
color: var(--state-warning-text);
|
||||
}
|
||||
&.text-info {
|
||||
color: var(--state-info-text);
|
||||
}
|
||||
&.text-primary {
|
||||
color: var(--state-primary-text);
|
||||
}
|
||||
}
|
||||
16
frontend/less/espo/misc/selectize/plugins/drag_drop.less
Normal file
16
frontend/less/espo/misc/selectize/plugins/drag_drop.less
Normal file
@@ -0,0 +1,16 @@
|
||||
.selectize-control.plugin-drag_drop {
|
||||
&.multi > .selectize-input > div.ui-sortable-placeholder {
|
||||
visibility: visible !important;
|
||||
//background: #f2f2f2 !important;
|
||||
//background: rgba(0,0,0,0.06) !important;
|
||||
border: 0 none !important;
|
||||
//.selectize-box-shadow(inset 0 0 12px 4px #fff);
|
||||
}
|
||||
.ui-sortable-placeholder::after {
|
||||
content: '!';
|
||||
visibility: hidden;
|
||||
}
|
||||
.ui-sortable-helper {
|
||||
.selectize-box-shadow(0 2px 5px rgba(0,0,0,0.2));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
.selectize-dropdown-header {
|
||||
position: relative;
|
||||
padding: @selectize-padding-dropdown-item-y @selectize-padding-dropdown-item-x;
|
||||
border-bottom: 1px solid @selectize-color-border;
|
||||
//background: mix(@selectize-color-dropdown, @selectize-color-border, 85%);
|
||||
background: @selectize-color-dropdown;
|
||||
}
|
||||
.selectize-dropdown-header-close {
|
||||
position: absolute;
|
||||
right: @selectize-padding-dropdown-item-x;
|
||||
top: 50%;
|
||||
color: @selectize-color-text;
|
||||
opacity: 0.4;
|
||||
margin-top: calc(var(--12px) * -1);
|
||||
line-height: var(--20px);
|
||||
font-size: var(--20px) !important;
|
||||
}
|
||||
.selectize-dropdown-header-close:hover {
|
||||
color: var(--gray-dark-25);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
.selectize-dropdown.plugin-optgroup_columns {
|
||||
.optgroup {
|
||||
border-right: 1px solid #f2f2f2;
|
||||
border-top: 0 none;
|
||||
float: left;
|
||||
.selectize-box-sizing(border-box);
|
||||
}
|
||||
.optgroup:last-child {
|
||||
border-right: 0 none;
|
||||
}
|
||||
.optgroup:before {
|
||||
display: none;
|
||||
}
|
||||
.optgroup-header {
|
||||
border-top: 0 none;
|
||||
}
|
||||
}
|
||||
43
frontend/less/espo/misc/selectize/plugins/remove_button.less
Normal file
43
frontend/less/espo/misc/selectize/plugins/remove_button.less
Normal file
@@ -0,0 +1,43 @@
|
||||
.selectize-control.plugin-remove_button {
|
||||
[data-value] {
|
||||
position: relative;
|
||||
padding-right: var(--24px) !important;
|
||||
}
|
||||
[data-value] .remove {
|
||||
z-index: 1; /* fixes ie bug (see #392) */
|
||||
position: absolute;
|
||||
top: var(--minus-1px);
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: var(--17px);
|
||||
text-align: center;
|
||||
font-weight: normal;
|
||||
font-size: var(--12px);
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
padding: @selectize-padding-item-y 0 0 0;
|
||||
border-left: var(--1px) solid @selectize-color-item-border;
|
||||
.selectize-border-radius(0 var(--2px) var(--2px) 0);
|
||||
.selectize-box-sizing(border-box);
|
||||
}
|
||||
[data-value] .remove:hover {
|
||||
background: rgba(0,0,0,0.05);
|
||||
}
|
||||
[data-value].active .remove {
|
||||
border-left-color: @selectize-color-item-active-border;
|
||||
}
|
||||
.disabled [data-value] .remove:hover {
|
||||
background: none;
|
||||
}
|
||||
.disabled [data-value] .remove {
|
||||
border-left-color: lighten(desaturate(@selectize-color-item-border, 100%), @selectize-lighten-disabled-item-border);
|
||||
}
|
||||
.remove-single {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-size: var(--23px);
|
||||
}
|
||||
}
|
||||
148
frontend/less/espo/misc/selectize/selectize.bootstrap3.less
Normal file
148
frontend/less/espo/misc/selectize/selectize.bootstrap3.less
Normal file
@@ -0,0 +1,148 @@
|
||||
/**
|
||||
* selectize.css (v0.13.3)
|
||||
* Copyright (c) 2013–2015 Brian Reavis & contributors
|
||||
* Copyright (c) 2020 Selectize Team & contributors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
|
||||
* file except in compliance with the License. You may obtain a copy of the License at:
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under
|
||||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
||||
* ANY KIND, either express or implied. See the License for the specific language
|
||||
* governing permissions and limitations under the License.
|
||||
*
|
||||
* @author Brian Reavis <brian@thirdroute.com>
|
||||
* @author Ris Adams <selectize@risadams.com>
|
||||
*/
|
||||
|
||||
@import "selectize";
|
||||
|
||||
@selectize-font-family: inherit;
|
||||
@selectize-font-size: inherit;
|
||||
@selectize-line-height: var(--line-height-computed);
|
||||
|
||||
|
||||
@selectize-color-highlight: rgba(255,237,40,0.4);
|
||||
@selectize-color-input: var(--input-bg);
|
||||
@selectize-color-input-full: var(--input-bg);
|
||||
@selectize-color-input-error: @state-danger-text;
|
||||
|
||||
@selectize-color-input-error-focus: var(--state-success-text-10);
|
||||
@selectize-color-disabled: var(--input-bg);
|
||||
|
||||
@selectize-color-item-border: rgba(0,0,0,0);
|
||||
@selectize-color-item-active-border: rgba(0,0,0,0);
|
||||
@selectize-color-optgroup: var(--dropdown-bg);
|
||||
@selectize-color-optgroup-text: var(--gray-light);
|
||||
@selectize-color-optgroup-border: var(--dropdown-divider-bg);
|
||||
@selectize-color-dropdown: var(--dropdown-bg);
|
||||
@selectize-color-dropdown-border-top: var(--input-border);
|
||||
@selectize-color-dropdown-item-active: var(--dropdown-link-hover-bg);
|
||||
@selectize-color-dropdown-item-active-text: var(--dropdown-link-hover-color);
|
||||
@selectize-color-dropdown-item-create-active-text: var(--dropdown-link-hover-color);
|
||||
@selectize-opacity-disabled: 0.5;
|
||||
@selectize-shadow-input: none;
|
||||
@selectize-shadow-input-focus: inset 0 1px 2px rgba(0,0,0,0.15);
|
||||
@selectize-shadow-input-error: inset 0 1px 1px rgba(0, 0, 0, .075);
|
||||
|
||||
@selectize-border: var(--1px) solid var(--input-border);
|
||||
|
||||
@selectize-width-item-border: 0;
|
||||
@selectize-padding-x: var(--padding-base-horizontal);
|
||||
@selectize-padding-y: var(--padding-base-vertical);
|
||||
@selectize-padding-dropdown-item-x: var(--padding-base-horizontal);
|
||||
@selectize-padding-dropdown-item-y: var(--3px);
|
||||
@selectize-padding-item-x: var(--3px);
|
||||
@selectize-padding-item-y: var(--1px);
|
||||
@selectize-margin-item-x: var(--3px);
|
||||
@selectize-margin-item-y: var(--3px);
|
||||
@selectize-caret-margin: 0;
|
||||
|
||||
@selectize-arrow-size: var(--5px);
|
||||
@selectize-arrow-color: @selectize-color-text;
|
||||
@selectize-arrow-offset: calc(var(--padding-base-horizontal) + var(--5px));
|
||||
|
||||
.selectize-dropdown, .selectize-dropdown.form-control {
|
||||
height: auto;
|
||||
padding: 0;
|
||||
margin: var(--2px) 0 0 0;
|
||||
z-index: @zindex-dropdown;
|
||||
background: @selectize-color-dropdown;
|
||||
border: var(--1px) solid var(--dropdown-border);
|
||||
.selectize-box-shadow(0 6px 12px rgba(0,0,0,.175));
|
||||
}
|
||||
|
||||
.selectize-dropdown {
|
||||
.optgroup-header {
|
||||
line-height: var(--line-height-base);
|
||||
}
|
||||
.optgroup:first-child:before {
|
||||
display: none;
|
||||
}
|
||||
.optgroup:before {
|
||||
content: ' ';
|
||||
display: block;
|
||||
.nav-divider();
|
||||
margin-left: calc(0rem - var(--padding-base-horizontal));
|
||||
margin-right: calc(0rem - var(--padding-base-horizontal));
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-dropdown-content {
|
||||
padding: var(--5px) 0;
|
||||
|
||||
.create {
|
||||
padding: 0 var(--8px);
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-dropdown-header {
|
||||
padding: calc(var(--3px) * 2 * var(--padding-base-horizontal));
|
||||
}
|
||||
|
||||
.selectize-input {
|
||||
min-height: var(--input-height-base);
|
||||
|
||||
&.dropdown-active::before {
|
||||
display: none;
|
||||
}
|
||||
&.focus {
|
||||
// @todo Use variable together with inputs.
|
||||
.selectize-box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px var(--input-border-focus-rgba)");
|
||||
}
|
||||
}
|
||||
|
||||
.has-error .selectize-input {
|
||||
border-color: @selectize-color-input-error;
|
||||
.selectize-box-shadow(@selectize-shadow-input-error);
|
||||
|
||||
&:focus {
|
||||
border-color: @selectize-color-input-error-focus;
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-control {
|
||||
&.multi {
|
||||
.selectize-input.has-items {
|
||||
padding-left: calc(var(--padding-base-horizontal) - var(--3px));
|
||||
padding-right: calc(var(--padding-base-horizontal) - var(--3px));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-control.selectize-control {
|
||||
padding: 0;
|
||||
height: auto;
|
||||
border: none;
|
||||
background: none;
|
||||
.selectize-box-shadow(none);
|
||||
.selectize-border-radius(0);
|
||||
}
|
||||
|
||||
.selectize-control.plugin-drag_drop {
|
||||
&.multi > .selectize-input > div.ui-sortable-placeholder {
|
||||
background: transparent !important;
|
||||
outline: var(--1px) solid var(--input-border-focus) !important;
|
||||
}
|
||||
}
|
||||
290
frontend/less/espo/misc/selectize/selectize.less
Normal file
290
frontend/less/espo/misc/selectize/selectize.less
Normal file
@@ -0,0 +1,290 @@
|
||||
@import "plugins/drag_drop";
|
||||
@import "plugins/dropdown_header";
|
||||
@import "plugins/optgroup_columns";
|
||||
@import "plugins/remove_button";
|
||||
|
||||
// base styles
|
||||
|
||||
//@selectize-color-text: #303030;
|
||||
@selectize-color-border: #d0d0d0;
|
||||
@selectize-color-highlight: rgba(125,168,208,0.2);
|
||||
@selectize-color-input: #fff;
|
||||
@selectize-color-input-full: @selectize-color-input;
|
||||
@selectize-color-disabled: #fafafa;
|
||||
//@selectize-color-item: #f2f2f2;
|
||||
@selectize-color-item-text: @selectize-color-text;
|
||||
@selectize-color-item-border: #d0d0d0;
|
||||
//@selectize-color-item-active: #e8e8e8;
|
||||
//@selectize-color-item-active-text: @selectize-color-text;
|
||||
@selectize-color-item-active-border: #cacaca;
|
||||
@selectize-color-dropdown: #fff;
|
||||
@selectize-color-dropdown-border: @selectize-color-border;
|
||||
@selectize-color-dropdown-border-top: #f0f0f0;
|
||||
@selectize-color-dropdown-item-active: #f5fafd;
|
||||
@selectize-color-dropdown-item-active-text: #495c68;
|
||||
@selectize-color-dropdown-item-create-text: var(--state-danger-text);
|
||||
@selectize-color-dropdown-item-create-active-text: @selectize-color-dropdown-item-active-text;
|
||||
@selectize-color-optgroup: @selectize-color-dropdown;
|
||||
@selectize-color-optgroup-text: @selectize-color-text;
|
||||
@selectize-lighten-disabled-item: 30%;
|
||||
@selectize-lighten-disabled-item-text: 30%;
|
||||
@selectize-lighten-disabled-item-border: 30%;
|
||||
@selectize-opacity-disabled: 0.5;
|
||||
|
||||
@selectize-shadow-input: inset 0 1px 1px rgba(0,0,0,0.1);
|
||||
@selectize-shadow-input-focus: inset 0 1px 2px rgba(0,0,0,0.15);
|
||||
@selectize-border: 1px solid @selectize-color-border;
|
||||
@selectize-dropdown-border: 1px solid @selectize-color-dropdown-border;
|
||||
|
||||
@selectize-width-item-border: 0;
|
||||
@selectize-max-height-dropdown: 200px;
|
||||
|
||||
@selectize-padding-x: 8px;
|
||||
@selectize-padding-y: 8px;
|
||||
@selectize-padding-item-x: 6px;
|
||||
@selectize-padding-item-y: 2px;
|
||||
@selectize-padding-dropdown-item-x: @selectize-padding-x;
|
||||
@selectize-padding-dropdown-item-y: 5px;
|
||||
@selectize-margin-item-x: 3px;
|
||||
@selectize-margin-item-y: 3px;
|
||||
|
||||
@selectize-arrow-size: 5px;
|
||||
@selectize-arrow-color: #808080;
|
||||
@selectize-arrow-offset: 15px;
|
||||
|
||||
@selectize-caret-margin: 0 2px 0 0;
|
||||
@selectize-caret-margin-rtl: 0 4px 0 -2px;
|
||||
|
||||
.selectize-border-radius (@radii) {
|
||||
-webkit-border-radius: @radii;
|
||||
-moz-border-radius: @radii;
|
||||
border-radius: @radii;
|
||||
}
|
||||
.selectize-unselectable () {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.selectize-box-shadow (@shadow) {
|
||||
box-shadow: @shadow;
|
||||
}
|
||||
.selectize-box-sizing (@type: border-box) {
|
||||
box-sizing: @type;
|
||||
}
|
||||
.selectize-vertical-gradient (@color-top, @color-bottom) {
|
||||
background-color: mix(@color-top, @color-bottom, 60%);
|
||||
background-image: -moz-linear-gradient(top, @color-top, @color-bottom); // FF 3.6+
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@color-top), to(@color-bottom)); // Safari 4+, Chrome 2+
|
||||
background-image: -webkit-linear-gradient(top, @color-top, @color-bottom); // Safari 5.1+, Chrome 10+
|
||||
background-image: -o-linear-gradient(top, @color-top, @color-bottom); // Opera 11.10
|
||||
background-image: linear-gradient(to bottom, @color-top, @color-bottom); // Standard, IE10
|
||||
background-repeat: repeat-x;
|
||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@color-top),argb(@color-bottom))); // IE9 and down
|
||||
}
|
||||
|
||||
.selectize-control {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.selectize-dropdown, .selectize-input, .selectize-input input {
|
||||
color: @selectize-color-text;
|
||||
line-height: @selectize-line-height;
|
||||
}
|
||||
|
||||
.selectize-input, .selectize-control.single .selectize-input.input-active {
|
||||
background: @selectize-color-input;
|
||||
cursor: text;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.selectize-input {
|
||||
border: @selectize-border;
|
||||
padding: @selectize-padding-y @selectize-padding-x;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
.selectize-box-sizing(border-box);
|
||||
.selectize-box-shadow(@selectize-shadow-input);
|
||||
|
||||
.selectize-control.multi &.has-items {
|
||||
@padding-x: @selectize-padding-x;
|
||||
|
||||
@padding-top: calc(var(--padding-base-vertical) - var(--1px));
|
||||
@padding-bottom: calc(var(--padding-base-vertical) - var(--1px) - var(--3px));
|
||||
|
||||
padding: @padding-top @padding-x @padding-bottom;
|
||||
}
|
||||
|
||||
&.full {
|
||||
background-color: @selectize-color-input-full;
|
||||
}
|
||||
&.disabled, &.disabled * {
|
||||
cursor: default !important;
|
||||
}
|
||||
&.focus {
|
||||
.selectize-box-shadow(@selectize-shadow-input-focus);
|
||||
}
|
||||
|
||||
> * {
|
||||
vertical-align: baseline;
|
||||
display: -moz-inline-stack;
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
.selectize-control.multi & > div {
|
||||
cursor: pointer;
|
||||
margin: 0 @selectize-margin-item-x @selectize-margin-item-y 0;
|
||||
padding: @selectize-padding-item-y @selectize-padding-item-x;
|
||||
background: @selectize-color-item;
|
||||
color: @selectize-color-item-text;
|
||||
border: @selectize-width-item-border solid @selectize-color-item-border;
|
||||
|
||||
&.active {
|
||||
background: @selectize-color-item-active;
|
||||
color: @selectize-color-item-active-text;
|
||||
border: @selectize-width-item-border solid @selectize-color-item-active-border;
|
||||
}
|
||||
}
|
||||
/*.selectize-control.multi &.disabled > div {
|
||||
&, &.active {
|
||||
color: lighten(desaturate(@selectize-color-item-text, 100%), @selectize-lighten-disabled-item-text);
|
||||
background: lighten(desaturate(@selectize-color-item, 100%), @selectize-lighten-disabled-item);
|
||||
border: @selectize-width-item-border solid lighten(desaturate(@selectize-color-item-border, 100%), @selectize-lighten-disabled-item-border);
|
||||
}
|
||||
}*/
|
||||
> input {
|
||||
&::-ms-clear {
|
||||
display: none;
|
||||
}
|
||||
display: inline-block !important;
|
||||
padding: 0 !important;
|
||||
min-height: 0 !important;
|
||||
max-height: none !important;
|
||||
max-width: 100% !important;
|
||||
margin: @selectize-caret-margin !important;
|
||||
text-indent: 0 !important;
|
||||
border: 0 none !important;
|
||||
background: none !important;
|
||||
line-height: inherit !important;
|
||||
-webkit-user-select: auto !important;
|
||||
.selectize-box-shadow(none) !important;
|
||||
&:focus { outline: none !important; }
|
||||
&[placeholder] {
|
||||
box-sizing: initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-input::after {
|
||||
content: ' ';
|
||||
display: block;
|
||||
clear: left;
|
||||
}
|
||||
|
||||
.selectize-input.dropdown-active::before {
|
||||
content: ' ';
|
||||
display: block;
|
||||
position: absolute;
|
||||
background: @selectize-color-dropdown-border-top;
|
||||
height: 1px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.selectize-dropdown {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
border: @selectize-dropdown-border;
|
||||
background: @selectize-color-dropdown;
|
||||
margin: -1px 0 0 0;
|
||||
border-top: 0 none;
|
||||
.selectize-box-sizing(border-box);
|
||||
|
||||
[data-selectable] {
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
.highlight {
|
||||
background: @selectize-color-highlight;
|
||||
.selectize-border-radius(1px);
|
||||
}
|
||||
}
|
||||
.option, .optgroup-header {
|
||||
padding: @selectize-padding-dropdown-item-y @selectize-padding-dropdown-item-x;
|
||||
}
|
||||
.option, [data-disabled], [data-disabled] [data-selectable].option {
|
||||
cursor: inherit;
|
||||
opacity: 0.5;
|
||||
}
|
||||
[data-selectable].option {
|
||||
opacity: 1;
|
||||
}
|
||||
.optgroup:first-child .optgroup-header {
|
||||
border-top: 0 none;
|
||||
}
|
||||
.optgroup-header {
|
||||
color: @selectize-color-optgroup-text;
|
||||
background: @selectize-color-optgroup;
|
||||
cursor: default;
|
||||
}
|
||||
.active {
|
||||
background-color: @selectize-color-dropdown-item-active;
|
||||
color: @selectize-color-dropdown-item-active-text;
|
||||
&.create {
|
||||
color: @selectize-color-dropdown-item-create-active-text;
|
||||
}
|
||||
}
|
||||
.create {
|
||||
color: @selectize-color-dropdown-item-create-text;
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-dropdown-content {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
max-height: @selectize-max-height-dropdown;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.selectize-control.single .selectize-input {
|
||||
&, input { cursor: pointer; }
|
||||
&.input-active, &.input-active input { cursor: text; }
|
||||
|
||||
/*&:after {
|
||||
content: ' ';
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: @selectize-arrow-offset;
|
||||
margin-top: round((-1 * @selectize-arrow-size / 2));
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-style: solid;
|
||||
border-width: @selectize-arrow-size @selectize-arrow-size 0 @selectize-arrow-size;
|
||||
border-color: @selectize-arrow-color transparent transparent transparent;
|
||||
}
|
||||
&.dropdown-active:after {
|
||||
margin-top: @selectize-arrow-size * -0.8;
|
||||
border-width: 0 @selectize-arrow-size @selectize-arrow-size @selectize-arrow-size;
|
||||
border-color: transparent transparent @selectize-arrow-color transparent;
|
||||
}*/
|
||||
}
|
||||
|
||||
.selectize-control.rtl {
|
||||
/*&.single .selectize-input:after {
|
||||
left: @selectize-arrow-offset;
|
||||
right: auto;
|
||||
}*/
|
||||
.selectize-input > input {
|
||||
margin: @selectize-caret-margin-rtl !important;
|
||||
}
|
||||
}
|
||||
|
||||
.selectize-control .selectize-input.disabled {
|
||||
opacity: @selectize-opacity-disabled;
|
||||
background-color: @selectize-color-disabled;
|
||||
}
|
||||
Reference in New Issue
Block a user