[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libreoffice-website] LibreOffice website, search box and menu


On 28.7.2020 14.03, Mike Saunders wrote:
A search box was recently added to the main LibreOffice website,
https://www.libreoffice.org - and since then, the menus appear to be a
bit misaligned:

https://i.imgur.com/fQkqn37.png

Also note how for "Discover", the black box starts almost exactly at the
first letter, whereas for other menu headings, there's some padding on
the left. Anyone got any ideas about this?

A bit of a tricky question lacking details.

Who added the search box in there?
Where can we see a diff of the changes in HTML and CSS?
What is the reasoning behind the CSS changes?

Not having anything better to work with, I can see the previous state using Wayback Machine: https://web.archive.org/web/20200709173845/https://www.libreoffice.org/

In main.css, this is a new rule responsible for the discrepancy we see for "Discover" vs. the others:
ul.navbar-right > li:first-child > a {
padding-left: 0;
}

Also, the padding property for .navbar .nav > li > a was changed from 35px 16px to 35px 12px.

I don't understand what you mean exactly by "the menus appear to be a bit misaligned". The only change I see is for "Discover" and the thinner left-right padding for all top level items.

Ilmari

--
To unsubscribe e-mail to: website+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/website/
Privacy Policy: https://www.documentfoundation.org/privacy

Follow-Ups:
Re: [libreoffice-website] LibreOffice website, search box and menu"William Gathoye (LibreOffice)" <william.gathoye@libreoffice.org>
References:
[libreoffice-website] LibreOffice website, search box and menuMike Saunders <mike.saunders@documentfoundation.org>
Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.