mirror of
https://github.com/docker/docs.git
synced 2026-03-28 14:58:53 +07:00
45 lines
1.1 KiB
CSS
45 lines
1.1 KiB
CSS
/* callouts = blockquotes with classes
|
|
*
|
|
* Note: the left border is set using a custom property
|
|
* in tailwind.config.js
|
|
*
|
|
* */
|
|
|
|
.prose blockquote {
|
|
@apply p-4 not-italic font-normal bg-blue-light-100 dark:bg-blue-dark-100;
|
|
quotes: none;
|
|
> *:first-child {
|
|
@apply mt-0 before:font-icons flex gap-2 before:content-['info'];
|
|
}
|
|
*:last-child {
|
|
@apply mb-0 after:content-none;
|
|
}
|
|
|
|
&.warning {
|
|
@apply bg-red-light-100 border-l-red-light dark:bg-red-dark-100 dark:border-l-red-dark;
|
|
}
|
|
|
|
&.important {
|
|
@apply bg-amber-light-100 border-l-amber-light dark:bg-amber-dark-100 dark:border-l-amber-dark;
|
|
}
|
|
|
|
&.tip {
|
|
@apply bg-green-light-100 border-l-green-light dark:bg-green-dark-100 dark:border-l-green-dark;
|
|
> *:first-child {
|
|
@apply before:content-['thumb\_up']
|
|
}
|
|
}
|
|
|
|
&.experimental {
|
|
> *:first-child {
|
|
@apply before:content-['science']
|
|
}
|
|
}
|
|
&.restricted {
|
|
@apply bg-violet-light-100 border-l-violet-light dark:bg-violet-dark-100 dark:border-l-violet-dark;
|
|
> *:first-child {
|
|
@apply before:content-['rocket\_launch']
|
|
}
|
|
}
|
|
}
|