158 lines
3.7 KiB
SCSS
158 lines
3.7 KiB
SCSS
@import "effects";
|
|
@import "variables";
|
|
|
|
vn-table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
}
|
|
.vn-table {
|
|
width: 100%;
|
|
display: table;
|
|
border-collapse: collapse;
|
|
|
|
& > vn-thead,
|
|
& > thead {
|
|
display: table-header-group;
|
|
border-bottom: 2px solid $color-spacer;
|
|
|
|
& > * > th {
|
|
font-weight: normal;
|
|
}
|
|
& > * > vn-th[field] {
|
|
position: relative;
|
|
overflow: visible;
|
|
cursor: pointer
|
|
}
|
|
}
|
|
& > vn-tbody,
|
|
& > tbody {
|
|
display: table-row-group;
|
|
}
|
|
& > vn-tfoot,
|
|
& > tfoot {
|
|
border-top: 2px solid $color-spacer;
|
|
display: table-footer-group
|
|
}
|
|
& > * > vn-tr,
|
|
& > * > a.vn-tr,
|
|
& > * > tr {
|
|
display: table-row;
|
|
height: 48px;
|
|
}
|
|
vn-thead, vn-tbody, vn-tfoot,
|
|
thead, tbody, tfoot {
|
|
& > * {
|
|
display: table-row;
|
|
|
|
& > vn-th,
|
|
& > th {
|
|
color: $color-font-light;
|
|
padding-top: 16px;
|
|
padding-bottom: 12px;
|
|
}
|
|
& > vn-th,
|
|
& > vn-td,
|
|
& > th,
|
|
& > td {
|
|
overflow: hidden;
|
|
}
|
|
& > vn-th,
|
|
& > vn-td,
|
|
& > vn-td-editable,
|
|
& > th,
|
|
& > td {
|
|
vertical-align: middle;
|
|
display: table-cell;
|
|
text-align: left;
|
|
padding: 9px 8px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
max-width: 80px;
|
|
|
|
&[number] {
|
|
text-align: right;
|
|
width: 96px;
|
|
}
|
|
&[center] {
|
|
text-align: center;
|
|
}
|
|
&[shrink] {
|
|
width: 1px;
|
|
text-align: center;
|
|
}
|
|
&[expand] {
|
|
max-width: 400px;
|
|
min-width: 0;
|
|
}
|
|
vn-icon.bright, i.bright {
|
|
color: #f7931e;
|
|
}
|
|
}
|
|
& > :last-child {
|
|
padding-right: 22px;
|
|
}
|
|
& > :first-child {
|
|
padding-left: 22px;
|
|
}
|
|
}
|
|
& > a.vn-tr {
|
|
color: inherit;
|
|
}
|
|
}
|
|
vn-tbody > *,
|
|
tbody > * {
|
|
border-bottom: 1px solid $color-spacer-light;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
&.clickable {
|
|
@extend %clickable;
|
|
}
|
|
& > vn-td,
|
|
& > td {
|
|
.chip {
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
color: $color-font-bg;
|
|
|
|
&.notice {
|
|
background-color: $color-notice-medium
|
|
}
|
|
&.success {
|
|
background-color: $color-success-medium;
|
|
}
|
|
&.warning {
|
|
background-color: $color-main-medium;
|
|
}
|
|
&.alert {
|
|
background-color: $color-alert-medium;
|
|
}
|
|
&.message {
|
|
color: $color-font-dark;
|
|
background-color: $color-bg-dark
|
|
}
|
|
}
|
|
vn-icon-menu {
|
|
display: inline-block;
|
|
color: $color-main;
|
|
padding: 4px
|
|
}
|
|
}
|
|
& > [actions] {
|
|
width: 1px;
|
|
|
|
& > * {
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
.vn-textfield {
|
|
float: right;
|
|
margin: 0!important;
|
|
}
|
|
.vn-check {
|
|
margin: 0;
|
|
}
|
|
} |