]> git.openstreetmap.org Git - rails.git/commit
Rework sidebar to use padding on the sidebar_content div
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 16 Jun 2021 14:09:48 +0000 (15:09 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 16 Jun 2021 14:45:58 +0000 (15:45 +0100)
commitc8f0a81eb7043c297e050c1f3ff8a8cf7ff613bc
tree1d45bbc9b4c3fc73ed97c7e4146acce26e651dec
parentc2587b5b57e4664f79cc5587139df92663831434
Rework sidebar to use padding on the sidebar_content div

This saves every header, list, paragraph etc having to sort out their own padding. The couple of instances where we want edge-to-edge can be acheived using the negative margin spacing utilities.

The padding is based on $spacer so that it can be adjusted automatically via bootstrap configuration.

This also means that we can remove many (mis-)uses of the browse-section class, which is only supposed to be for cases where there are multiple browse-sections in sequence (e.g. multiple nodes in the node history browse pages).
16 files changed:
app/assets/javascripts/index/browse.js
app/assets/javascripts/index/directions.js
app/assets/stylesheets/common.scss
app/views/application/_sidebar_header.html.erb
app/views/browse/changeset.html.erb
app/views/browse/new_note.html.erb
app/views/browse/not_found.html.erb
app/views/browse/note.html.erb
app/views/browse/query.html.erb
app/views/browse/timeout.html.erb
app/views/changesets/history.html.erb
app/views/changesets/index.html.erb
app/views/geocoder/search.html.erb
app/views/layouts/map.html.erb
app/views/site/export.html.erb
test/integration/user_changeset_comments_test.rb