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

206 lines
4.9 KiB
Plaintext
Raw Normal View History

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;
2021-04-02 13:35:07 +00:00
-o-transition: none;
-webkit-transition: none;
-moz-transition: none;
transition: none;
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 {
2021-04-28 11:10:39 +00:00
-webkit-filter: @img-border-type-filter;
filter: @img-border-type-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-08-12 11:59:51 +00:00
border-top-left-radius: 0;
border-bottom-left-radius: 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-03-28 17:55:59 +00:00
padding-right: 5px;
2016-03-11 00:48:53 +00:00
}
2021-01-06 17:33:01 +00:00
.btn-default.disabled {
2021-04-02 13:35:07 +00:00
padding-right: 5px;
border-top-color: transparent;
border-bottom-color: transparent;
2021-01-06 17:33:01 +00:00
&:hover, &:focus {
background-color: transparent;
}
2020-12-21 10:33:16 +00:00
}
2021-04-19 12:48:26 +00:00
&.input-group-nr.open {
& > .form-control,
& > .btn {
2020-12-22 12:45:06 +00:00
.caret {
transform: rotate(45deg);
}
}
2021-04-19 12:48:26 +00:00
&:not(.no-highlighted) > .form-control,
&:not(.no-highlighted) > .btn {
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
}
}
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
}
}
2021-04-19 12:48:26 +00:00
&.input-group-nr.no-highlighted > .form-control {
&:focus,
&:focus ~ button.dropdown-toggle {
border-color: @border-regular-control-ie;
border-color: @border-regular-control;
}
}
2019-12-09 11:19:26 +00:00
2021-04-27 19:42:41 +00:00
&.input-group-nr {
.btn {
&:active {
.caret {
border-color: @icon-normal;
}
}
}
}
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 {
2021-04-28 11:10:39 +00:00
-webkit-filter: @img-border-type-filter;
filter: @img-border-type-filter;
}
canvas {
2021-04-28 11:10:39 +00:00
-webkit-filter: @img-border-type-filter;
filter: @img-border-type-filter;
}
2016-03-11 00:48:53 +00:00
&.selected {
img {
2021-04-28 11:10:39 +00:00
-webkit-filter: @img-border-type-filter-selected;
filter: @img-border-type-filter-selected;
2016-03-11 00:48:53 +00:00
}
canvas {
2021-04-28 11:10:39 +00:00
-webkit-filter: @img-border-type-filter-selected;
filter: @img-border-type-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%;
}
2021-04-02 11:13:37 +00:00
.masked & {
2021-04-02 12:23:05 +00:00
&.disabled {
.form-control, .btn-default {
2021-04-02 11:13:37 +00:00
opacity: 1;
}
}
}
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
}
}
2021-04-19 12:48:26 +00:00
&.input-group-nr {
& > .form-control,
& > .btn {
.caret {
transform: rotate(45deg);
}
}
}
}