File tree Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Expand file tree Collapse file tree 5 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,15 @@ const FeatureList: FeatureItem[] = [
4242]
4343
4444function Feature ( { title, Svg, description } : FeatureItem ) {
45+ var classVar = styles . featureSvg ;
46+ if ( Svg === require ( '@site/static/img/github.svg' ) . default )
47+ {
48+ classVar = styles . featureSvg + " " + styles . githubLogo ;
49+ }
4550 return (
4651 < div className = { clsx ( 'col col--4' ) } >
4752 < div className = "text--center" >
48- < Svg className = { styles . featureSvg } role = "img" />
53+ < Svg className = { classVar } role = "img" />
4954 </ div >
5055 < div className = "text--center padding-horiz--md" >
5156 < h3 > { title } </ h3 >
Original file line number Diff line number Diff line change 99 height : 200px ;
1010 width : 200px ;
1111}
12+
13+ html [data-theme = 'dark' ] .githubLogo {
14+ fill : # fff ;
15+ }
Original file line number Diff line number Diff line change @@ -51,11 +51,16 @@ const SponsorList: SponsorItem[] = [
5151]
5252
5353function Feature ( { title, Svg, link } : FeatureItem ) {
54+ var classVar = styles . featureSvg ;
55+ if ( Svg === require ( '@site/static/img/Algolia-logo.svg' ) . default )
56+ {
57+ classVar = styles . featureSvg + " " + styles . AlgoliaLogo ;
58+ }
5459 return (
5560 < div className = { clsx ( 'col col--6' ) } >
5661 < div className = "text--center" >
5762 < a href = { link } title = { title } target = "_blank" rel = "noreferrer" aria-label = { title } >
58- < Svg className = { styles . featureSvg } role = "img" />
63+ < Svg className = { classVar } role = "img" />
5964 </ a >
6065 </ div >
6166 </ div >
Original file line number Diff line number Diff line change 2929 width : 100% ;
3030 }
3131}
32+
33+ html [data-theme = 'dark' ] .AlgoliaLogo {
34+ fill : # fff ;
35+ }
You can’t perform that action at this time.
0 commit comments