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[] = [
42
42
]
43
43
44
44
function 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
+ }
45
50
return (
46
51
< div className = { clsx ( 'col col--4' ) } >
47
52
< div className = "text--center" >
48
- < Svg className = { styles . featureSvg } role = "img" />
53
+ < Svg className = { classVar } role = "img" />
49
54
</ div >
50
55
< div className = "text--center padding-horiz--md" >
51
56
< h3 > { title } </ h3 >
Original file line number Diff line number Diff line change 9
9
height : 200px ;
10
10
width : 200px ;
11
11
}
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[] = [
51
51
]
52
52
53
53
function 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
+ }
54
59
return (
55
60
< div className = { clsx ( 'col col--6' ) } >
56
61
< div className = "text--center" >
57
62
< 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" />
59
64
</ a >
60
65
</ div >
61
66
</ div >
Original file line number Diff line number Diff line change 29
29
width : 100% ;
30
30
}
31
31
}
32
+
33
+ html [data-theme = 'dark' ] .AlgoliaLogo {
34
+ fill : # fff ;
35
+ }
You can’t perform that action at this time.
0 commit comments