mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Adds an .external-link utility class, to be used together with the existing .link utility, for adding the correct styles to the open_in_new icon without having to duplicate the markup each time. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
39 lines
689 B
CSS
39 lines
689 B
CSS
/* global styles */
|
|
|
|
@layer base {
|
|
[x-cloak] {
|
|
display: none !important;
|
|
}
|
|
|
|
:root {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
}
|
|
|
|
/* utility classes */
|
|
|
|
@layer utilities {
|
|
.link {
|
|
@apply text-blue-light underline underline-offset-2 dark:text-blue-dark;
|
|
}
|
|
|
|
.external-link {
|
|
.icon:after {
|
|
@apply text-base ml-1;
|
|
}
|
|
}
|
|
|
|
.invertible {
|
|
@apply dark:hue-rotate-180 dark:invert dark:filter;
|
|
}
|
|
|
|
.sidebar-hover {
|
|
@apply hover:bg-gray-light-200 hover:dark:bg-gray-dark-200;
|
|
}
|
|
|
|
.sidebar-underline {
|
|
@apply underline decoration-blue-light decoration-4 underline-offset-4 dark:decoration-blue-dark;
|
|
}
|
|
}
|