Skip to content

[site] display: package header docs link line break on mobile #2893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ux.symfony.com/assets/styles/components/_DocsLink.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
opacity: 1;
padding: var(--space-small, .75rem) var(--space-large, 1.5rem);
transform: translateY(50%);
transition-property: transform;
transition-duration: 0ms;

p {
margin-bottom: 0;
Expand All @@ -33,6 +35,14 @@
&:hover {
transform: translateY(50%);
}

@media screen and (max-width: 768px) {
transform: translateY(0);

&:hover {
transform: translateY(0);
}
}
}
}
.DocsLink_content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</p>
</div>

<div class="d-flex justify-content-center">
<div class="d-flex justify-content-center flex-column-reverse flex-md-row">
{% if command is not defined or command %}
<twig:TerminalCommand
aria-label="Composer command to install {{ package.humanName }}"
Expand All @@ -22,7 +22,7 @@
{% endif %}

<twig:DocsLink
class="ms-3"
class="ms-md-3 align-self-center"
size="sm"
title="Read the docs"
url="{{ package.officialDocsUrl }}"
Expand Down