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

86 lines
1.5 KiB
Plaintext
Raw Normal View History

.treeview {
2020-09-27 11:39:29 +00:00
border: 1px solid @input-border;
.border-radius(@border-radius-small);
2017-12-20 11:09:31 +00:00
&.inner {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
.empty-text {
text-align: center;
height: 100%;
width: 100%;
2021-02-16 07:21:22 +00:00
color: @text-tertiary-ie;
2020-12-19 19:43:19 +00:00
color: @text-tertiary;
td {
padding: 5px;
}
2017-12-20 11:09:31 +00:00
}
}
&:focus {
2021-02-16 07:21:22 +00:00
border-color: @border-preview-select-ie;
2020-12-19 19:43:19 +00:00
border-color: @border-preview-select;
}
2017-12-20 11:09:31 +00:00
> .item {
display: block;
width: 100%;
.box-shadow(none);
margin: 0;
&:hover,
&.over {
2021-02-16 07:21:22 +00:00
background-color: @highlight-button-hover-ie;
2020-12-19 19:43:19 +00:00
background-color: @highlight-button-hover;
}
2017-12-21 12:01:37 +00:00
&.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;
color: @text-normal-pressed-ie;
color: @text-normal-pressed;
}
2017-12-21 12:01:37 +00:00
&.selected .empty {
display: none;
}
}
.tree-item {
width: 100%;
2017-12-21 10:56:48 +00:00
min-height: 28px;
padding: 0px 6px 0 24px;
}
.name {
width: 100%;
2017-12-21 10:56:48 +00:00
padding: 5px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2017-12-21 12:01:37 +00:00
&.empty {
2021-02-16 07:21:22 +00:00
color: @text-tertiary-ie;
2020-12-19 19:43:19 +00:00
color: @text-tertiary;
2017-12-21 12:01:37 +00:00
font-style: italic;
}
}
.tree-caret {
2017-12-21 10:56:48 +00:00
width: 24px;
height: 24px;
background-position: 3px -270px;
display: inline-block;
position: absolute;
left: 0;
cursor: pointer;
&.up {
transform: rotate(270deg);
}
}
}