Skip to content

Commit 6199f2a

Browse files
committed
logo 2
1 parent 4cdfcae commit 6199f2a

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

website/docs/12.x/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
pageType: home
33

44
hero:
5-
name: 'React Native Testing Library'
65
image:
7-
src: /img/logo-light.svg
8-
dark: /img/logo-dark.svg
6+
src:
7+
light: /img/logo-light.svg
8+
dark: /img/logo-dark.svg
99
tagline: Helps you to write better tests with less effort.
1010
actions:
1111
- theme: brand

website/docs/13.x/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
pageType: home
33

44
hero:
5-
name: 'React Native Testing Library'
65
image:
7-
src: /img/logo-light.svg
8-
dark: /img/logo-dark.svg
6+
src:
7+
light: /img/logo-light.svg
8+
dark: /img/logo-dark.svg
99
tagline: Helps you to write better tests with less effort.
1010
actions:
1111
- theme: brand

website/docs/14.x/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
pageType: home
33

44
hero:
5-
name: 'React Native Testing Library'
65
image:
7-
src: /img/logo-light.svg
8-
dark: /img/logo-dark.svg
6+
src:
7+
light: /img/logo-light.svg
8+
dark: /img/logo-dark.svg
99
tagline: Helps you to write better tests with less effort.
1010
actions:
1111
- theme: brand

website/docs/styles/index.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,31 @@ p.rspress-home-hero-text {
288288
}
289289

290290
/* Hero Image (Logo) Sizing */
291-
[class*='heroImage-'] {
291+
[class*='heroImage-'],
292+
.rp-home-hero__image-img {
292293
height: 24px !important;
293294
width: auto !important;
294295
margin-left: 0 !important;
295296
margin-right: auto !important;
296297
}
297298

299+
/* Hero Image Dark/Light Mode */
300+
.rp-home-hero__image-img--dark {
301+
display: none;
302+
}
303+
304+
.rp-home-hero__image-img--light {
305+
display: block;
306+
}
307+
308+
.dark .rp-home-hero__image-img--dark {
309+
display: block;
310+
}
311+
312+
.dark .rp-home-hero__image-img--light {
313+
display: none;
314+
}
315+
298316
/* Feature Card Icons (Emojis) Sizing */
299317
[class*='featureIcon-'] {
300318
font-size: 1.5rem !important;

0 commit comments

Comments
 (0)