docs: square up inline icons CSS (#12159)

* square-up-inline-icons

* use-default-alignment

* make-mcp-icon-use-currentColor

* dont-rule-images

* rules-for-svg
This commit is contained in:
Mendon Kissling
2026-03-12 14:33:01 -04:00
committed by GitHub
parent 329ae37230
commit 170c986714
2 changed files with 11 additions and 2 deletions

View File

@@ -481,3 +481,12 @@ body {
color: var(--ifm-color-emphasis-500) !important;
size: 16px !important;
}
/* Inline Icons */
.markdown svg,
.markdown .icon {
width: 16px !important;
height: 16px !important;
stroke-width: 2.5 !important;
display: inline-block;
}

View File

@@ -1,7 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
<g clip-path="url(#clip0_93_974)">
<path d="M10.3518 1.67465C9.70545 1.02829 8.65745 1.02827 8.01105 1.67467L1.769 7.9167C1.55354 8.13217 1.20421 8.13217 0.988744 7.9167C0.773283 7.70124 0.773283 7.35191 0.988745 7.13645L7.2308 0.894407C8.3081 -0.182884 10.0548 -0.182915 11.132 0.894397C11.7702 1.53249 12.0303 2.40541 11.9125 3.23499C12.7421 3.11719 13.615 3.37733 14.2531 4.01542L14.2856 4.04793L14.2857 4.04802C15.3629 5.12534 15.3629 6.87194 14.2856 7.94921L8.64024 13.5946C8.56844 13.6664 8.56843 13.7828 8.64023 13.8546L9.79945 15.0139C10.0149 15.2294 10.0149 15.5787 9.79942 15.7942C9.58395 16.0096 9.23462 16.0096 9.01917 15.7941L7.86 14.6349C7.35727 14.1322 7.35725 13.3171 7.85999 12.8144L13.5053 7.16896C14.1517 6.52258 14.1518 5.47458 13.5053 4.8282L13.4729 4.79569L13.4728 4.7956C12.8269 4.14986 11.7802 4.14934 11.1337 4.794L6.48305 9.44472L6.48055 9.44721L6.41802 9.50973C6.20256 9.72519 5.85323 9.7252 5.63777 9.50974C5.4223 9.29428 5.4223 8.94494 5.63776 8.72948L10.3532 4.01397C10.9982 3.36747 10.9977 2.32054 10.3518 1.67465Z" fill="white"/>
<path d="M9.57157 3.23517C9.78703 3.01971 9.78703 2.67038 9.57157 2.45492C9.35611 2.23946 9.00678 2.23946 8.79131 2.45492L4.17478 7.07143C3.09747 8.14872 3.09752 9.8954 4.17479 10.9727C5.2521 12.05 6.99876 12.05 8.07607 10.9727L12.6926 6.35619C12.908 6.14073 12.908 5.7914 12.6926 5.57594C12.4771 5.36048 12.1278 5.36048 11.9123 5.57594L7.29581 10.1925C6.64943 10.8388 5.60143 10.8388 4.95505 10.1925C4.30865 9.54605 4.30867 8.49804 4.95504 7.85169L9.57157 3.23517Z" fill="white"/>
<path d="M10.3518 1.67465C9.70545 1.02829 8.65745 1.02827 8.01105 1.67467L1.769 7.9167C1.55354 8.13217 1.20421 8.13217 0.988744 7.9167C0.773283 7.70124 0.773283 7.35191 0.988745 7.13645L7.2308 0.894407C8.3081 -0.182884 10.0548 -0.182915 11.132 0.894397C11.7702 1.53249 12.0303 2.40541 11.9125 3.23499C12.7421 3.11719 13.615 3.37733 14.2531 4.01542L14.2856 4.04793L14.2857 4.04802C15.3629 5.12534 15.3629 6.87194 14.2856 7.94921L8.64024 13.5946C8.56844 13.6664 8.56843 13.7828 8.64023 13.8546L9.79945 15.0139C10.0149 15.2294 10.0149 15.5787 9.79942 15.7942C9.58395 16.0096 9.23462 16.0096 9.01917 15.7941L7.86 14.6349C7.35727 14.1322 7.35725 13.3171 7.85999 12.8144L13.5053 7.16896C14.1517 6.52258 14.1518 5.47458 13.5053 4.8282L13.4729 4.79569L13.4728 4.7956C12.8269 4.14986 11.7802 4.14934 11.1337 4.794L6.48305 9.44472L6.48055 9.44721L6.41802 9.50973C6.20256 9.72519 5.85323 9.7252 5.63777 9.50974C5.4223 9.29428 5.4223 8.94494 5.63776 8.72948L10.3532 4.01397C10.9982 3.36747 10.9977 2.32054 10.3518 1.67465Z" fill="currentColor"/>
<path d="M9.57157 3.23517C9.78703 3.01971 9.78703 2.67038 9.57157 2.45492C9.35611 2.23946 9.00678 2.23946 8.79131 2.45492L4.17478 7.07143C3.09747 8.14872 3.09752 9.8954 4.17479 10.9727C5.2521 12.05 6.99876 12.05 8.07607 10.9727L12.6926 6.35619C12.908 6.14073 12.908 5.7914 12.6926 5.57594C12.4771 5.36048 12.1278 5.36048 11.9123 5.57594L7.29581 10.1925C6.64943 10.8388 5.60143 10.8388 4.95505 10.1925C4.30865 9.54605 4.30867 8.49804 4.95504 7.85169L9.57157 3.23517Z" fill="currentColor"/>
</g>
<defs>
<clipPath id="clip0_93_974">

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB