mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
- Refactoring styles to prevent unwanted specificity issues by using tailwind directives - Improve color consistency for code blocks and other components by replacing adhoc hex values with theme colors Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
21 lines
616 B
CSS
21 lines
616 B
CSS
@layer components {
|
|
#TableOfContents {
|
|
nav {
|
|
@apply border-l-2 border-divider-light;
|
|
}
|
|
ul ul {
|
|
@apply pl-2;
|
|
}
|
|
a {
|
|
@apply block max-w-full truncate py-1 pl-2 hover:font-medium hover:no-underline;
|
|
&[aria-current="true"],
|
|
&:hover {
|
|
@apply border-l-2 border-l-gray-light bg-gradient-to-r from-gray-light-100 font-medium text-black dark:border-l-gray-dark dark:from-gray-dark-200 dark:text-white;
|
|
}
|
|
&:not([aria-current="true"]) {
|
|
@apply text-gray-light-600 hover:text-black dark:text-gray-dark-700 dark:hover:text-white;
|
|
}
|
|
}
|
|
}
|
|
}
|