Skip to content

Update the size of the Py icon on the release page template #2232

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

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

ntoll
Copy link
Member

@ntoll ntoll commented Oct 28, 2024

Description

The PyScript logo on release pages was too big for mobile devices.

Changes

This PR changes the size of the logo so it works well on mobile and desktop.

Checklist

  • I have checked make build works locally.
  • I have created / updated documentation for this change (if applicable).

@WebReflection
Copy link
Contributor

I believe the sooner we switch to CSS media queries the better but for the time being this looks OKish to me ... do you want me to suggest a better change? Happy to do so, otherwise I can tackle this after landing it.

@WebReflection
Copy link
Contributor

WebReflection commented Oct 28, 2024

something like this should do:

#header > svg {
  width: 512px;
  height: 173px;
}

@media only screen and (max-width : 400px) {
  #header > svg {
    width: 256px;
    height: 87px;
  }
}

edit P.S. this requires you to remove width and height from the SVG element declaration

@ntoll ntoll merged commit 3f19e00 into main Oct 28, 2024
1 check passed
@ntoll ntoll deleted the release-page-icon-size branch October 28, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants