-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.css
More file actions
99 lines (89 loc) · 3.57 KB
/
Copy pathstyles.css
File metadata and controls
99 lines (89 loc) · 3.57 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
/*
* Tighten vertical rhythm between top-level sidebar groups. The mint theme
* separates groups with mt-6/lg:mt-8 (24/32px), sized for always-expanded
* section lists; our groups are collapsible root-page rows (36px tall), so
* the stock margin reads as a gap of dead space between every nav item.
*
* Only root-linked collapsible groups render as a bare `ul.sidebar-group`
* directly under #navigation-items. Classic header groups (e.g. the API tab)
* wrap theirs in a div that carries the margin, so they keep stock spacing.
*/
#navigation-items > ul.sidebar-group {
margin-top: 12px;
}
/*
* Freeze the first column of wide comparison tables (e.g. the roles &
* permissions matrix on /workspace-admin/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);
}
/*
* The negative glyph in a support matrix. Readers scan these tables for what a
* role *can* do, so the absences recede and the checks carry the weight. The
* check is deliberately unstyled — it inherits the page's emphasis colour.
*
* Usage: <Icon icon="x" className="matrix-no" />
*
* Set per theme rather than through the component's `color` prop: a single
* light-mode hex would render brighter than the check in dark mode and invert
* the hierarchy this exists to create.
*
* Mintlify paints icons as a mask over a background colour, not as a stroked
* SVG, so this sets `background-color`; `color` has no effect. The element
* qualifier outranks the theme's own `bg-primary` utility without !important.
*
* Both values sit ~1.4:1 against their own ground, so the glyph recedes by the
* same amount in either theme, and ~2.5:1 from the check, which is the contrast
* that actually matters here. Deliberately below the 3:1 guideline for
* meaningful graphics: every cell in these matrices is populated, so a faint
* glyph never has to be told apart from an empty cell.
*/
svg.matrix-no {
background-color: #d9d5f0;
}
html.dark svg.matrix-no {
background-color: #2e2947;
}