Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Simplify POI panel CSS #335

Merged
merged 6 commits into from
Aug 14, 2019
Merged

Simplify POI panel CSS #335

merged 6 commits into from
Aug 14, 2019

Conversation

bbecquet
Copy link
Contributor

@bbecquet bbecquet commented Aug 13, 2019

Description

Simplify some markup and CSS in the POI panel, especially start using display: flexbox instead of float to improve some layouts (tested successfully on IE11) and simplify the complicated action buttons.

Why

Most layout DOM and CSS are far too complicated and use obsolete layout techniques. Ease future migration to another view framework.

amatissart
amatissart previously approved these changes Aug 14, 2019
Copy link
Contributor

@amatissart amatissart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, except a minor comment about margins

position: relative;
margin-bottom: 10px;
overflow: auto;
display: flex;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this margin-bottom, the "osm_contribute" div is packed below the buttons (when no other block is present)
image

Maybe add a margin-top on .osm_contribute ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I was a bit too quick to remove rules. I re-introduced a margin-bottom, as it's easier to manage only bottom margins when stacking components. It looks better indeed :)
Capture d’écran de 2019-08-14 17-52-58

@bbecquet bbecquet merged commit b8df7f1 into Qwant:master Aug 14, 2019
@bbecquet bbecquet deleted the poi-panel-css branch August 14, 2019 16:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants