mirror of
https://github.com/docker/docs.git
synced 2026-03-28 14:58:53 +07:00
Adds an .icon utility class to set ligature text via via a data-icon attribute on the element. This is a workaround to prevent crawlers from picking up the font ligature innertext in html directly. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
20 lines
396 B
CSS
20 lines
396 B
CSS
@layer utilities {
|
|
.icon {
|
|
font-family: "Material Symbols Rounded";
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-size: 24px; /* Preferred icon size */
|
|
display: inline-block;
|
|
line-height: 1;
|
|
text-transform: none;
|
|
letter-spacing: normal;
|
|
word-wrap: normal;
|
|
white-space: nowrap;
|
|
direction: ltr;
|
|
}
|
|
|
|
.icon:after {
|
|
content: attr(data-icon);
|
|
}
|
|
}
|