158 lines
2.9 KiB
SCSS
158 lines
2.9 KiB
SCSS
@import "effects";
|
|
@import "variables";
|
|
|
|
smart-table {
|
|
th[field] {
|
|
overflow: visible;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
|
|
}
|
|
th[field][number] {
|
|
& > span:before {
|
|
vertical-align: middle;
|
|
font-family: 'Material Icons';
|
|
content: 'arrow_downward';
|
|
color: $color-spacer;
|
|
margin-right: 2px;
|
|
opacity: 0
|
|
|
|
}
|
|
|
|
&.asc > span:before, &.desc > span:before {
|
|
color: $color-font;
|
|
opacity: 1;
|
|
}
|
|
|
|
&.asc > span:before {
|
|
content: 'arrow_upward';
|
|
}
|
|
|
|
&.desc > span:before {
|
|
content: 'arrow_downward';
|
|
}
|
|
|
|
&:hover > span:before {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
th[field]:not([number]) {
|
|
& > span:after {
|
|
vertical-align: middle;
|
|
font-family: 'Material Icons';
|
|
content: 'arrow_downward';
|
|
color: $color-spacer;
|
|
margin-left: 2px;
|
|
opacity: 0
|
|
|
|
}
|
|
|
|
&.asc > span:after, &.desc > span:after {
|
|
color: $color-font;
|
|
opacity: 1;
|
|
}
|
|
|
|
&.asc > span:after {
|
|
content: 'arrow_upward';
|
|
}
|
|
|
|
&.desc > span:after {
|
|
content: 'arrow_downward';
|
|
}
|
|
|
|
&:hover > span:after {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
tr[vn-anchor] {
|
|
@extend %clickable;
|
|
}
|
|
|
|
.totalRows {
|
|
color: $color-font-secondary;
|
|
}
|
|
|
|
.actions-left,
|
|
.actions-right {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.button-group {
|
|
display: flex;
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .3);
|
|
|
|
& > vn-button {
|
|
box-shadow: 0 0 0 0
|
|
}
|
|
}
|
|
}
|
|
|
|
.actions-left {
|
|
justify-content: flex-start;
|
|
|
|
slot-actions > vn-button,
|
|
& > vn-button,
|
|
.button-group {
|
|
margin-right: 10px
|
|
}
|
|
|
|
slot-actions {
|
|
display: flex
|
|
}
|
|
}
|
|
|
|
.actions-right {
|
|
justify-content: flex-end;
|
|
& > vn-button,
|
|
.button-group {
|
|
margin-left: 10px
|
|
}
|
|
}
|
|
|
|
#table {
|
|
overflow-x: auto;
|
|
margin-top: 15px
|
|
}
|
|
|
|
vn-tbody a[ng-repeat].vn-tr:focus {
|
|
background-color: $color-primary-light
|
|
}
|
|
|
|
.new-row {
|
|
background-color: $color-success-light
|
|
}
|
|
|
|
.changed-row {
|
|
background-color: $color-primary-light
|
|
}
|
|
}
|
|
|
|
.smart-table-columns {
|
|
h6 {
|
|
color: $color-font-secondary
|
|
}
|
|
|
|
& > vn-horizontal {
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
vn-check {
|
|
flex: initial;
|
|
width: 33%
|
|
}
|
|
}
|
|
.sort-priority {
|
|
background-color: $color-font-bg-marginal;
|
|
border-radius: 50%;
|
|
padding: 2px 5px;
|
|
display: inline-block;
|
|
text-align: center;
|
|
width: 7px;
|
|
height: 13px;
|
|
|
|
font-size: 10px;
|
|
color: $color-font-bg
|
|
} |