File tree Expand file tree Collapse file tree 14 files changed +133
-21
lines changed Expand file tree Collapse file tree 14 files changed +133
-21
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,21 @@ async function autogenSections() {
3737 } ) ;
3838}
3939
40+ async function autogenStyles ( ) {
41+ const styles = (
42+ await readdir ( "./src/styles/" , {
43+ withFileTypes : true ,
44+ recursive : true ,
45+ } )
46+ )
47+ . filter ( ( x ) => x . isFile ( ) )
48+ . map ( ( x ) => x . parentPath + x . name ) ;
49+
50+ return styles ;
51+ }
52+
4053const sidebar = await autogenSections ( ) ;
54+ const customCss = await autogenStyles ( ) ;
4155
4256const runLinkCheck = process . env . RUN_LINK_CHECK || false ;
4357
@@ -97,18 +111,7 @@ export default defineConfig({
97111 TableOfContents : "./src/components/overrides/TableOfContents.astro" ,
98112 } ,
99113 sidebar,
100- customCss : [
101- "./src/asides.css" ,
102- "./src/badges.css" ,
103- "./src/code.css" ,
104- "./src/footnotes.css" ,
105- "./src/headings.css" ,
106- "./src/input.css" ,
107- "./src/mermaid.css" ,
108- "./src/table.css" ,
109- "./src/tailwind.css" ,
110- "./src/title.css" ,
111- ] ,
114+ customCss,
112115 pagination : false ,
113116 plugins : [
114117 ...( runLinkCheck
Original file line number Diff line number Diff line change @@ -8,15 +8,9 @@ import { lookupProductTitle } from "~/util/sidebar";
88const [product, module] = Astro .url .pathname .split (" /" ).filter (Boolean );
99---
1010
11- <a
12- href ={ " /" + product + " /" }
13- class =" flex items-center decoration-[color:var(--orange-accent-200)] hover:opacity-80"
14- >
15- <AstroIcon
16- name ={ product }
17- class =" mr-2 text-4xl text-[color:var(--orange-accent-200)]"
18- />
19- <span class =" text-black" >
11+ <a href ={ " /" + product + " /" } class =" flex items-center gap-2 px-1 no-underline" >
12+ <AstroIcon name ={ product } size =" 32px" class =" text-cl1-brand-orange" />
13+ <span class =" text-xl text-black" >
2014 <strong >
2115 { lookupProductTitle (product , module )}
2216 </strong >
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ .c-breadcrumbs {
2+ --spacing-vertical-separator-breadcrumbs : 0.625rem ;
3+
4+ padding : 0.5rem 0 ;
5+
6+ .c-breadcrumbs__link {
7+ font-size : 0.75rem ;
8+ line-height : 1.25rem ;
9+ font-weight : 600 ;
10+ }
11+
12+ .c-breadcrumbs__separator {
13+ color : theme ("colors.cl1.brand.orange" );
14+ }
15+
16+ .c-breadcrumbs__truncated-button {
17+ color : theme ("colors.cl1.brand.orange" );
18+ }
19+ }
20+
21+ : root [data-theme = "dark" ] {
22+ --color-link-breadcrumbs : theme ("colors.cl1.gray.7" );
23+ }
24+
25+ : root [data-theme = "light" ] {
26+ --color-link-breadcrumbs : theme ("colors.cl1.gray.4" );
27+ }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments