2018-06-28 12:43:59 +00:00
|
|
|
@import "effects";
|
|
|
|
|
|
|
|
vn-table {
|
2019-01-27 23:26:01 +00:00
|
|
|
display: block;
|
|
|
|
overflow: auto;
|
2018-06-28 12:43:59 +00:00
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
& > div {
|
2019-01-27 23:26:01 +00:00
|
|
|
width: inherit;
|
2018-06-28 12:43:59 +00:00
|
|
|
display: table;
|
2019-01-27 23:26:01 +00:00
|
|
|
border-collapse: collapse;
|
2018-06-28 12:43:59 +00:00
|
|
|
|
|
|
|
vn-thead {
|
|
|
|
display: table-header-group;
|
|
|
|
|
|
|
|
vn-th[field] {
|
2018-07-03 12:57:08 +00:00
|
|
|
position: relative;
|
2018-06-28 12:43:59 +00:00
|
|
|
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: $lines;
|
|
|
|
opacity: 0
|
|
|
|
}
|
|
|
|
vn-th[field] > :hover:after {
|
|
|
|
opacity: 1
|
|
|
|
}
|
|
|
|
vn-th[field].active > :after {
|
|
|
|
color: $main-font-color;
|
|
|
|
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
|
|
|
|
}
|
2018-09-12 08:08:19 +00:00
|
|
|
vn-tr, a.vn-tr {
|
2018-06-28 12:43:59 +00:00
|
|
|
display: table-row
|
|
|
|
}
|
|
|
|
vn-empty-rows {
|
|
|
|
display: table-caption;
|
|
|
|
caption-side: bottom;
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px
|
|
|
|
}
|
2018-09-12 08:08:19 +00:00
|
|
|
vn-thead, vn-tbody, vn-tfoot {
|
|
|
|
vn-tr, a.vn-tr {
|
2018-06-28 12:43:59 +00:00
|
|
|
display: table-row;
|
|
|
|
|
|
|
|
vn-th {
|
|
|
|
font-weight: bold
|
|
|
|
}
|
|
|
|
vn-td, vn-th {
|
2018-07-16 06:00:04 +00:00
|
|
|
vertical-align: middle;
|
2018-06-28 12:43:59 +00:00
|
|
|
display: table-cell;
|
|
|
|
text-align: left;
|
|
|
|
padding: 10px;
|
|
|
|
|
2018-07-17 06:44:31 +00:00
|
|
|
&[number] {
|
2018-06-28 12:43:59 +00:00
|
|
|
text-align: right;
|
|
|
|
}
|
2018-07-17 06:44:31 +00:00
|
|
|
&[center] {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2018-07-03 12:57:08 +00:00
|
|
|
vn-icon.bright, i.bright {
|
|
|
|
color: #f7931e;
|
|
|
|
}
|
2018-06-28 12:43:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
vn-thead, vn-tbody, vn-empty-rows {
|
|
|
|
border-bottom: 3px solid $lines;
|
|
|
|
}
|
2018-12-21 06:53:04 +00:00
|
|
|
vn-tbody > vn-tr, vn-tbody > a.vn-tr{
|
2018-06-28 12:43:59 +00:00
|
|
|
border-bottom: 1px solid $lines;
|
|
|
|
transition: background-color 200ms ease-in-out;
|
|
|
|
|
|
|
|
&.clickable {
|
|
|
|
@extend %clickable;
|
|
|
|
}
|
2018-12-21 06:53:04 +00:00
|
|
|
&.success, & > vn-td.success {
|
2018-06-28 12:43:59 +00:00
|
|
|
background-color: rgba(163, 209, 49, 0.3);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(163, 209, 49, 0.5);
|
|
|
|
}
|
|
|
|
}
|
2018-12-21 06:53:04 +00:00
|
|
|
&.warning, & > vn-td.warning {
|
2018-06-28 12:43:59 +00:00
|
|
|
background-color: rgba(247, 147, 30, 0.3);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(247, 147, 30, 0.5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-20 08:22:07 +00:00
|
|
|
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;
|
|
|
|
}
|
2018-06-28 12:43:59 +00:00
|
|
|
}
|