-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show a visible link to the docs of each package
- Loading branch information
1 parent
fffd7c8
commit f913589
Showing
5 changed files
with
66 additions
and
19 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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 |
---|---|---|
@@ -1,17 +1,29 @@ | ||
<div {{ attributes.defaults({class: 'DocsLink'}) }}> | ||
<div {{ attributes.defaults({class: 'DocsLink DocsLink-' ~ size }) }}> | ||
<div class="DocsLink_content"> | ||
<p class="DocsLink_title ubuntu-header"> | ||
<a href="{{ url }}" class="DocsLink_link" | ||
rel="{{ isExternal ? 'external noopened noreferrer' }}" | ||
>{{ title }}</a> | ||
{% if icon|default %} | ||
<twig:ux:icon name="{{ icon }}" class="Icon DocsLink_arrow"/> | ||
{% elseif isExternal %} | ||
<twig:ux:icon name="arrow-right" style="transform: rotate(-45deg);" class="Icon DocsLink_arrow"/> | ||
{% endif %} | ||
</p> | ||
<div class="DocsLink_description"> | ||
<p>{{ text }}</p> | ||
</div> | ||
{% if isSmall %} | ||
<p class="d-flex align-items-center"> | ||
<twig:ux:icon name="fluent-emoji-flat:open-book" class="Icon me-2" font-size="32"/> | ||
<a href="{{ url }}" class="DocsLink_link" | ||
rel="{{ isExternal ? 'external noopened noreferrer' }}" | ||
>{{ title }}</a> | ||
</p> | ||
{% else %} | ||
<p class="DocsLink_title ubuntu-header"> | ||
<a href="{{ url }}" class="DocsLink_link" | ||
rel="{{ isExternal ? 'external noopened noreferrer' }}" | ||
>{{ title }}</a> | ||
{% if icon|default %} | ||
<twig:ux:icon name="{{ icon }}" class="Icon DocsLink_arrow"/> | ||
{% elseif isExternal %} | ||
<twig:ux:icon name="arrow-right" style="transform: rotate(-45deg);" class="Icon DocsLink_arrow"/> | ||
{% endif %} | ||
</p> | ||
{% endif %} | ||
|
||
{% if text %} | ||
<div class="DocsLink_description"> | ||
<p>{{ text }}</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> |
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