Skip to content

Commit 7624229

Browse files
committed
[Site] Rework "Read the docs" button on packages pages
1 parent 3bc80c5 commit 7624229

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

ux.symfony.com/assets/icons/fluent-emoji-flat/open-book.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

ux.symfony.com/assets/styles/components/_DocsLink.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@
1919
border-radius: var(--border-radius-sm, .5rem);
2020
height: 52px;
2121
opacity: 1;
22-
padding: var(--space-small, .25rem) var(--space-large, 1rem);
22+
padding: var(--space-small, .75rem) var(--space-large, 1.5rem);
2323
transform: translateY(50%);
2424

2525
p {
2626
margin-bottom: 0;
2727
}
2828

2929
svg {
30-
fill: none;
31-
position: relative;
32-
bottom: 2px;
30+
font-size: 1.5rem;
3331
}
3432

3533
&:hover {
@@ -79,5 +77,3 @@
7977
margin-bottom: 0;
8078
}
8179
}
82-
83-

ux.symfony.com/templates/components/DocsLink.html.twig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
<div class="DocsLink_content">
33
{% if isSmall %}
44
<p class="d-flex align-items-center">
5-
<twig:ux:icon name="fluent-emoji-flat:open-book" class="Icon me-2" font-size="32"/>
5+
<twig:ux:icon name="mdi:book-open-variant-outline" class="Icon me-2" />
6+
67
<a href="{{ url }}" class="DocsLink_link"
78
rel="{{ isExternal ? 'external noopened noreferrer' }}"
89
>{{ title }}</a>
910
</p>
1011
{% else %}
1112
<p class="DocsLink_title ubuntu-header">
12-
<a href="{{ url }}" class="DocsLink_link"
13-
rel="{{ isExternal ? 'external noopened noreferrer' }}"
14-
>{{ title }}</a>
13+
<a href="{{ url }}" class="DocsLink_link" rel="{{ isExternal ? 'external noopened noreferrer' }}">
14+
{{ title }}
15+
</a>
1516
{% if icon|default %}
1617
<twig:ux:icon name="{{ icon }}" class="Icon DocsLink_arrow"/>
1718
{% elseif isExternal %}

0 commit comments

Comments
 (0)