Permalink
Please
sign in to comment.
Browse files
feat(links): add new style and improve existing style for hyperlinks
BREAKING CHANGE: Style of muted links have been changed slightly. It is still muted but has modern animation. fix: #533 fix: #519
- Loading branch information
Showing
with
121 additions
and 27 deletions.
- +43 −0 documentation/content/Components/links.md
- +0 −25 static/css/elegant.css
- +3 −2 static/css/elegant.prod.css
- +75 −0 static/css/links.css
@@ -0,0 +1,43 @@ | ||
Title: Hyperlinks Styles | ||
Tags: style | ||
Category: Components | ||
Date: 2019-12-02 15:09 | ||
Slug: hyperlinks-styles | ||
Authors: Talha Mansoor | ||
Subtitle: | ||
Summary: | ||
Keywords: | ||
|
||
Elegant has three styles for hyperlinks that you can use. | ||
|
||
## Muted Style | ||
|
||
This is the default style of link. | ||
|
||
[Example Link - Use Firefox Browser](https://www.mozilla.org/en-US/firefox/new/) to support open web standards. | ||
|
||
This style is very suitable for long-form articles. To read the rationale behind this choice, read our help article [Why Does Elegant Look The Way It Does?]({filename}../Contributing/why-look-and-feel.md). | ||
|
||
## Amplified Style | ||
|
||
We understand not all links should be muted. Some links require attention. | ||
|
||
[Example Link - Use Firefox Browser](https://www.mozilla.org/en-US/firefox/new/){: class="ampl"} to support open web standards. | ||
|
||
To use this style, you need to enable [Markdown attribute list extension](https://python-markdown.github.io/extensions/attr_list/){:class="ampl"}. | ||
|
||
``` | ||
# Plugins and extensions | ||
MARKDOWN = { | ||
"extension_configs": { | ||
"markdown.extensions.extra": {}, | ||
"markdown.extensions.meta": {}, | ||
} | ||
} | ||
``` | ||
|
||
Then use this style using `ampl` class. | ||
|
||
```text | ||
[Example Link](https://www.mozilla.org/){: class="ampl"} blah blah | ||
``` |

Oops, something went wrong.
0 comments on commit
87fd3d3