-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtable-builder.component.scss
102 lines (84 loc) · 2.04 KB
/
table-builder.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
90
91
92
93
94
95
96
97
98
99
100
101
102
@import './styles/common';
@import './styles/variables';
@import './styles/scrollbar';
@import './styles/columns';
@import './styles/cell';
@import './styles/icon';
@import './styles/draggable';
.table-grid {
height: 100%;
max-width: 100%;
box-sizing: border-box;
background: $backgroundColor;
&__column-area-content {
display: flex;
}
&__header-sticky,
&__footer-sticky {
background: #fff;
position: sticky;
z-index: 1000;
width: 100%;
}
&__header-sticky {
top: 0;
left: 0;
}
&__footer-sticky {
bottom: 0;
left: 0;
.table-grid__table-content-place {
border-top: 1px solid $borderColor;
border-bottom: none;
}
}
&__table-content-place {
color: #000;
border-bottom: 1px solid $borderColor;
&--content-cell {
box-sizing: border-box;
display: flex;
overflow: hidden;
padding: 5px 20px;
.content-box {
display: flex;
vertical-align: middle;
box-sizing: border-box;
margin: auto 0;
}
}
&--align-center {
justify-content: center;
text-align: center;
.content-box {
text-align: center;
}
}
&--bold {
font-weight: bold;
}
}
}
.table-grid__cell--inner-content {
}
.table-grid__scroll-offset {
.table-grid__header-cell {
transition: box-shadow 0.3s ease-in-out;
box-shadow: 0 3px 2px -2px rgb(224, 224, 224);
}
}
.table-grid__scroll-offset .table-grid__cell--inner-content {
visibility: visible;
opacity: 1;
}
.table-grid__scroll-offset .table-grid__cell--inner-content {
transition-duration: 0ms;
}
.table-grid__no-display {
// don't use [display: none]
// for correct work mutation observer
opacity: 0.012 !important;
}
.table-grid__no-visible {
display: none !important;
}