| 1 |
// Dark-green AI banner shell. Colors are hardcoded because neither consumer |
| 2 |
// page is wrapped in Jetpack's ThemeProvider, so the --jp-* tokens are absent. |
| 3 |
// isolation keeps the z-indexes inside the banner from competing with sticky |
| 4 |
// page headers (also z-index: 1, earlier in the DOM) — without it the banner |
| 5 |
// text paints over the header when scrolled underneath. |
| 6 |
.jetpack-ai-banner { |
| 7 |
position: relative; |
| 8 |
isolation: isolate; |
| 9 |
background: #003010; |
| 10 |
border-radius: 8px; |
| 11 |
padding: 32px; |
| 12 |
overflow: hidden; |
| 13 |
display: flex; |
| 14 |
align-items: flex-start; |
| 15 |
box-sizing: border-box; |
| 16 |
} |
| 17 |
|
| 18 |
.jetpack-ai-banner__content { |
| 19 |
position: relative; |
| 20 |
z-index: 1; |
| 21 |
// Forces the text onto its own compositor layer. Without this, Chromium |
| 22 |
// lets the glyphs escape the wp-admin scroll container's rounded clip and |
| 23 |
// draw over the sticky header / admin bar when the banner straddles the |
| 24 |
// scrollport's top edge. |
| 25 |
transform: translateZ(0); |
| 26 |
display: flex; |
| 27 |
flex-direction: column; |
| 28 |
gap: 12px; |
| 29 |
max-inline-size: 520px; |
| 30 |
} |
| 31 |
|
| 32 |
.jetpack-ai-banner__title { |
| 33 |
color: #daffdc; |
| 34 |
font-size: 24px; |
| 35 |
line-height: 40px; |
| 36 |
font-weight: 500; |
| 37 |
margin: 0; |
| 38 |
} |
| 39 |
|
| 40 |
.jetpack-ai-banner__description { |
| 41 |
color: #daffdc; |
| 42 |
font-size: 13px; |
| 43 |
line-height: 20px; |
| 44 |
margin: 0; |
| 45 |
} |
| 46 |
|
| 47 |
.jetpack-ai-banner__actions { |
| 48 |
display: flex; |
| 49 |
gap: 8px; |
| 50 |
margin-block-start: 16px; |
| 51 |
} |
| 52 |
|
| 53 |
// Primary CTA: bright green per the design; !important beats the Button |
| 54 |
// component's own variant colors. |
| 55 |
.jetpack-ai-banner__cta { |
| 56 |
background-color: #48ff50 !important; |
| 57 |
color: #003010 !important; |
| 58 |
border-color: #48ff50 !important; |
| 59 |
|
| 60 |
&:hover { |
| 61 |
background-color: #3de046 !important; |
| 62 |
border-color: #3de046 !important; |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
// Secondary action beside the CTA: plain green text on the dark banner. |
| 67 |
.jetpack-ai-banner__secondary { |
| 68 |
color: #48ff50 !important; |
| 69 |
|
| 70 |
&:hover { |
| 71 |
color: #3de046 !important; |
| 72 |
} |
| 73 |
} |
| 74 |
|
| 75 |
.jetpack-ai-banner__close { |
| 76 |
position: absolute; |
| 77 |
inset-block-start: 8px; |
| 78 |
inset-inline-end: 8px; |
| 79 |
z-index: 1; |
| 80 |
color: #fff !important; |
| 81 |
|
| 82 |
&:hover { |
| 83 |
color: #daffdc !important; |
| 84 |
} |
| 85 |
} |
| 86 |
|
| 87 |
.jetpack-ai-banner__orb { |
| 88 |
position: absolute; |
| 89 |
border-radius: 50%; |
| 90 |
pointer-events: none; |
| 91 |
inline-size: 180px; |
| 92 |
block-size: 180px; |
| 93 |
background: linear-gradient(to right, #04c, #48ff50); |
| 94 |
// Shared by both orbs so the top glow and the bottom sphere line up |
| 95 |
// on the same vertical axis. |
| 96 |
inset-inline-end: 56px; |
| 97 |
|
| 98 |
&--top { |
| 99 |
inset-block-start: -96px; |
| 100 |
filter: blur(25px); |
| 101 |
} |
| 102 |
|
| 103 |
&--bottom { |
| 104 |
inset-block-end: -96px; |
| 105 |
} |
| 106 |
} |
| 107 |
|