web-apps/apps/common/main/resources/less/dataview.less
2021-03-01 00:29:00 +03:00

87 lines
2.2 KiB
Plaintext

.dataview {
&.inner {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
.empty-text {
text-align: center;
height: 100%;
width: 100%;
color: @text-tertiary-ie;
color: @text-tertiary;
td {
padding: 5px;
}
}
}
> .item {
display: inline-block;
float: left;
margin: 4px;
cursor: pointer;
.box-shadow(0 0 0 @scaled-one-px-value-ie @border-regular-control-ie);
.box-shadow(0 0 0 @scaled-one-px-value @border-regular-control);
&:hover,
&.selected {
.box-shadow(0 0 0 2px @border-preview-select-ie);
.box-shadow(0 0 0 @scaled-two-px-value @border-preview-select);
}
}
.grouped-data {
clear: left;
overflow: hidden;
&.inline {
display: inline-block;
&.margin .group-items-container {
margin-right: 20px;
}
}
.group-items-container {
overflow: hidden;
margin-bottom: 5px;
& > div {
display: inline-block;
float: left;
margin: 2px 4px 4px;
&:not(.disabled) {
cursor: pointer;
}
&.disabled {
opacity: @component-disabled-opacity;
}
.box-shadow(0 0 0 @scaled-one-px-value-ie @border-regular-control-ie);
.box-shadow(0 0 0 @scaled-one-px-value @border-regular-control);
&:hover:not(.disabled),
&.selected:not(.disabled) {
.box-shadow(0 0 0 2px @highlight-button-pressed-ie);
.box-shadow(0 0 0 @scaled-two-px-value @highlight-button-pressed);
}
}
}
}
.header-name {
padding: 10px 2px 12px 4px;
font-weight: bold;
cursor: default;
}
&.bordered {
border: @scaled-one-px-value-ie solid @input-border;
border: @scaled-one-px-value solid @input-border;
.border-radius(@border-radius-small);
}
}