diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2016-09-28 15:44:01 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-10-04 10:37:52 +0100 |
commit | 5ad5faf1160dc4be496dfdfc08a566431ac45ee8 (patch) | |
tree | ebc4ce4ba150502749908de617230adb01172b04 /t/cobrand | |
parent | d8fd656009fe6b9868ae366c0d6b0d9f6cbf2272 (diff) |
More robust .with-notes CSS layout
When this commit is finished, modern browsers will have a far less
buggy layout on .with-notes pages. The main improvements are:
1. Simplified padding on .with-notes columns, allowing us to link to
an individual column (eg: /inspect#side-report-secondary) without
the browser scrolling down to jump over the #map_sidebar padding on
desktop browsers. Making hash fragment scrolling work means we can
automatically scroll Inspectors down to the Inspect form, when they
click the Inspect button on mobile devices, without worrying about
it breaking the desktop experience.
2. Flexible .with-notes column widths, meaning the layout no longer
breaks when long sidebar content triggers a scrollbar and decreases
the usable width of the sidebar. A predefined width for #side-report
means we can make sure .shadow-wrap is the correct width, despite
its fixed position taking it out of the document flow.
We make a trade-off on mid-size screens (768-960px), of hiding the map
to keep the two-column sidebar usable. Will revisit if it turns out
this causes problems later on.
Diffstat (limited to 't/cobrand')
0 files changed, 0 insertions, 0 deletions