mirror of https://github.com/docker/docs.git
51 lines
1.3 KiB
CSS
51 lines
1.3 KiB
CSS
/* callouts = blockquotes with classes
|
|
*
|
|
* Note: the left border is set using a custom property
|
|
* in tailwind.config.js
|
|
*
|
|
* */
|
|
|
|
.prose blockquote {
|
|
@apply bg-blue-light-100 p-4 font-normal not-italic dark:bg-blue-dark-100;
|
|
quotes: none;
|
|
> *:first-child {
|
|
@apply relative ml-5 mt-0 before:absolute before:-left-5 before:font-icons before:content-['info'];
|
|
}
|
|
*:last-child {
|
|
@apply mb-0 after:content-none;
|
|
}
|
|
|
|
&.warning {
|
|
@apply border-l-red-light bg-red-light-100 dark:border-l-red-dark dark:bg-red-dark-100;
|
|
> *:first-child {
|
|
@apply before:content-['dangerous'];
|
|
}
|
|
}
|
|
|
|
&.important {
|
|
@apply border-l-amber-light bg-amber-light-100 dark:border-l-amber-dark dark:bg-amber-dark-100;
|
|
> *:first-child {
|
|
@apply before:content-['warning'];
|
|
}
|
|
}
|
|
|
|
&.tip {
|
|
@apply border-l-green-light bg-green-light-100 dark:border-l-green-dark dark:bg-green-dark-100;
|
|
> *:first-child {
|
|
@apply before:content-['lightbulb'];
|
|
}
|
|
}
|
|
|
|
&.experimental {
|
|
> *:first-child {
|
|
@apply before:content-['science'];
|
|
}
|
|
}
|
|
&.restricted {
|
|
@apply border-l-violet-light bg-violet-light-100 dark:border-l-violet-dark dark:bg-violet-dark-100;
|
|
> *:first-child {
|
|
@apply before:content-['rocket\_launch'];
|
|
}
|
|
}
|
|
}
|