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

65 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-03-11 00:48:53 +00:00
.listview {
border: 1px solid @input-border;
&.inner {
width: 100%;
height: 100%;
max-height: 100%;
overflow: hidden;
position: relative;
.empty-text {
text-align: center;
width: 100%;
height: 100%;
color: #b2b2b2;
}
}
& > .item {
// display: block;
text-overflow: ellipsis;
padding: 3px 6px;
cursor: pointer;
white-space: pre-wrap;
background-color: @list-group-bg;
border-color: @list-group-border;
border-style: solid;
border-width: 1px 0;
border-top-color: #fafafa;
2017-10-11 12:21:31 +00:00
}
2016-03-11 00:48:53 +00:00
2017-10-11 12:21:31 +00:00
&:not(.disabled) > .item {
2016-03-11 00:48:53 +00:00
&:hover {
2017-10-11 12:21:31 +00:00
background-color: @secondary;
border-color: @secondary;
border-style: solid;
border-width: 1px 0;
2016-03-11 00:48:53 +00:00
}
&.selected {
2017-10-11 12:21:31 +00:00
background-color: @primary;
color: #fff;
border-color: @primary;
border-style: solid;
border-width: 1px 0;
2016-03-11 00:48:53 +00:00
}
}
&.ps-container {
overflow: hidden;
}
2017-10-11 12:21:31 +00:00
&.disabled {
> .item {
cursor: default;
opacity: 0.5;
}
}
2019-12-19 14:14:05 +00:00
}
.no-borders > .listview .item {
border-color: transparent;
border-top-color: transparent;
2016-03-11 00:48:53 +00:00
}