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

333 lines
5.5 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;
overflow: auto;
2016-10-26 03:58:35 +00:00
&.md-transition-off {
2016-11-01 04:44:30 +00:00
.md-table-cell,
.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;
2016-10-27 23:46:13 +00:00
overflow: hidden;
2016-10-26 03:58:35 +00:00
}
2016-11-01 04:44:30 +00:00
tbody .md-table-row {
2016-10-26 03:58:35 +00:00
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 {
padding: 0;
2016-10-26 03:58:35 +00:00
position: relative;
color: rgba(#000, .54);
font-size: 12px;
line-height: 16px;
text-align: left;
2016-10-27 05:52:58 +00:00
2016-10-27 13:46:40 +00:00
&:last-child .md-table-head-container .md-table-head-text {
2016-10-27 05:52:58 +00:00
padding-right: 24px;
}
2016-10-27 13:46:40 +00:00
&.md-numeric {
text-align: right;
}
.md-icon {
$size: 16px;
width: $size;
min-width: $size;
height: $size;
min-height: $size;
font-size: $size;
color: rgba(#000, .54);
&:not(.md-sortable-icon) {
margin: 0 4px;
}
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
}
2016-10-27 05:52:58 +00:00
}
.md-table-head-container {
2016-10-27 13:46:40 +00:00
height: 56px;
padding: 14px 0;
2016-10-27 05:52:58 +00:00
transition: $swift-ease-out;
}
.md-table-head-text {
height: 28px;
2016-10-27 13:46:40 +00:00
padding-right: 32px;
padding-left: 24px;
display: inline-block;
2016-10-27 13:46:40 +00:00
position: relative;
overflow: hidden;
line-height: 28px;
text-overflow: ellipsis;
white-space: nowrap;
2016-10-27 05:52:58 +00:00
}
.md-sortable {
cursor: pointer;
&:first-of-type {
2016-10-27 13:46:40 +00:00
.md-sortable-icon {
2016-10-27 05:52:58 +00:00
left: auto;
right: 10px;
}
}
&:hover,
&.md-sorted {
2016-10-27 05:54:20 +00:00
color: rgba(#000, .87);
2016-10-27 13:46:40 +00:00
.md-sortable-icon {
2016-10-27 05:52:58 +00:00
opacity: 1;
}
}
&.md-sorted {
2016-10-27 13:46:40 +00:00
.md-sortable-icon {
2016-10-27 05:52:58 +00:00
color: rgba(#000, .87);
}
}
&.md-sorted-descending {
2016-10-27 13:46:40 +00:00
.md-sortable-icon {
2016-10-27 05:52:58 +00:00
transform: translateY(-50%) rotate(180deg);
}
}
2016-10-27 13:46:40 +00:00
.md-sortable-icon {
2016-10-27 05:52:58 +00:00
position: absolute;
top: 50%;
left: 2px;
transition: $swift-ease-out;
transform: translateY(-50%);
opacity: 0;
color: rgba(#000, .38);
}
.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 13:46:40 +00:00
position: relative;
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;
}
2016-10-31 03:38:29 +00:00
&.md-numeric {
.md-table-cell-container {
justify-content: flex-end;
}
}
2016-10-27 05:52:58 +00:00
.md-table-cell-container {
padding: 0 32px 0 24px;
2016-10-31 03:38:29 +00:00
display: flex;
justify-content: space-between;
align-items: center;
2016-10-27 05:52:58 +00:00
}
2016-10-31 03:38:29 +00:00
.md-button {
$size: 36px;
width: $size;
min-width: $size;
height: $size;
min-height: $size;
&:last-child {
margin: 0 -10px 0 0;
}
.md-icon {
$size: 18px;
width: $size;
min-width: $size;
height: $size;
min-height: $size;
margin: 0;
color: rgba(#000, .54);
font-size: $size;
}
2016-10-27 05:52:58 +00:00
}
2016-10-26 03:58:35 +00:00
}
.md-table-selection {
width: 60px;
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,
2016-10-27 13:46:40 +00:00
.md-table-head .md-table-head-container .md-table-head-text {
2016-10-27 05:52:58 +00:00
padding-left: 8px;
}
}
.md-table-cell-container {
padding-right: 16px;
padding-left: 24px;
}
2016-10-26 03:58:35 +00:00
.md-checkbox {
2016-10-31 03:38:29 +00:00
margin: 0;
2016-10-26 03:58:35 +00:00
}
.md-checkbox-container {
width: 18px;
height: 18px;
2016-10-31 03:38:29 +00:00
margin-top: 1px;
2016-10-26 03:58:35 +00:00
&:after {
top: -1px;
left: 4px
}
}
}
2016-10-31 03:38:29 +00:00
.md-select {
min-width: 84px;
}
.md-select-value,
.md-option {
font-size: 13px;
}
2016-10-26 03:58:35 +00:00
}
2016-10-27 13:46:40 +00:00
.md-table-edit-trigger {
display: inline-block;
cursor: pointer;
color: rgba(#000, .38);
&.md-edited {
color: rgba(#000, .87);
}
}
.md-table-dialog {
max-height: 0;
margin: 0;
padding: 0 24px 2px;
position: absolute;
top: 0;
right: 0;
left: 24px;
z-index: 60;
overflow: hidden;
pointer-events: none;
border-radius: 2px;
box-shadow: $material-shadow-2dp;
background-color: #fff;
opacity: 0;
transition: $swift-ease-out,
max-height 0s .5s;
transition-duration: .3s;
transform: translate3D(0, -8px, 0);
&.md-active {
max-height: 400px;
pointer-events: auto;
transform: translate3D(0, 0, 0);
opacity: 1;
transition: $swift-ease-out;
transition-duration: .3s;
}
&.md-large {
padding: 12px 24px 2px;
}
.md-input-container {
margin-top: 0;
margin-bottom: 16px;
2016-10-31 03:38:29 +00:00
&.md-input-placeholder input {
font-size: 13px;
&::-webkit-input-placeholder {
font-size: 13px;
}
}
2016-10-27 13:46:40 +00:00
}
.md-char-counter {
font-size: 13.5px;
color: rgba(0, 0, 0, .54);
}
.md-button {
min-width: 64px;
}
}
2016-10-26 03:58:35 +00:00
.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
}
2016-11-01 04:44:30 +00:00
.md-table-alternate-header {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 10;
pointer-events: none;
opacity: 0;
transition: $swift-ease-out;
transition-duration: .3s;
&.md-active {
pointer-events: auto;
opacity: 1;
transform: translate3D(0, 0, 0);
}
.md-counter {
margin-left: 8px;
flex: 1;
}
}