-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
4 changed files
with
121 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.