-
Notifications
You must be signed in to change notification settings - Fork 46
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
Make the ReactOS logo look less blurry on big screens #52
base: master
Are you sure you want to change the base?
Conversation
Why it was blurry? |
Had to edit the HTML to get rid of logo-small (what was that ever for?) and not sure if I broke something, so please have a second look. |
It was 225x54 pixels, which is the exact size for a 96dpi screen. Doing graphics pixel-exact on website was great 10 years ago, but that's no longer the case |
|
Looks like logo image has a transparent gap on the top, but doesn't have a matching bottom gap |
Sounds nice! Would that resize the image proportionally these days or do I still have to set a matching |
Oh, I don't remember that times :) You can safely set only one dimension |
Does any of these CSS properties help: https://css-tricks.com/almanac/properties/i/image-rendering/ ? |
Tried
|
class="hidden-xs hidden-sm"> | ||
<img src="{{ .Site.BaseURL }}{{ .Site.Params.logo_small }}" alt="{{ .Title }} logo" | ||
class="visible-xs visible-sm"> | ||
<img src="{{ .Site.BaseURL }}{{ .Site.Params.logo }}" alt="{{ .Title }} logo" style="height: 54px; width: 227px;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem basically is that we're enforcing Site.Params.logo por any kind of resolution. Reactos_0.png seems to be a 227x54 image, and this is cool for small devices but not for bigger resolutions.
The trick here is to use "srcset" instead "src": <img srcset=" {{ .Site.BaseURL }}{{.Site.Params.logo}} 1x, {{.site.BaseUrl }}{{.Site.Params.biggerlogo}} 2x" src="{{.site.BaseUrl }}{{.Site.Params.biggerlogo}}" alt="{{ .Title }}>
And a Bigger Logo is needed. This is the easiest trick, otherwise we would need to use "size".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably need to use SVG then.
No description provided.