-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathversion-aligner.css
More file actions
118 lines (99 loc) · 3.23 KB
/
version-aligner.css
File metadata and controls
118 lines (99 loc) · 3.23 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
/* Version aligner styles – scoped to sidebar + navbar elements */
/* Force-hide the navbar utility group regardless of breakpoints */
#navbar .hidden.lg\:flex.items-center.gap-x-2 {
width: 0 !important;
}
/* Hide chevron icon on the moved version trigger */
#sidebar-content [data-version-aligner-button] svg {
display: none !important;
}
/* Keep technology + version triggers on a single row */
#sidebar-content .cc-version-aligned-row {
display: flex;
align-items: center;
gap: 8px;
}
/* Constrain technology dropdown width when aligned */
html.cc-version-aligned #sidebar-content .cc-version-aligned-row .nav-dropdown-trigger {
flex: 0 0 14rem;
max-width: 14rem;
margin-bottom: 0 !important;
}
/* Ensure the moved version trigger renders inline with the technology trigger */
html.cc-version-aligned #sidebar-content .cc-version-aligned-row [data-version-aligner-button] {
display: flex !important;
align-items: center;
flex: 0 0 auto;
}
/* Hide the navbar version dropdown once the sidebar is aligned (desktop only) */
@media (min-width: 1024px) {
html.cc-version-aligned #navbar .hidden.lg\:flex.items-center.gap-x-2 > button[aria-haspopup="menu"][data-version-aligner-button] {
display: none !important;
}
/* Fix technology dropdown width to accommodate adjacent version trigger */
#sidebar-content .nav-dropdown-trigger {
width: 14rem;
max-width: 14rem;
min-width: 14rem;
flex: 0 0 14rem;
}
}
/* Product dropdown styling tweaks */
.nav-dropdown-products-selector-trigger {
border-radius: 999px !important;
border: 1px solid rgba(15, 23, 42, 0.15);
transition: border-color 0.2s ease, background-color 0.2s ease;
width: 12rem;
max-width: 12rem;
flex: 0 0 12rem;
overflow: visible;
}
html.dark .nav-dropdown-products-selector-trigger {
border-color: rgba(226, 232, 240, 0.2);
}
.nav-dropdown-products-selector-trigger:hover,
.nav-dropdown-products-selector-trigger[aria-expanded="true"] {
border-color: rgba(104, 81, 214, 0.7);
}
/* Hide version trigger while it's still in the navbar (desktop only) */
@media (min-width: 1024px) {
#navbar [data-version-aligner-button] {
opacity: 0 !important;
pointer-events: none !important;
}
}
/* Smoothly fade the relocated version trigger into the sidebar row */
#sidebar-content [data-version-aligner-button] {
opacity: 0;
transform: translateY(-2px);
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
}
html.cc-version-aligned #sidebar-content [data-version-aligner-button] {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
/* Ensure product dropdown label is never truncated */
.nav-dropdown-products-selector-trigger > span {
max-width: none !important;
white-space: normal !important;
-webkit-line-clamp: unset !important;
display: inline !important;
}
.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)) {
margin-top: 0em;
margin-bottom: 0em;
}
:not(pre)>code {
padding: .125rem 0rem;
}
:not(pre)>code {
padding: .125rem 0rem;
}
/* Fix font size inconsistency in API endpoint descriptions */
/* Only applies to API reference pages */
#content-area #header .mt-2.text-lg p {
font-size: 0.875rem !important;
line-height: 1.375rem !important;
}