|
1 | 1 | /* avoids layout shift before Carbon gets a chance to initialize */ |
2 | 2 | .roomForCarbon > :first-child > :first-child { |
3 | | - height: calc(100% - 190px) !important; |
| 3 | + height: calc(100% - 130px) !important; |
4 | 4 | flex-grow: initial; |
5 | 5 | } |
6 | 6 |
|
| 7 | +/* Fade at the bottom of the scrollable menu so items dissolve before the ad */ |
| 8 | +.roomForCarbon > :first-child > :first-child { |
| 9 | + position: relative; |
| 10 | + -webkit-mask-image: linear-gradient( |
| 11 | + to bottom, |
| 12 | + black calc(100% - 28px), |
| 13 | + transparent 100% |
| 14 | + ); |
| 15 | + mask-image: linear-gradient( |
| 16 | + to bottom, |
| 17 | + black calc(100% - 28px), |
| 18 | + transparent 100% |
| 19 | + ); |
| 20 | +} |
| 21 | + |
7 | 22 | .carbonWrapper { |
8 | 23 | flex-shrink: 0; |
9 | | - min-height: 190px; |
10 | | - padding: 20px 15px 15px 15px; /* 20px gap at the top! */ |
| 24 | + min-height: 130px; |
| 25 | + padding: 0 15px 15px 15px; |
11 | 26 | overflow: hidden; |
12 | 27 | display: flex; |
13 | | - justify-content: center; /* Centers the ad horizontally */ |
| 28 | + justify-content: center; |
14 | 29 | align-items: flex-end; |
15 | 30 | } |
16 | 31 |
|
17 | 32 | :global(#carbonads) { |
18 | 33 | display: block; |
19 | 34 | background-color: var(--ifm-background-surface-color); |
20 | | - border: 1px solid var(--ifm-border-color); /* Soft outline */ |
21 | | - border-radius: 8px; /* Matches the modern feel */ |
| 35 | + border: 1px solid var(--ifm-border-color); |
| 36 | + border-radius: 8px; |
22 | 37 | padding: 10px; |
23 | 38 | position: relative; |
24 | | - box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Barely-there shadow */ |
| 39 | + box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.03); |
25 | 40 | transition: all 0.2s ease; |
26 | 41 | font-size: 0.9em; |
27 | 42 | } |
28 | 43 |
|
29 | 44 | :global(#carbonads:hover) { |
30 | | - border-color: rgba(99, 102, 241, 0.3); /* Subtle Indigo tint on hover */ |
| 45 | + border-color: rgba(99, 102, 241, 0.3); |
31 | 46 | box-shadow: 0 4px 10px -2px rgba(99, 102, 241, 0.1); |
32 | 47 | } |
33 | 48 |
|
34 | 49 | :global(#carbonads .carbon-wrap) { |
35 | 50 | display: flex; |
36 | 51 | flex-direction: column; |
| 52 | + align-items: center; |
37 | 53 | gap: 8px; |
38 | 54 | } |
39 | 55 |
|
40 | 56 | :global(#carbonads .carbon-wrap img) { |
41 | | - width: 100%; |
| 57 | + width: 130px; |
42 | 58 | height: auto; |
43 | 59 | border-radius: 4px; |
44 | 60 | } |
45 | 61 |
|
46 | 62 | :global(#carbonads .carbon-text) { |
47 | 63 | padding: 0; |
48 | | - font-size: 12px; |
| 64 | + font-size: 11px; |
49 | 65 | line-height: 1.4; |
50 | 66 | color: var(--ifm-color-content-secondary); |
51 | 67 | } |
52 | 68 |
|
53 | 69 | :global(#carbonads .carbon-poweredby) { |
54 | 70 | display: block; |
55 | | - text-align: right; /* Keeps it neatly tucked to the right */ |
56 | | - |
57 | | - /* Creates a hard, guaranteed gap between the ad text and the link */ |
58 | | - margin-top: 8px; |
59 | | - |
| 71 | + text-align: right; |
| 72 | + margin-top: 6px; |
60 | 73 | font-size: 8px; |
61 | 74 | font-weight: 700; |
62 | 75 | line-height: 1; |
|
0 commit comments