-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtable.component.scss
89 lines (79 loc) · 1.41 KB
/
table.component.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.example-container {
height: 400px;
width: calc(100vw - 50px);
overflow: auto;
}
td.mat-column-star {
width: 20px;
padding-right: 8px;
}
th.mat-column-position,
td.mat-column-position {
padding-left: 8px;
}
.mat-mdc-table-sticky-border-elem-right {
border-left: 1px solid #e0e0e0;
}
.mat-mdc-table-sticky-border-elem-left {
border-right: 1px solid #e0e0e0;
}
table {
width: 100%;
}
tr.example-detail-row {
height: 0;
}
table th:hover .resize-handle {
opacity: 1;
transition: 0.3s ease-in-out;
}
.resize-handle {
display: inline-block;
border-right: 2px solid lightgray;
position: absolute;
top: 0;
right: 0;
height: 100%;
cursor: col-resize;
opacity: 0;
}
.resize-handle:hover {
width: 20px;
}
.mat-mdc-table {
width: 100%;
&.resizing {
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: col-resize;
}
.mat-mdc-cell {
span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
}
.mat-mdc-header-cell {
position: relative;
&:not(:last-child) {
.resize-holder {
cursor: col-resize;
width: 20px;
height: 100%;
position: absolute;
right: -10px;
top: 0;
z-index: 1;
}
}
}
.mat-mdc-cell,
.mat-mdc-header-cell {
border-right: 1px solid rgba(0, 0, 0, 0.12);
&:not(:nth-child(1)) {
padding: 0 10px;
}
}
}