Skip to content

Commit

Permalink
#818: adding better icon, from Material Design Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronreed708 committed Apr 8, 2024
1 parent 3926fc4 commit 8ca94a2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 1 addition & 5 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
.md-header__button__LiveDemo {
color: red;
margin-left: 10px;
}
.md-header__button__LiveDemo svg {
margin: auto;
vertical-align: middle;
display: inline-block;
font-size: 0.65rem;
}
8 changes: 6 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ theme:
logo: theme/images/logo.png
icon:
logo: logo
launch: material/launch

# Plugins
plugins:
Expand Down Expand Up @@ -116,8 +117,11 @@ markdown_extensions:
- pymdownx.caret
- pymdownx.details
- pymdownx.emoji:
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
options:
custom_icons:
- overrides/.icons
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
Expand Down
5 changes: 3 additions & 2 deletions overrides/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
</label>
{% include "partials/search.html" %}
<a class="md-header__button__LiveDemo" href="https://try.a11y-theme-builder.finos.org/" target="_blank">
<span class="twemoji">
{% include ".icons/youtube.svg" %}
<span class="md-source__icon md-icon">
{% set icon = config.theme.icon.launch or "material/launch" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</span>
Live Demo
</a<>
Expand Down

0 comments on commit 8ca94a2

Please sign in to comment.