130 lines
3.4 KiB
SCSS
130 lines
3.4 KiB
SCSS
@import "effects";
|
|
|
|
vn-table {
|
|
display: block;
|
|
overflow: auto;
|
|
width: 100%;
|
|
|
|
& > div {
|
|
width: inherit;
|
|
display: table;
|
|
border-collapse: collapse;
|
|
|
|
vn-thead {
|
|
display: table-header-group;
|
|
|
|
vn-th[field] {
|
|
position: relative;
|
|
cursor: pointer
|
|
}
|
|
vn-th[field] > * {
|
|
padding-right: 20px
|
|
}
|
|
vn-th[field] > :after {
|
|
font-family: 'Material Icons';
|
|
content: 'arrow_drop_down';
|
|
position: absolute;
|
|
padding-left: 2px;
|
|
color: $color-spacer;
|
|
opacity: 0
|
|
}
|
|
vn-th[field] > :hover:after {
|
|
opacity: 1
|
|
}
|
|
vn-th[field].active > :after {
|
|
color: $color-font;
|
|
opacity: 1
|
|
}
|
|
vn-th[field].desc > :after {
|
|
content: 'arrow_drop_down';
|
|
}
|
|
vn-th[field].asc > :after {
|
|
content: 'arrow_drop_up';
|
|
}
|
|
}
|
|
vn-tbody {
|
|
display: table-row-group
|
|
}
|
|
vn-tfoot {
|
|
display: table-footer-group
|
|
}
|
|
vn-tr, a.vn-tr {
|
|
display: table-row
|
|
}
|
|
vn-empty-rows {
|
|
display: table-caption;
|
|
caption-side: bottom;
|
|
text-align: center;
|
|
padding: 10px
|
|
}
|
|
vn-thead, vn-tbody, vn-tfoot {
|
|
vn-tr, a.vn-tr {
|
|
display: table-row;
|
|
|
|
vn-th {
|
|
font-weight: bold
|
|
}
|
|
vn-td, vn-th, vn-td-editable {
|
|
vertical-align: middle;
|
|
display: table-cell;
|
|
text-align: left;
|
|
padding: 10px;
|
|
|
|
&[number] {
|
|
text-align: right;
|
|
}
|
|
&[center] {
|
|
text-align: center;
|
|
}
|
|
vn-icon.bright, i.bright {
|
|
color: #f7931e;
|
|
}
|
|
}
|
|
}
|
|
a.vn-tr {
|
|
color: inherit;
|
|
}
|
|
}
|
|
vn-thead, vn-tbody, vn-empty-rows {
|
|
border-bottom: 3px solid $color-spacer;
|
|
}
|
|
vn-tbody > vn-tr, vn-tbody > a.vn-tr{
|
|
border-bottom: 1px solid $color-spacer;
|
|
transition: background-color 200ms ease-in-out;
|
|
|
|
&.clickable {
|
|
@extend %clickable;
|
|
}
|
|
&.success, & > vn-td.success, & > vn-td-editable.success {
|
|
background-color: rgba(163, 209, 49, 0.3);
|
|
|
|
&:hover {
|
|
background-color: rgba(163, 209, 49, 0.5);
|
|
}
|
|
}
|
|
&.warning, & > vn-td.warning, & > vn-td-editable.warning {
|
|
background-color: rgba(247, 147, 30, 0.3);
|
|
|
|
&:hover {
|
|
background-color: rgba(247, 147, 30, 0.5);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
vn-autocomplete {
|
|
div.mdl-textfield {
|
|
padding: 0px !important;
|
|
}
|
|
label.mdl-textfield__label:after {
|
|
bottom: 0;
|
|
}
|
|
div.icons {
|
|
display: none !important;
|
|
}
|
|
}
|
|
vn-textfield {
|
|
max-width: 100px;
|
|
float: right;
|
|
margin: 0!important;
|
|
}
|
|
} |