design: reduce padding for pre in tabs
This commit is contained in:
@@ -86,7 +86,7 @@ const md = new MarkdownIt({
|
|||||||
const isChecked = data.isActive || (!currentTabActiveSet && data.index === 0)
|
const isChecked = data.isActive || (!currentTabActiveSet && data.index === 0)
|
||||||
const checked = isChecked ? " checked" : ""
|
const checked = isChecked ? " checked" : ""
|
||||||
const title = data.title.replace(/"/g, """)
|
const title = data.title.replace(/"/g, """)
|
||||||
return `<input type="radio" name="md-tabs-${currentTabGroup}" class="tab" aria-label="${title}"${checked}>\n<div class="tab-content bg-base-100 border-base-300 rounded-box p-6">\n`
|
return `<input type="radio" name="md-tabs-${currentTabGroup}" class="tab" aria-label="${title}"${checked}>\n<div class="tab-content bg-base-100 border-base-300 rounded-box p-2">\n`
|
||||||
},
|
},
|
||||||
tabCloseRender: () => "</div>\n"
|
tabCloseRender: () => "</div>\n"
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -233,3 +233,8 @@ iframe {
|
|||||||
.todo-notes li:has(> input[type="checkbox"]) {
|
.todo-notes li:has(> input[type="checkbox"]) {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user