You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/badges_buttons.md
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Badges, Buttons & Icons
1
+
# Badges, Buttons & Icons {octicon}`rocket`
2
2
3
3
(badges)=
4
4
@@ -152,29 +152,27 @@ class
152
152
153
153
Inline icon roles are available for both the [GitHub octicon](https://octicons-git-v2.primer.now.sh/octicons/) or [FontAwesome](https://fontawesome.com/icons?d=gallery&m=free) libraries.
154
154
155
-
Octicon icons are added as SVG's directly into the page, for either 16px (`octicon-16`) or 24px (`octicon-24`) sizes.
156
-
Additional CSS classes can be added to the SVG after a semi-colon (`;`) delimiter.
155
+
Octicon icons are added as SVG's directly into the page with the `octicon` role.
157
156
158
-
A coloured icon: {octicon-16}`report;sd-text-info`, some more text.
157
+
By default the icon will be of height `1em` (i.e. the height of the font).
158
+
A specific height can be set after a semi-colon (`;`) with units of either `px`, `em` or `rem`.
159
+
Additional CSS classes can also be added to the SVG after a second semi-colon (`;`) delimiter.
160
+
161
+
A coloured icon: {octicon}`report;1em;sd-text-info`, some more text.
159
162
160
163
````{tab-set-code}
161
-
```markdown
162
-
A coloured icon: {octicon-16}`report;sd-text-info`, some more text.
0 commit comments