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

177 lines
4.8 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-02-10 21:52:35 +00:00
& > vn-td > .chip {
padding: .3em;
border-radius: .3em;
}
2019-02-10 21:52:35 +00:00
&.notice,
& > .notice,
& > vn-td > .notice {
2019-02-13 13:01:37 +00:00
color: $color-font-bg;
background-color: $color-notice-medium;
2019-02-10 21:52:35 +00:00
}
&.success,
& > .success,
& > vn-td > .success {
2019-02-13 13:01:37 +00:00
color: $color-font-bg;
background-color: $color-success-medium;
2019-02-10 21:52:35 +00:00
}
&.warning,
& > .warning,
& > vn-td > .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
}
&.alert,
& > .alert,
& > vn-td > .alert {
2019-02-13 13:01:37 +00:00
color: $color-font-bg;
background-color: $color-alert-medium;
}
& > [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 {
max-width: 100px;
float: right;
margin: 0!important;
}
}