1212
1313: root {
1414 /* Hotfix: Changed primary color to black to resolve conflict with Docusaurus' default primary orange after disabling Tailwind preflight CSS. Added font size and line height adjustments to compensate for the removal of Tailwind preflight. */
15-
15+
1616 /* --ifm-color-primary-lighter: #ffb575; */
17- font-size : 18px ;
17+ font-size : 18px ;
1818 line-height : 1.6 ;
1919 --ifm-color-primary : # 000 ;
2020
21- --ifm-color-primary-lighter : # FFF ;
21+ --ifm-color-primary-lighter : # fff ;
2222 --ifm-color-primary : # ff914d ;
2323 --ifm-color-primary-dark : # e67643 ;
2424 --ifm-color-primary-darker : # c95919 ;
2525 --ifm-color-primary-darkest : # be2c1b ;
2626 --ifm-color-primary-light : # ffd0a0 ;
27-
27+
2828 --ifm-color-primary-lightest : # ffceb1 ;
2929 --ifm-code-font-size : 95% ;
3030 --doc-sidebar-width : 275px !important ;
3737
3838html [data-theme = "dark" ] {
3939 /* Hotfix: Changed 'ifm-color-primary-lighter' to white to resolve conflict with Docusaurus' default color after disabling Tailwind preflight CSS. */
40-
4140
4241 /* --ifm-color-primary-lighter: #ffb575; */
43- --ifm-color-primary-lighter : # FFF ;
44-
42+ --ifm-color-primary-lighter : # fff ;
43+
4544 --ifm-color-primary : # ff914d ;
4645 --ifm-color-primary-dark : # e67643 ;
4746 --ifm-color-primary-darker : # c95919 ;
@@ -112,7 +111,7 @@ html[data-theme="light"] {
112111}
113112
114113/* Hotfix: Remove extra margin-bottom on community links subtext in the home page due to Tailwind preflight removal */
115- h3 {
114+ h3 {
116115 margin-bottom : 0.1rem ;
117116}
118117h1 ,
@@ -164,52 +163,79 @@ div[class^="sidebar_"] .menu__link--sublist.menu__link--active {
164163}
165164
166165/* Do NOT bold category when on its own page */
167- div [class ^= "sidebar_" ] .menu__list-item-collapsible--active .menu__link--sublist {
166+ div [class ^= "sidebar_" ]
167+ .menu__list-item-collapsible--active
168+ .menu__link--sublist {
168169 color : inherit !important ;
169170 font-weight : inherit;
170171}
171172/* And keep color unchanged even on hover when on its own page */
172- div [class ^= "sidebar_" ] .menu__list-item-collapsible--active .menu__link--sublist : hover {
173+ div [class ^= "sidebar_" ]
174+ .menu__list-item-collapsible--active
175+ .menu__link--sublist : hover {
173176 color : inherit !important ;
174177}
175178
176179/* Explicitly neutralize color when category link is both sublist and active (own page) */
177- div [class ^= "sidebar_" ] .menu__list-item-collapsible--active .menu__link--sublist .menu__link--active {
180+ div [class ^= "sidebar_" ]
181+ .menu__list-item-collapsible--active
182+ .menu__link--sublist .menu__link--active {
178183 color : inherit !important ;
179184}
180185
181186/* When the category's own page is current, do not change its color/background/weight */
182- div [class ^= "sidebar_" ] .menu__list-item-collapsible .menu__link [aria-current = "page" ] {
187+ div [class ^= "sidebar_" ]
188+ .menu__list-item-collapsible
189+ .menu__link [aria-current = "page" ] {
183190 color : inherit !important ;
184191 background : transparent !important ;
185192 font-weight : inherit !important ;
186193}
187- div [class ^= "sidebar_" ] .menu__list-item-collapsible .menu__link [aria-current = "page" ]: hover ,
188- div [class ^= "sidebar_" ] .menu__list-item-collapsible .menu__link [aria-current = "page" ]: focus ,
189- div [class ^= "sidebar_" ] .menu__list-item-collapsible .menu__link [aria-current = "page" ].menu__link--active {
194+ div [class ^= "sidebar_" ]
195+ .menu__list-item-collapsible
196+ .menu__link [aria-current = "page" ]: hover ,
197+ div [class ^= "sidebar_" ]
198+ .menu__list-item-collapsible
199+ .menu__link [aria-current = "page" ]: focus ,
200+ div [class ^= "sidebar_" ]
201+ .menu__list-item-collapsible
202+ .menu__link [aria-current = "page" ].menu__link--active {
190203 color : inherit !important ;
191204 /* prevent extra link-layer background; container provides unified hover */
192205 background-color : transparent !important ;
193206 font-weight : inherit !important ;
194207}
195208
196209/* Strong override: category with its own current page should use normal menu color (not active black) */
197- div [class ^= "sidebar_" ] .menu__link--sublist .menu__link--active [aria-current = "page" ] {
210+ div [class ^= "sidebar_" ]
211+ .menu__link--sublist .menu__link--active [aria-current = "page" ] {
198212 color : var (--ifm-menu-color ) !important ;
199213}
200214
201215/* Extra-specific guard: ensure normal color for category labels on their own page */
202- div [class ^= "sidebar_" ] li .menu__list-item > a .menu__link .menu__link--sublist [aria-current = "page" ],
203- div [class ^= "sidebar_" ] li .menu__list-item > a .menu__link .menu__link--sublist [aria-current = "page" ].menu__link--active ,
204- div [class ^= "sidebar_" ] li .menu__list-item > div .menu__list-item-collapsible > a .menu__link .menu__link--sublist [aria-current = "page" ] {
216+ div [class ^= "sidebar_" ]
217+ li .menu__list-item
218+ > a .menu__link .menu__link--sublist [aria-current = "page" ],
219+ div [class ^= "sidebar_" ]
220+ li .menu__list-item
221+ > a .menu__link .menu__link--sublist [aria-current = "page" ].menu__link--active ,
222+ div [class ^= "sidebar_" ]
223+ li .menu__list-item
224+ > div .menu__list-item-collapsible
225+ > a .menu__link .menu__link--sublist [aria-current = "page" ] {
205226 color : var (--ifm-menu-color ) !important ;
206227 background : transparent !important ;
207228 font-weight : inherit !important ;
208229}
209230
210231/* Restore hover background for categories with their own page when hovering that link */
211- div [class ^= "sidebar_" ] li .menu__list-item > a .menu__link .menu__link--sublist [aria-current = "page" ]: hover ,
212- div [class ^= "sidebar_" ] li .menu__list-item > div .menu__list-item-collapsible > a .menu__link .menu__link--sublist [aria-current = "page" ]: hover {
232+ div [class ^= "sidebar_" ]
233+ li .menu__list-item
234+ > a .menu__link .menu__link--sublist [aria-current = "page" ]: hover ,
235+ div [class ^= "sidebar_" ]
236+ li .menu__list-item
237+ > div .menu__list-item-collapsible
238+ > a .menu__link .menu__link--sublist [aria-current = "page" ]: hover {
213239 /* prevent extra link-layer hover; container provides unified hover */
214240 background-color : transparent !important ;
215241}
@@ -219,21 +245,32 @@ div[class^="sidebar_"] li.menu__list-item > div.menu__list-item-collapsible > a.
219245div [class ^= "sidebar_" ] .menu__list-item-collapsible--active : hover {
220246 background-color : var (--ifm-menu-color-background-hover ) !important ;
221247}
222- div [class ^= "sidebar_" ] .menu__list-item-collapsible--active : hover > a .menu__link ,
223- div [class ^= "sidebar_" ] .menu__list-item-collapsible--active : hover > .menu__caret {
248+ div [class ^= "sidebar_" ]
249+ .menu__list-item-collapsible--active : hover
250+ > a .menu__link ,
251+ div [class ^= "sidebar_" ]
252+ .menu__list-item-collapsible--active : hover
253+ > .menu__caret {
224254 background-color : transparent !important ;
225255}
226256
227257/* For categories with pages (collapsible) when NOT on their page: hover on arrow OR text gives one unified background */
228- div [class ^= "sidebar_" ] .menu__list-item-collapsible : not (.menu__list-item-collapsible--active ): hover {
258+ div [class ^= "sidebar_" ]
259+ .menu__list-item-collapsible : not (.menu__list-item-collapsible--active ): hover {
229260 background-color : var (--ifm-menu-color-background-hover ) !important ;
230261}
231- div [class ^= "sidebar_" ] .menu__list-item-collapsible : not (.menu__list-item-collapsible--active ): hover > a .menu__link ,
232- div [class ^= "sidebar_" ] .menu__list-item-collapsible : not (.menu__list-item-collapsible--active ): hover > .menu__caret {
262+ div [class ^= "sidebar_" ]
263+ .menu__list-item-collapsible : not (.menu__list-item-collapsible--active ): hover
264+ > a .menu__link ,
265+ div [class ^= "sidebar_" ]
266+ .menu__list-item-collapsible : not (.menu__list-item-collapsible--active ): hover
267+ > .menu__caret {
233268 background-color : transparent !important ;
234269}
235270/* Ensure link text color does not change on hover in this specific case */
236- div [class ^= "sidebar_" ] .menu__list-item-collapsible--active : hover > a .menu__link {
271+ div [class ^= "sidebar_" ]
272+ .menu__list-item-collapsible--active : hover
273+ > a .menu__link {
237274 color : inherit !important ;
238275}
239276
@@ -242,11 +279,13 @@ div[class^="sidebar_"] .menu__list-item-collapsible--active {
242279 background : transparent !important ;
243280}
244281
245-
246282/* Parent style when a child page is active is handled below for light mode (orange) */
247283
248284/* Light mode: use orange color (no bold) for parent when a child page is active */
249- html [data-theme = "light" ] div [class ^= "sidebar_" ] .menu__list-item-collapsible : not (.menu__list-item-collapsible--active ) .menu__link--sublist .menu__link--active {
285+ html [data-theme = "light" ]
286+ div [class ^= "sidebar_" ]
287+ .menu__list-item-collapsible : not (.menu__list-item-collapsible--active )
288+ .menu__link--sublist .menu__link--active {
250289 color : var (--ifm-color-primary ) !important ;
251290 font-weight : inherit;
252291}
@@ -329,7 +368,7 @@ div[class^="sidebar_"] .menu__link.menu__link--active {
329368
330369/* Pagination */
331370.pagination-nav {
332- @apply flex mt-12 flex-col items-start justify-center space-x-0 space-y-5 md:flex-row md:space-x-10 md:space-y-0;
371+ @apply mt-12 flex flex-col items-start justify-center space-x-0 space-y-5 md:flex-row md:space-x-10 md:space-y-0;
333372}
334373.pagination-nav__item {
335374 @apply w-full max-w-md;
@@ -344,7 +383,7 @@ div[class^="sidebar_"] .menu__link.menu__link--active {
344383}
345384
346385.navbar__items--right {
347- @apply justify-end ml-auto flex-row-reverse;
386+ @apply ml-auto flex-row-reverse justify-end ;
348387 gap : 13px ;
349388}
350389
@@ -452,7 +491,7 @@ footer svg {
452491}
453492
454493/* Reset margin bottom on h3 (refer docs community section li item heading) after disabling tailwind preflight. */
455- h3 {
494+ h3 {
456495 margin-bottom : 1px ;
457496}
458497
@@ -720,13 +759,14 @@ a[class="breadcrumbs__link"] {
720759}
721760
722761/* Hotfix: Manually add Tailwind preflight styles to fix clipboard issues in Safari.
723- Using `preflight: true` caused style conflicts, so these styles are directly included here. */ * ,
762+ Using `preflight: true` caused style conflicts, so these styles are directly included here. */
763+ * ,
724764::before ,
725765::after {
726766 box-sizing : border-box;
727767 border-width : 0 ;
728768 border-style : solid;
729- border-color : theme (' borderColor.DEFAULT' , currentColor);
769+ border-color : theme (" borderColor.DEFAULT" , currentColor);
730770}
731771
732772* {
@@ -739,7 +779,7 @@ html {
739779 -webkit-text-size-adjust : 100% ;
740780 -moz-tab-size : 4 ;
741781 tab-size : 4 ;
742- font-family : theme (' fontFamily.sans' , ui-sans-serif, system-ui, sans-serif);
782+ font-family : theme (" fontFamily.sans" , ui-sans-serif, system-ui, sans-serif);
743783}
744784
745785body {
@@ -793,9 +833,9 @@ html {
793833}
794834
795835button ,
796- [type = ' button' ],
797- [type = ' reset' ],
798- [type = ' submit' ] {
836+ [type = " button" ],
837+ [type = " reset" ],
838+ [type = " submit" ] {
799839 -webkit-appearance : button;
800840 background-color : transparent;
801841 background-image : none;
@@ -822,12 +862,12 @@ menu {
822862}
823863
824864: focus-visible {
825- outline : 2px solid theme (' colors.blue.600' , # 2563eb );
865+ outline : 2px solid theme (" colors.blue.600" , # 2563eb );
826866 outline-offset : 2px ;
827867}
828868
829- [type = ' number' ]::-webkit-inner-spin-button ,
830- [type = ' number' ]::-webkit-outer-spin-button {
869+ [type = " number" ]::-webkit-inner-spin-button ,
870+ [type = " number" ]::-webkit-outer-spin-button {
831871 height : auto;
832872}
833873
@@ -861,7 +901,7 @@ textarea {
861901}
862902
863903.theme-back-to-top-button {
864- background-color : # FF914D !important ;
904+ background-color : # ff914d !important ;
865905 color : white !important ;
866906}
867907
@@ -872,5 +912,3 @@ textarea {
872912.theme-back-to-top-button : hover {
873913 background-color : # e67643 !important ;
874914}
875-
876-
0 commit comments