forked from canonical/vanilla-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_patterns_table-expanding.scss
More file actions
56 lines (48 loc) · 981 Bytes
/
_patterns_table-expanding.scss
File metadata and controls
56 lines (48 loc) · 981 Bytes
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
@import 'settings';
@mixin vf-p-table-expanding {
.p-table--expanding {
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
// stylelint-disable selector-max-type -- table elements can use selector types
thead,
tbody {
margin: 0;
}
tr {
display: flex;
margin: 0;
width: 100%;
flex: {
flow: row;
wrap: wrap;
}
}
th,
td {
align-items: flex-start;
display: block;
flex-basis: 0;
flex-grow: 1;
margin: 0;
text-overflow: ellipsis;
&.p-table__expanding-panel {
flex-basis: 100%;
max-width: 100%;
&[aria-hidden='true'] {
display: none;
}
.row,
.grid-row {
max-width: 100%;
padding: 0;
width: 100%;
}
}
&[aria-hidden='true'] {
display: none;
}
}
// stylelint-enable selector-max-type
}
}