web-apps/apps/common/main/resources/less/combobox.less

166 lines
4.2 KiB
Plaintext
Raw Normal View History

@img-borders-filter: var(--image-border-types-filter);
@img-borders-filter-selected: var(--image-border-types-filter-selected);
2016-03-11 00:48:53 +00:00
.combobox {
display: block;
&.input-group-sm .btn { .input-sm(); }
&.input-group-lg .btn { .input-lg(); }
&.input-group-nr > .form-control,
&.input-group-nr > .btn {
height: @input-height-base;
padding: @padding-base-vertical @padding-base-horizontal;
font-size: @font-size-base;
line-height: @line-height-base;
-o-transition: border-color ease-in-out .15s;
-webkit-transition: border-color ease-in-out .15s;
-moz-transition: border-color ease-in-out .15s;
transition: border-color ease-in-out .15s;
border-top-right-radius: 2px !important;
border-bottom-right-radius: 2px !important;
2016-03-11 00:48:53 +00:00
}
&.input-group-nr > .form-control {
padding-right: 7px + 2 * @padding-base-horizontal;
}
.form-control {
border-right: 0;
position: static;
z-index: auto;
2016-11-03 10:41:44 +00:00
float: none;
.image {
-webkit-filter: @img-borders-filter;
filter: @img-borders-filter;
}
2016-03-11 00:48:53 +00:00
}
2020-12-21 10:33:16 +00:00
.btn {
2016-03-11 00:48:53 +00:00
border-left: 0;
2021-02-16 07:21:22 +00:00
border-color: @border-regular-control-ie;
2020-12-21 10:33:16 +00:00
border-color: @border-regular-control;
2016-03-11 00:48:53 +00:00
background-color: transparent;
margin-left: -1px;
position: absolute;
top: 0;
right: 0;
}
.btn-default:not(.disabled),
&.open .dropdown-toggle.btn-default {
2021-02-16 07:21:22 +00:00
background-color: @background-normal-ie;
background-color: @background-normal;
2021-02-16 07:21:22 +00:00
border-color: @border-regular-control-ie;
border-color: @border-regular-control;
2021-01-03 21:58:06 +00:00
padding-right: 4px;
2016-03-11 00:48:53 +00:00
}
2021-01-06 17:33:01 +00:00
.btn-default.disabled {
&:hover, &:focus {
background-color: transparent;
2021-02-16 07:21:22 +00:00
border-color: @border-regular-control-ie;
2021-01-06 17:33:01 +00:00
border-color: @border-regular-control;
}
2020-12-21 10:33:16 +00:00
}
2019-12-09 11:19:26 +00:00
&.input-group-nr.open:not(.no-highlighted) {
& > .form-control,
& > .btn {
2021-02-16 07:21:22 +00:00
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
2020-12-22 12:45:06 +00:00
.caret {
transform: rotate(45deg);
}
}
}
2019-12-09 11:19:26 +00:00
&.input-group-nr:not(.no-highlighted) > .form-control {
&:focus,
&:focus ~ button.dropdown-toggle {
2021-02-16 07:21:22 +00:00
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
2019-12-09 11:19:26 +00:00
}
}
2016-03-11 00:48:53 +00:00
li {
a {
white-space: pre;
}
&.selected {
2021-02-16 07:21:22 +00:00
background-color: @highlight-button-pressed-ie;
2020-12-19 19:43:19 +00:00
background-color: @highlight-button-pressed;
2016-03-11 00:48:53 +00:00
a {
2021-02-16 07:21:22 +00:00
color: @text-normal-pressed-ie;
color: @text-normal-pressed;
2016-03-11 00:48:53 +00:00
&:hover,
2016-03-16 12:48:39 +00:00
&.hover,
&:focus,
&.focus {
2021-02-16 07:21:22 +00:00
background-color: @highlight-button-pressed-ie;
2020-12-19 19:43:19 +00:00
background-color: @highlight-button-pressed;
2016-03-11 00:48:53 +00:00
}
}
}
}
// Font combobox
// ------------------------
li {
img {
-webkit-filter: @img-borders-filter;
filter: @img-borders-filter;
}
canvas {
-webkit-filter: @img-borders-filter;
filter: @img-borders-filter;
}
2016-03-11 00:48:53 +00:00
&.selected {
img {
-webkit-filter: @img-borders-filter-selected;
filter: @img-borders-filter-selected;
2016-03-11 00:48:53 +00:00
}
canvas {
-webkit-filter: @img-borders-filter-selected;
filter: @img-borders-filter-selected;
2016-03-11 00:48:53 +00:00
}
}
&.divider:first-child {
display: none;
}
}
.font-item {
vertical-align:middle;
margin: 0 0 0 -10px;
padding-top: 0;
padding-bottom: 0;
}
.dropdown-menu.menu-absolute {
position: fixed;
}
2020-11-17 21:38:48 +00:00
.dropdown-menu.show-top {
top: auto;
bottom: 100%;
}
2016-03-11 00:48:53 +00:00
}
2019-12-09 11:19:26 +00:00
.open > .combobox.combo-dataview-menu {
&.input-group-nr:not(.no-highlighted) {
& > .form-control,
& > .btn {
2021-02-16 07:21:22 +00:00
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
2019-12-09 11:19:26 +00:00
}
}
}