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

176 lines
4.6 KiB
SCSS
Raw Normal View History

@import "effects";
2019-02-10 21:52:35 +00:00
@import "variables";
vn-table {
2019-01-27 23:26:01 +00:00
display: block;
overflow: auto;
width: 100%;
& > div {
2019-01-27 23:26:01 +00:00
width: inherit;
display: table;
2019-01-27 23:26:01 +00:00
border-collapse: collapse;
2019-02-10 21:52:35 +00:00
& > vn-thead {
display: table-header-group;
2019-02-10 21:52:35 +00:00
border-bottom: .15em solid $color-spacer;
2019-02-13 13:01:37 +00:00
& > * > vn-th[field] {
position: relative;
2019-02-10 21:52:35 +00:00
overflow: visible;
cursor: pointer;
&.active > :after {
color: $color-font;
opacity: 1;
}
&.desc > :after {
content: 'arrow_drop_down';
}
&.asc > :after {
content: 'arrow_drop_up';
}
& > :after {
font-family: 'Material Icons';
content: 'arrow_drop_down';
position: absolute;
color: $color-spacer;
opacity: 0;
}
&:hover > :after {
opacity: 1;
}
}
}
2019-02-10 21:52:35 +00:00
& > vn-tbody {
display: table-row-group;
}
2019-02-10 21:52:35 +00:00
& > vn-tfoot {
border-top: .15em solid $color-spacer;
display: table-footer-group
}
2019-02-13 13:01:37 +00:00
& > * > vn-tr,
& > * > a.vn-tr {
display: table-row
}
vn-thead, vn-tbody, vn-tfoot {
2019-02-10 21:52:35 +00:00
& > * {
display: table-row;
2019-02-13 13:01:37 +00:00
& > vn-th {
font-weight: bold;
padding-top: 1em;
padding-bottom: .8em;
}
2019-02-13 13:01:37 +00:00
& > vn-th,
& > vn-td,
& > vn-td-editable {
2018-07-16 06:00:04 +00:00
vertical-align: middle;
display: table-cell;
text-align: left;
2019-02-10 21:52:35 +00:00
padding: .6em .5em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2019-02-20 13:34:16 +00:00
max-width: 5em;
2018-07-17 06:44:31 +00:00
&[number] {
text-align: right;
2019-02-20 13:34:16 +00:00
width: 6em;
}
2018-07-17 06:44:31 +00:00
&[center] {
text-align: center;
}
2019-02-10 21:52:35 +00:00
&[shrink] {
width: 1px;
text-align: center;
}
&[expand] {
2019-02-20 13:34:16 +00:00
max-width: 10em;
2019-02-10 21:52:35 +00:00
min-width: 0;
}
vn-icon.bright, i.bright {
color: #f7931e;
}
}
2019-02-10 21:52:35 +00:00
& > :last-child {
padding-right: 1em;
}
& > :first-child {
padding-left: 1em;
}
}
2019-02-13 13:01:37 +00:00
& > a.vn-tr {
2019-02-08 16:49:51 +00:00
color: inherit;
}
}
2019-02-10 21:52:35 +00:00
vn-tbody > * {
border-bottom: .1em solid $color-spacer-light;
2019-02-10 21:52:35 +00:00
&:last-child {
border-bottom: none;
}
&.clickable {
@extend %clickable;
}
2019-05-21 10:56:29 +00:00
& > vn-td .chip {
2019-02-10 21:52:35 +00:00
padding: .3em;
border-radius: .3em;
}
2019-05-21 10:56:29 +00:00
& > vn-td .chip.notice {
2019-02-13 13:01:37 +00:00
color: $color-font-bg;
2019-05-21 10:56:29 +00:00
background-color: $color-notice-medium
2019-02-10 21:52:35 +00:00
}
2019-05-21 10:56:29 +00:00
& > vn-td .chip.success {
2019-02-13 13:01:37 +00:00
color: $color-font-bg;
2019-05-21 10:56:29 +00:00
background-color: $color-success-medium
2019-02-10 21:52:35 +00:00
}
2019-05-21 10:56:29 +00:00
& > vn-td .chip.warning {
2019-02-13 13:01:37 +00:00
color: $color-font-bg;
background-color: $color-main-medium;
2019-02-10 21:52:35 +00:00
}
2019-05-21 10:56:29 +00:00
& > vn-td .chip.alert {
2019-02-13 13:01:37 +00:00
color: $color-font-bg;
background-color: $color-alert-medium;
}
2019-05-21 10:56:29 +00:00
2019-02-13 13:01:37 +00:00
& > [actions] {
width: 1px;
& > * {
vertical-align: middle;
}
}
}
2019-02-13 13:01:37 +00:00
& > vn-empty-rows {
display: table-caption;
caption-side: bottom;
text-align: center;
padding: 1.5em;
width: 100%;
box-sizing: border-box;
}
2019-02-10 21:52:35 +00:00
}
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 {
float: right;
margin: 0!important;
}
2019-02-22 07:52:30 +00:00
md-checkbox {
margin: 0;
}
}