Skip to content

Commit 47ccbaf

Browse files
committed
fix(ads): better rendering
1 parent 88bdf1d commit 47ccbaf

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

src/theme/DocSidebar/styles.module.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
background-color: var(--ifm-background-surface-color);
2020
border: 1px solid var(--ifm-border-color); /* Soft outline */
2121
border-radius: 8px; /* Matches the modern feel */
22-
padding: 12px;
22+
padding: 10px;
2323
position: relative;
2424
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Barely-there shadow */
2525
transition: all 0.2s ease;
26+
font-size: 0.9em;
2627
}
2728

2829
:global(#carbonads:hover) {
@@ -32,14 +33,20 @@
3233

3334
:global(#carbonads .carbon-wrap) {
3435
display: flex;
35-
align-items: flex-start;
36-
gap: 12px; /* Adds clean space between the image and the text */
36+
flex-direction: column;
37+
gap: 8px;
38+
}
39+
40+
:global(#carbonads .carbon-wrap img) {
41+
width: 100%;
42+
height: auto;
43+
border-radius: 4px;
3744
}
3845

3946
:global(#carbonads .carbon-text) {
4047
padding: 0;
41-
font-size: 13px; /* Slightly smaller to feel less shouty */
42-
line-height: 1.45;
48+
font-size: 12px;
49+
line-height: 1.4;
4350
color: var(--ifm-color-content-secondary);
4451
}
4552

@@ -48,9 +55,9 @@
4855
text-align: right; /* Keeps it neatly tucked to the right */
4956

5057
/* Creates a hard, guaranteed gap between the ad text and the link */
51-
margin-top: 10px;
58+
margin-top: 8px;
5259

53-
font-size: 9px;
60+
font-size: 8px;
5461
font-weight: 700;
5562
line-height: 1;
5663
letter-spacing: 0.05em;

0 commit comments

Comments
 (0)