File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed
Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -5,12 +5,14 @@ const { Content } = await entry.render();
55const { link, title } = entry .data ;
66---
77
8- <div class =" banner bg-accent-color text-accent-type-color" style ={ { display: ' none' }} data-title ={ title } >
9- <a class =" banner-content" href ={ link } target =" _blank" >
10- <Content />
11- </a >
12- <button id =" hideBanner" aria-label =" Hide banner" ><Icon kind =" close" /></button >
13- </div >
8+ <header >
9+ <div class =" banner bg-accent-color text-accent-type-color" style ={ { display: ' none' }} data-title ={ title } >
10+ <a class =" banner-content" href ={ link } target =" _blank" >
11+ <Content />
12+ </a >
13+ <button id =" hideBanner" aria-label =" Hide banner" ><Icon kind =" close" /></button >
14+ </div >
15+ </header >
1416
1517<script >
1618const banner = document.querySelector('.banner');
Original file line number Diff line number Diff line change 11<code
2- class ={ ` relative inline-block w-full bg-bg-gray-40 rounded-[1.25rem] p-sm my-md text-body-mono [&>pre]:text-wrap break-all code-box ${Astro .props .class } ` }
2+ class ={ ` relative inline-block w-full rounded-[1.25rem] p-sm my-md text-body-mono [&>pre]:text-wrap break-all code-box ${Astro .props .class } ` }
33>
44 <slot />
55</code >
Original file line number Diff line number Diff line change @@ -261,7 +261,6 @@ section,
261261}
262262
263263.astro-code ,
264- .code-box ,
265264.reference-item pre {
266265 background-color : var (--bg-gray-40 ) !important ;
267266 padding : var (--spacing-sm );
@@ -279,6 +278,17 @@ section,
279278 }
280279}
281280
281+ .code-box {
282+ background-color : #fff !important ;
283+ padding : var (--spacing-sm );
284+ max-width : 100% ;
285+ overflow-x : auto ;
286+ border-radius : 20px ;
287+ @media (max-width : $breakpoint-tablet ) {
288+ border-radius : 10px ;
289+ }
290+ }
291+
282292.reference-item pre code {
283293 background-color : transparent ;
284294}
You can’t perform that action at this time.
0 commit comments