Skip to content

Commit 9ad26a9

Browse files
committed
docs: update generated reference styling
1 parent e9fbcfa commit 9ad26a9

2 files changed

Lines changed: 107 additions & 1 deletion

File tree

docs/reference.css

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
:root {
2+
--light-color-background: lab(100% 0 0);
3+
--light-color-background-secondary: lab(100% 0 0);
4+
--light-color-accent: lab(90.952% 0 -.0000119209);
5+
--dark-color-background: lab(2.75381% 0 0);
6+
--dark-color-background-secondary: lab(2.75381% 0 0);
7+
--dark-color-accent: lab(100% 0 0/.1);
8+
--dim-footer-height: 0px;
9+
--dim-toolbar-contents-height: 3.5rem;
10+
--dim-container-main-margin-y: 0px;
11+
--reference-column-padding-top: 1.5rem;
12+
--reference-content-padding-x: 2rem;
13+
--reference-nav-nested-indent: .8rem;
14+
--reference-nav-item-padding-y: 0.3rem;
15+
--reference-header-logo: url("https://static.invertase.io/assets/react-native-firebase-favicon.png");
16+
--reference-header-logo-size: 1.75rem;
17+
}
18+
19+
.tsd-toolbar-contents > .title {
20+
display: inline-flex;
21+
align-items: center;
22+
gap: 0.625rem;
23+
}
24+
25+
.tsd-toolbar-contents > .title::before {
26+
content: "";
27+
width: var(--reference-header-logo-size);
28+
height: var(--reference-header-logo-size);
29+
flex-shrink: 0;
30+
background: var(--reference-header-logo) center / contain no-repeat;
31+
}
32+
33+
footer, .tsd-filter-visibility {
34+
display: none;
35+
}
36+
37+
.tsd-navigation.settings {
38+
margin-bottom: 2rem;
39+
}
40+
41+
.tsd-nested-navigation {
42+
margin-left: calc(var(--reference-nav-nested-indent) * 2);
43+
}
44+
45+
.tsd-nested-navigation > li > details {
46+
margin-left: calc(-1 * var(--reference-nav-nested-indent));
47+
}
48+
49+
.tsd-small-nested-navigation {
50+
margin-left: var(--reference-nav-nested-indent);
51+
}
52+
53+
.tsd-small-nested-navigation > li > details {
54+
margin-left: calc(-1 * var(--reference-nav-nested-indent));
55+
}
56+
57+
.site-menu .tsd-navigation a,
58+
.site-menu .tsd-navigation .tsd-accordion-summary {
59+
padding-top: var(--reference-nav-item-padding-y);
60+
padding-bottom: var(--reference-nav-item-padding-y);
61+
}
62+
63+
#tsd-sidebar-links a {
64+
margin-bottom: var(--reference-nav-item-padding-y);
65+
}
66+
67+
@media (min-width: 770px) {
68+
/* TypeDoc re-applies this at desktop breakpoints — override in the same query */
69+
.container-main {
70+
--dim-container-main-margin-y: 0px;
71+
min-height: 0;
72+
}
73+
74+
/*
75+
* Sidebar max-height is computed from layout vars; padding must stay inside
76+
* that box (TypeDoc defaults to content-box, which adds padding on top).
77+
*/
78+
.col-sidebar,
79+
.site-menu,
80+
.page-menu {
81+
box-sizing: border-box;
82+
}
83+
84+
.site-menu {
85+
margin-top: 0;
86+
padding: var(--reference-column-padding-top) 0;
87+
}
88+
89+
.col-content {
90+
padding-top: var(--reference-column-padding-top);
91+
padding-left: var(--reference-content-padding-x);
92+
padding-right: var(--reference-content-padding-x);
93+
}
94+
95+
.col-content .tsd-page-title h1 {
96+
margin-top: 0;
97+
}
98+
}
99+
100+
@media (min-width: 1200px) {
101+
.page-menu {
102+
padding-top: var(--reference-column-padding-top);
103+
}
104+
}

typedoc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://typedoc.org/schema.json",
33
"name": "React Native Firebase",
4+
"customCss": "./docs/reference.css",
45
"entryPointStrategy": "packages",
56
"entryPoints": [
67
"packages/app",
@@ -37,9 +38,10 @@
3738
"searchInComments": true,
3839
"hideGenerator": true,
3940
"cleanOutputDir": true,
40-
"titleLink": "https://github.com/invertase/react-native-firebase",
41+
"titleLink": "/",
4142
"favicon": "https://static.invertase.io/assets/react-native-firebase-favicon.png",
4243
"navigationLinks": {
44+
"Documentation": "https://rnfirebase.io",
4345
"GitHub": "https://github.com/invertase/react-native-firebase",
4446
"npm": "https://www.npmjs.com/search?q=scope%3Areact-native-firebase"
4547
},

0 commit comments

Comments
 (0)