salix/front/core/components/table/style.scss

143 lines
3.3 KiB
SCSS
Raw Normal View History

@import "effects";
vn-table {
border-collapse: collapse;
display: table;
width: 100%;
& > div {
width: 100%;
display: table;
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: $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
}
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 {
2018-07-16 06:00:04 +00:00
vertical-align: middle;
display: table-cell;
text-align: left;
padding: 10px;
2018-07-17 06:44:31 +00:00
&[number] {
text-align: right;
}
2018-07-17 06:44:31 +00:00
&[center] {
text-align: center;
}
vn-icon.bright, i.bright {
color: #f7931e;
}
}
}
}
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{
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 {
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 {
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;
}
}