vue-material/src/components/mdTable/mdTable.scss

176 lines
2.8 KiB
SCSS
Raw Normal View History

2016-10-25 12:59:36 +00:00
@import '../../core/stylesheets/variables.scss';
.md-table {
2016-10-25 23:10:04 +00:00
display: flex;
flex-flow: column wrap;
2016-10-26 03:58:35 +00:00
&.md-transition-off {
tr,
.md-checkbox .md-checkbox-container,
.md-checkbox .md-checkbox-container:after {
transition: none !important;
}
}
2016-10-26 03:58:35 +00:00
table {
width: 100%;
border-spacing: 0;
border-collapse: collapse;
}
tbody tr {
border-top: 1px solid #e0e0e0;
2016-10-27 05:52:58 +00:00
&.md-selected .md-table-cell {
2016-10-26 03:58:35 +00:00
background-color: #f5f5f5;
}
2016-10-27 05:52:58 +00:00
&:hover .md-table-cell {
background-color: #eee;
2016-10-26 03:58:35 +00:00
}
}
2016-10-27 05:52:58 +00:00
.md-table-head {
2016-10-26 03:58:35 +00:00
height: 56px;
2016-10-27 05:52:58 +00:00
padding: 0;
2016-10-26 03:58:35 +00:00
position: relative;
overflow: hidden;
color: rgba(#000, .54);
font-size: 12px;
line-height: 16px;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
2016-10-27 05:52:58 +00:00
&:last-child .md-table-head-container {
padding-right: 24px;
}
}
.md-table-head-container {
height: 100%;
padding-right: 32px;
padding-left: 24px;
display: flex;
align-items: center;
transition: $swift-ease-out;
}
.md-sortable {
cursor: pointer;
&:first-of-type {
.md-icon {
left: auto;
right: 10px;
}
}
&:hover,
&.md-sorted {
2016-10-27 05:54:20 +00:00
color: rgba(#000, .87);
2016-10-27 05:52:58 +00:00
.md-icon {
opacity: 1;
}
}
&.md-sorted {
.md-icon {
color: rgba(#000, .87);
}
}
&.md-sorted-descending {
.md-icon {
transform: translateY(-50%) rotate(180deg);
}
}
.md-icon {
$size: 16px;
width: $size;
min-width: $size;
height: $size;
min-height: $size;
position: absolute;
top: 50%;
left: 2px;
transition: $swift-ease-out;
transform: translateY(-50%);
opacity: 0;
color: rgba(#000, .38);
font-size: $size;
}
.md-ink-ripple {
color: rgba(#000, .87);
}
2016-10-26 03:58:35 +00:00
}
2016-10-27 05:52:58 +00:00
.md-table-cell {
2016-10-26 03:58:35 +00:00
height: 48px;
2016-10-27 05:52:58 +00:00
transition: $swift-ease-out;
2016-10-26 03:58:35 +00:00
color: rgba(#000, .87);
font-size: 13px;
line-height: 18px;
2016-10-27 05:52:58 +00:00
&:last-child .md-table-cell-container {
padding-right: 24px;
}
.md-table-cell-container {
padding: 0 24px 0 32px;
}
&.md-numeric {
text-align: right;
}
2016-10-26 03:58:35 +00:00
}
.md-table-selection {
width: 20px;
2016-10-27 05:52:58 +00:00
position: relative;
2016-10-26 03:58:35 +00:00
vertical-align: middle;
2016-10-27 05:52:58 +00:00
+ {
.md-table-cell .md-table-cell-container,
.md-table-head .md-table-head-container {
padding-left: 8px;
}
}
.md-table-cell-container {
padding-right: 16px;
padding-left: 24px;
}
2016-10-26 03:58:35 +00:00
.md-checkbox {
margin: 3px 0 0;
}
.md-checkbox-container {
width: 18px;
height: 18px;
&:after {
top: -1px;
left: 4px
}
}
}
}
.md-table-card {
.md-toolbar {
padding-left: 16px;
background-color: #fff;
}
.md-title {
flex: 1;
font-size: 20px;
}
2016-10-25 12:59:36 +00:00
}