mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Fix .card-code corners inside a rounded card (#2993)
This commit is contained in:
1 parent
57a29ebb01
commit
f31128705f
2 files changed
+17
No files matched your search
@@ -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`.
|
||||
@@ -535,6 +535,17 @@ Card code
|
||||
*/
|
||||
.card-code {
|
||||
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 {
|
||||
margin: 0;
|
||||
@@ -544,6 +555,7 @@ Card code
|
||||
pre {
|
||||
margin: 0 !important;
|
||||
border: 0 !important;
|
||||
@include border-radius(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user