-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.css
More file actions
54 lines (49 loc) · 1.81 KB
/
Copy pathstyles.css
File metadata and controls
54 lines (49 loc) · 1.81 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
/*
* Freeze the first column of wide comparison tables (e.g. the roles &
* permissions matrix on /references/workspace/roles) so row labels stay
* visible when readers scroll horizontally to see the right-most columns.
*
* Usage: wrap the table in <div className="sticky-first-col">…</div>
*/
.sticky-first-col {
overflow-x: auto;
position: relative;
/* Explicit max width so the wrapper participates in horizontal scroll
instead of forcing the whole page to scroll. */
max-width: 100%;
}
.sticky-first-col table {
/* Force the table to be at least as wide as its natural content so it
scrolls horizontally inside the wrapper rather than squeezing. */
width: max-content;
min-width: 100%;
border-collapse: separate;
border-spacing: 0;
}
/* Give the first column a comfortable, predictable width so long labels
like "Manage Organization Warehouse Credentials" have room to sit on
one or two lines without being clipped. */
.sticky-first-col table th:first-child,
.sticky-first-col table td:first-child {
position: sticky;
left: 0;
z-index: 1;
min-width: 260px;
max-width: 320px;
white-space: normal;
/* Solid, opaque background so the scrolling columns don't show through
the pinned column. Match the page background in each theme. */
background-color: #ffffff;
/* Subtle right-edge divider so the frozen column reads as separated. */
box-shadow: inset -1px 0 0 0 rgba(0, 0, 0, 0.08);
}
/* Header cells sit above body cells so the top-left corner stays clean. */
.sticky-first-col table thead th:first-child {
z-index: 2;
}
/* Dark mode — Mintlify toggles a `dark` class on <html>. */
html.dark .sticky-first-col table th:first-child,
html.dark .sticky-first-col table td:first-child {
background-color: #0b0b0f;
box-shadow: inset -1px 0 0 0 rgba(255, 255, 255, 0.1);
}