Fix .card-code corners inside a rounded card (#2993)

This commit is contained in:
Paweł Kuna authored and GitHub committed 2026-09-08 00:31:54 +02:00
1 parent 57a29ebb01
commit f31128705f
2 files changed
+17

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Fixed `.card-code` so the code block follows the card corners instead of drawing its own `border-radius`.
+12
View File
@@ -535,6 +535,17 @@ Card code
*/ */
.card-code { .card-code {
padding: 0; padding: 0;
overflow: hidden;
// The code block is a dark box, so it follows the card's corners: rounded at
// the card's top or bottom edge, square when another section sits next to it.
&:first-child {
@include border-top-radius(var(--card-border-radius));
}
&:last-child {
@include border-bottom-radius(var(--card-border-radius));
}
.highlight { .highlight {
margin: 0; margin: 0;
@@ -544,6 +555,7 @@ Card code
pre { pre {
margin: 0 !important; margin: 0 !important;
border: 0 !important; border: 0 !important;
@include border-radius(0);
} }
} }