consento-org / consento-website

Ghost theme used for consent.org domain
https://consento.org
Other
1 stars 0 forks source link

Font in top menu not elegant #32

Closed martinheidegger closed 4 years ago

martinheidegger commented 4 years ago

Currently the font in the top menu looks like this:

Screen Shot 2020-02-05 at 14 19 44

However, in previous designs that did not have a brutal font, no uppercase letters, a smaller size and better spacing: https://github.com/consento-org/consento-website/issues/11#issuecomment-581209409

Torgian commented 4 years ago

My mistake, I overlooked this even though it's in the new design. Note: WorkSans-Medium, 21px, 27px line height, rgba(70,70,70,0.87)

Torgian commented 4 years ago

@martinheidegger for these, do you want them to turn red on hover, or change opacity? For now I will switch to changing opacity, but it can be reversed to turning red if you want.

Torgian commented 4 years ago

Screenshots below, please close / comment as necessary. Commit Link

I had to add media queries for the nav bar so that nothing went off screen or overlapped. First screen is from tablet mode.

Screen Shot 2020-02-05 at 7 43 19 PM Screen Shot 2020-02-05 at 7 42 56 PM
martinheidegger commented 4 years ago

The spacing looked weird to me so I measured it in the browser and compared it to the design:


Screen Shot 2020-02-05 at 23 02 28

→ Then I looked in the css spec and found a specified letter-spacing:


Screen Shot 2020-02-05 at 23 04 45

→ Changing it to 0 was much closer to the actual design:


Screen Shot 2020-02-05 at 23 09 09

→ I also noticed some vertical alignment differences:


Screen Shot 2020-02-05 at 23 19 48 Screen Shot 2020-02-05 at 23 20 13

→ Which is probably a little harder to get right, but somehow the balance seems off. Maybe adjust the padding a little?


Furthermore I wondered if the colors are off. The screenshot was a bit blurry and the background darker, but after investigation...


Screen Shot 2020-02-05 at 23 29 19

→ ... it turns out the colors are off indeed. The design had #000 while the web color is #3D444A. So I looked into the CSS again and it turns out that you did set the color correctly:

https://github.com/consento-org/consento-website/blob/19622aec98b8eb69d1eb00bb16e22bd2676e8500/partials/navigation.hbs#L11

but the menu.sass file defines in a stronger selector (.menu-item a is weaker than #menu ul a) the color as inherit:

https://github.com/consento-org/consento-website/blob/19622aec98b8eb69d1eb00bb16e22bd2676e8500/assets/main/sass/layout/_menu.scss#L23

....which means that the color of the menu list is used instead of the color of the list item:

https://github.com/consento-org/consento-website/blob/19622aec98b8eb69d1eb00bb16e22bd2676e8500/assets/main/sass/layout/_menu.scss#L12

... it looks like #42 is the issue that should be solved first: Move all the design back into the sass file and generate one common CSS file that is used. It might even be helping with #43.


Also in regards to the colors: The button color is blue (#008BDC) in @marcchataigner's design and not consento-blue. Which is probably on purpose :wink:.


One last thing to mention about the button, in the design's vertical/horizontal ratio is closer to rectangular and vertically centered:

Screen Shot 2020-02-05 at 23 53 51

This is a common webdesign problem that can be solved either the hard way, by adjusting every vertical layout by hand - which can be impossible for some devices as the font-rendering is different, or it can be solved using flexbox

Torgian commented 4 years ago

I am going to review this right now. Since we made some changes yesterday with the css migration, it may have affected this issue.

Torgian commented 4 years ago

It appears the design problems are still there, so I will start working on this.

Torgian commented 4 years ago

Please refer to PR 61

I made a couple of minor changes. This seems to have fixed some spacing issues.

Torgian commented 4 years ago
Screen Shot 2020-02-16 at 5 40 07 PM
Torgian commented 4 years ago
Screen Shot 2020-02-16 at 5 41 57 PM
martinheidegger commented 4 years ago

This seems to have fixed some spacing issues.

Looking forward to all issues fixed.

Torgian commented 4 years ago

@consento-org/design I need confirmation on the button colors. In Zeplin, the border colors are #2989d6, and the text is rgba(9, 120, 208, 0.87) ( or hex #0978D0 ) Is this correct, or do the colors need to be one or the other?

marcchataigner-zz commented 4 years ago

@Torgian on the zeplin file, I see that the blue is the consent-blue : #37afc9 for buttons (the test your privacy level, be the first to use it, etc. Is it the color you are looking for?

Torgian commented 4 years ago

Oh, my mistake. I meant the Download button in the navigation menu.

marcchataigner-zz commented 4 years ago

Ah, I see. The way it runs now in the write.georepublic.net, it looks good to me. The blue edge is slightly darker than the filled in blue shade when the mouse over comes, and it is the correct dynamic for me. :-)

marcchataigner-zz commented 4 years ago

Only maybe that I look at it, the download label could be aligned in height with the button center, like you have in other buttons. Thee text can be 1 or 2 px down. But this is not a key requirement, just optical illusion fun :-D

Screen Shot 2020-02-17 at 11 33 45

Torgian commented 4 years ago

Yes, I'm working on this right now actually. I started by removing the download_btn class and adding things one by one. When I remove it, everything is centered:

Screen Shot 2020-02-17 at 10 32 10 AM

I narrowed it down to the culprit: It's the font. If I remove all the styling, and change the font to Catamaran-SemiBold, it looks off-center ( by exactly one pixel. ) It's annoying.

I've tried a few simple fixes, but it ends up changing the overall look of the button.

No styling ( other than default styling from ghost / bootstrap ): 20 px top and bottom.

Screen Shot 2020-02-17 at 10 32 10 AM

Change the font :

Screen Shot 2020-02-17 at 10 38 48 AM

Keep in mind that bootstrap automatically aligns text in buttons to the middle ( it's part of the .btn class )

Torgian commented 4 years ago

Fixed. Refer to this commit While the font family changes how the text is spaced, the font size also plays a part. I found that it was being over-ridden by ghost's base styling, so I added the !important tag and reduced the font size by one. This gives it a centered appearance.

Screen Shot 2020-02-17 at 11 00 10 AM Screen Shot 2020-02-17 at 11 00 07 AM