-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathAnalyticalTableV2.module.css
More file actions
119 lines (98 loc) · 3.37 KB
/
AnalyticalTableV2.module.css
File metadata and controls
119 lines (98 loc) · 3.37 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*todo scroll margin for interactive elements (scroll into view when focused)*/
/*todo: use will-change: transform?*/
.sticky {
position: sticky;
z-index: 1;
}
.cell {
box-sizing: border-box;
display: flex;
overflow: hidden;
/*todo: dev*/
border-inline: solid 1px black;
}
/* ============================================================= */
/* Container */
/* ============================================================= */
.tableContainer {
overflow: auto;
position: relative;
background-color: var(--sapList_Background);
font-size: var(--sapFontSize);
box-sizing: border-box;
overscroll-behavior: none;
}
/* ============================================================= */
/* Table */
/* ============================================================= */
.table {
/*todo check if we really require grid here*/
display: grid;
}
/* ============================================================= */
/* RowGroup */
/* ============================================================= */
.headerGroups {
inset-block-start: 0;
font-family: var(--_ui5wcr-AnalyticalTable-HeaderFontFamily);
z-index: 2;
> [data-component-name='AnalyticalTableV2HeaderRow']:last-child {
/*todo: box shadow or border --> specs*/
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
}
.topRowsGroup {
inset-block-start: calc(var(--_ui5WcrAnalyticalTableHeaderGroups) * var(--_ui5WcrAnalyticalTableControlledRowHeight));
height: calc(var(--_ui5WcrAnalyticalTableTopRows) * var(--_ui5WcrAnalyticalTableControlledRowHeight));
> [data-component-name='AnalyticalTableV2TopRow']:last-child {
/*todo: box shadow or border --> specs*/
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
}
.bottomRowsGroup {
inset-block-end: 0;
height: calc(var(--_ui5WcrAnalyticalTableBottomRows) * var(--_ui5WcrAnalyticalTableControlledRowHeight));
> [data-component-name='AnalyticalTableV2BottomRow']:first-child {
/*todo: box shadow or border --> specs*/
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}
}
/* ============================================================= */
/* Row */
/* ============================================================= */
.row {
box-sizing: border-box;
display: flex;
width: 100%;
height: var(--_ui5WcrAnalyticalTableControlledRowHeight);
background-color: var(--sapList_Background);
&.selectable {
cursor: pointer;
}
&.selected {
border-block-end: 1px solid var(--sapList_SelectionBorderColor);
background-color: var(--sapList_SelectionBackgroundColor);
}
}
/* ============================================================= */
/* Header */
/* ============================================================= */
/*.headerCell {*/
/* display: flex;*/
/*}*/
.headerRow {
background-color: var(--sapList_HeaderBackground);
}
.headerInteractive {
cursor: pointer;
/* todo:remove*/
background: lightgrey;
}
/* ============================================================= */
/* Body */
/* ============================================================= */
.virtualizedRow {
position: absolute;
inset-inline-start: 0;
inset-block-start: 0;
}