feat: admonition shortcode

This commit is contained in:
st1020 2023-10-22 19:11:14 +08:00
parent 3d08a0057e
commit fca98a89e7
16 changed files with 126 additions and 0 deletions

View file

@ -1133,6 +1133,10 @@ body {
z-index: 50;
}
.m-1 {
margin: 0.25rem;
}
.\!my-0 {
margin-top: 0px !important;
margin-bottom: 0px !important;
@ -1168,6 +1172,11 @@ body {
margin-bottom: 1rem;
}
.mx-2 {
margin-left: 0.5rem;
margin-right: 0.5rem;
}
.mb-1 {
margin-bottom: 0.25rem;
}
@ -1260,6 +1269,14 @@ body {
height: 100%;
}
.h-10 {
height: 2.5rem;
}
.h-4 {
height: 1rem;
}
.min-h-\[18rem\] {
min-height: 18rem;
}
@ -1292,6 +1309,14 @@ body {
width: 100%;
}
.w-10 {
width: 2.5rem;
}
.w-4 {
width: 1rem;
}
.max-w-3xl {
max-width: 48rem;
}
@ -1384,6 +1409,10 @@ body {
border-radius: 0.5rem;
}
.rounded-md {
border-radius: 0.375rem;
}
.rounded-l-md {
border-top-left-radius: 0.375rem;
border-bottom-left-radius: 0.375rem;
@ -1394,14 +1423,42 @@ body {
border-bottom-right-radius: 0.375rem;
}
.rounded-l-lg {
border-top-left-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
}
.rounded-r-lg {
border-top-right-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
}
.rounded-t-lg {
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
}
.border-\[0\.5px\] {
border-width: 0.5px;
}
.border-l-4 {
border-left-width: 4px;
}
.border-black\/10 {
border-color: rgb(0 0 0 / 0.1);
}
.border-l-\[\#651fff\] {
--tw-border-opacity: 1;
border-left-color: rgb(101 31 255 / var(--tw-border-opacity));
}
.border-l-\[var\(--admonition-border\)\] {
border-left-color: var(--admonition-border);
}
.\!bg-black\/5 {
background-color: rgb(0 0 0 / 0.05) !important;
}
@ -1428,6 +1485,14 @@ body {
background-color: rgb(255 255 255 / 0.8);
}
.bg-\[var\(--admonition-bg\)\] {
background-color: var(--admonition-bg);
}
.bg-\[var\(--admonition-color\)\] {
background-color: var(--admonition-color);
}
.p-2 {
padding: 0.5rem;
}
@ -1444,6 +1509,10 @@ body {
padding: 1.5rem;
}
.p-1 {
padding: 0.25rem;
}
.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
@ -1706,6 +1775,14 @@ article {
background: var(--url) center center/cover no-repeat;
}
.\[background\:var\(--url\)\] {
background: var(--url);
}
.\[background\:var\(--url\)_center_center_no-repeat\] {
background: var(--url) center center no-repeat;
}
:is(.dark .dark\:prose-invert) {
--tw-prose-body: var(--tw-prose-invert-body);
--tw-prose-headings: var(--tw-prose-invert-headings);