Skip to content

Commit 1db085a

Browse files
committed
style(website): make demo image responsive
1 parent 203019d commit 1db085a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

website/src/components/Hero.astro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import Default from '@astrojs/starlight/components/Hero.astro';
55
import demoImage from '../../src/assets/binsider-general-tab.png';
66
---
77

8-
<div class="demo-image">
8+
<div class="container">
99
<img
1010
src={demoImage.src}
1111
alt="demo"
12+
class="demo-image"
1213
/>
1314
</div>
1415

@@ -24,3 +25,8 @@ It allows you to easily inspect strings, examine linked libraries, and perform a
2425

2526
<Default {...Astro.props}><slot /></Default>
2627

28+
<style>
29+
.container {
30+
text-align: center;
31+
}
32+
</style>

website/src/styles/custom.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ a.site-title {
6161
margin: 0;
6262
max-width: 100%;
6363
height: auto;
64-
text-align: center;
65-
filter: invert(0);
6664
}
6765

6866
[data-theme="light"] .demo-image {

0 commit comments

Comments
 (0)