aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* Fix map page popstate / mobile nav menu bugZarino Zappia2016-07-11-1/+15
| | | | | | | | | | | Previously, pressing the mobile menu icon would change the location hash, which fired a history popstate event with an empty state object, causing trouble for our map page JavaScript. Now, pressing the mobile menu icon triggers a pushState, instead of changing the location hash. This means our map page popstate logic is unaffected, but mobile users can still use their browser's Back button to escape out of the mobile menu.
* Move to using pushState for new report.Zarino Zappia2016-07-11-82/+96
| | | | | Update the URL whenever location of pin is updated (first time, drag, or reclick), make sure it works when clicking back.
* Fix top of content display if scrolled previously.Matthew Somerville2016-07-11-1/+2
|
* Load in report details on around page via ajax.Zarino Zappia2016-07-11-37/+270
| | | | | | | | | | | Include URL changing, using history.pushState. Show a larger marker icon for the selected report. Make sure title is updated, and correct sub_map_links are shown. The /report/new template is now wrapped in a <div id="side-form"> rather than <div id="side"> for consistency with the /around page, which keeps display_all_reports_in_area() simpler, because it can always assume "#side" means "list of reports".
* Simplify "rap-notes" visibility togglingZarino Zappia2016-07-11-44/+42
| | | | | On mobile, the notes in `#report-a-problem-sidebar` are hidden by default, and can be toggled using the `.rap-notes-trigger`.
* Edge case fixes for window resizes mid process.Matthew Somerville2016-07-11-3/+3
|
* Only match the actual ID, not same-ending others.Matthew Somerville2016-07-11-2/+2
|
* Increase opacity a bit on non-hovered pins.Matthew Somerville2016-07-11-1/+1
|
* Tidy up JavaScript functions.Matthew Somerville2016-07-11-1231/+1203
| | | | Split big functions into smaller more descriptive ones.
* Move most JavaScript mobile map changes to CSS.Zarino Zappia2016-07-01-36/+46
|
* Merge branch '1347-fold-back-zurich'Matthew Somerville2016-06-29-18/+42
|\
| * Improve admin report edit page.Matthew Somerville2016-06-29-18/+42
| | | | | | | | | | Show map, break into two columns, fix display of sent time after clicking "Mark as sent", tidy up labels.
* | [Harrogate] Update to match harrogate.gov.uk designDave Arter2016-06-28-121/+842
| | | | | | | | Closes mysociety/FixMyStreet-Commercial#779
* | Reinstate missing margin before reporting form email inputZarino Zappia2016-06-24-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | `.form-box--logged-in-name` has no preceding heading, which meant the grey box background was colliding with whatever content happened to go before it. We add some margin, and while we’re at it, remove the extra margin-top on first-child labels (unnecessary, since .form-boxes have their own padding) and tidy up the syntax of the .form-box rule set. Fixes #1418.
* | Remove default box-shadow from .content and asideZarino Zappia2016-06-24-73/+24
|/ | | | | | | Fixes #1419. We also standardize on using `@include box-shadow()` where possible, and clearing out lots of now unnecessary box-shadow resets.
* [Zurich] Fix admin report page with base changes.Matthew Somerville2016-06-22-4/+12
| | | | Add missing class on updates.
* Patch Dropzone to correctly orient preview images.Matthew Somerville2016-06-20-2/+190
| | | | | | Include a patch file, applied to Dropzone as of version e524e03c, that also includes our previous Opera patch from 445e9a3d. The new minified file is our cut-down exif.js plus the patched dropzone.js.
* [Bristol] Use BCC's base map tilesDave Arter2016-06-17-0/+180
| | | | | | | | | This refactors the Map::Zurich module into something that makes it easier to use custom map tiles for a cobrand. This also includes some refactoring of the JS & map templates to make it easier to use a custom WMTS base map in future cobrands.
* [Bristol] Bristol City Council cobrand frontendDave Arter2016-06-17-0/+6714
| | | | For mysociety/FixMyStreet-Commercial#766.
* Merge branch 'drop-ie6-fix-ie7'Matthew Somerville2016-06-17-203/+35
|\
| * Fix display in IE7, including front page text.Matthew Somerville2016-06-15-0/+1
| | | | | | | | | | .tablewrapper was sometimes losing its background, it needs to be given hasLayout.
| * Remove most IE8 special cases.Matthew Somerville2016-06-15-60/+12
| | | | | | | | | | | | Document the couple that are left, and fix the display of the logo with a simpler positioning/ less overriding. Drop a needless usage of 'rem' to make things a bit easier there too.
| * Remove all IE6 special cases.Matthew Somerville2016-06-15-144/+23
| |
* | Don't update the map pins if a new report started.Matthew Somerville2016-06-17-0/+11
| |
* | [fixmystreet.com] Fix broken goodies CSS.Matthew Somerville2016-06-15-4/+8
|/ | | | Stop sidebar overlapping footer, and giving footer heading a top border.
* Fix display of close arrow/cross when drawer open.Matthew Somerville2016-06-08-12/+20
| | | | | The 'cross' at mobile widths was not displaying, and the icon was not changing to a down arrow at larger widths.
* Move some cobrands into separate repository.Matthew Somerville2016-06-08-255/+0
|
* Update copyright year shown on OS & Bing mapsDave Arter2016-06-07-2/+2
|
* [East Sussex] Improve header CSS.Matthew Somerville2016-06-07-35/+6
| | | | | Remove quite a bit of unnecessary CSS that was not actually helping with display.
* Remove some unused CSS.Matthew Somerville2016-06-07-75/+0
|
* Use ::after to fix map sidebar bottom padding.Matthew Somerville2016-06-07-6/+17
| | | | | | This improves upon the previous commit to work with whatever contents the map sidebar has (e.g. the list on an around page was also being cut off before the end).
* Stop bottom of update form disappearingDave Arter2016-06-06-5/+4
| | | | | | On IE9 the bottom of the update form was being obscured by the shadow above the report abuse /updates/nearby buttons for signed-in users.
* Fix calculation when header height given in px.Matthew Somerville2016-06-03-2/+7
|
* Merge branch '1350-stop-map-hiding-behind-header'Matthew Somerville2016-06-03-986/+470
|\
| * [UK] Remove some unnecessary CSS.Matthew Somerville2016-06-03-100/+36
| |
| * Remove user-meta; "Your reports" to "Your account"Zarino Zappia2016-06-03-224/+13
| |
| * Absolutely position map pages.Zarino Zappia2016-06-03-575/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This simplifies the page layout and code. We add a new #map_sidebar for sidebar positioning, and a $mappage-header-height (defaulting to 4em) variable. We no longer need: * position_map_box; * map_fix; * special visual centre calculation; or * custom pan zoom positioning. As the sidebar now scrolls by itself and nothing can extend outside: * The big-green-banner is set to 100% width (with negative margins no longer required); * For cobrands that have an overhanging sidebar (e.g. Zurich), we add a .with-notes variant that adds a second column to the sidebar, perfect for containing secondary notes about the form. The resizing of the banner also required some tweaking to the size of the chevron-white SVG images. Update the $.fn.drawer() method for the new layout. Works well in IE7+8, and degrades gracefully in IE6. For IE7, we remove the existing z-index hacks, and put a new, simpler, one in, and fix a CSS bug that was hiding the map. Various cobrands are updated to adapt to the changes.
| * [Angus] Fix horizontal scrollbar.Matthew Somerville2016-06-03-3/+2
| |
| * Centre map on pin location when creating a report.Zarino Zappia2016-06-01-39/+25
| | | | | | | | | | | | | | Always centre the map on the new point when creating a new report. This will be helpful when the map element can change width to accommodate the .with-notes variant, is easier than the previous method, and feels very natural.
| * Allow scroll wheel to zoom map.Zarino Zappia2016-06-01-17/+2
| |
| * Stop PanZoom giving controls hard-coded positions.Zarino Zappia2016-06-01-41/+57
| | | | | | | | | | We previously used !important to override them in the CSS, but better to prevent them being set in the JavaScript in the first place.
* | Fix grey chevron size.Matthew Somerville2016-06-01-2/+2
| | | | | | | | | | The fix in e070ba89 for the big white chevron was also applied to these chevrons which did not need extra paddig, and made them display smaller.
* | Merge branch 'move-to-libsass'Matthew Somerville2016-05-31-491/+89
|\ \
| * | Consolidate CSS clearfix handling.Matthew Somerville2016-05-31-42/+10
| | | | | | | | | | | | Remove duplicate/alternate definitions, and settle on the name clearfix.
| * | Improve CSS compilation.Matthew Somerville2016-05-31-460/+90
| | | | | | | | | | | | | | | | | | | | | | | | Move to using libsass via CSS::Sass, and stop using compass, supplying any used mixins directly. This removes the need for any ruby/gem based installation, and greatly increases the speed of compilation. make_css is also enhanced, bringing in the file monitoring previously done by a separate script and improving its dependency monitoring.
* | | Merge branch 'jonkri-master-new'Matthew Somerville2016-05-31-0/+0
|\ \ \ | |_|/ |/| |
| * | [FixaMinGata] Add App Store icon and link.Jon Kristensen2016-05-31-0/+0
| | |
* | | [Stevenage] Responsive header for Stevenage cobrandZarino Zappia2016-05-31-156/+258
| |/ |/|
* | Update OpenLayers 2 to master branch.Matthew Somerville2016-05-27-294/+382
|/ | | | Specifically to get the https://github.com/openlayers/ol2/pull/1418 fix.
* Improve in-place moderation UIZarino Zappia2016-05-18-2/+23
| | | | | | | | | | | This rearranges the moderation UI into logical chunks, and improves the 'revert to original' checkboxes by: - hiding them unless there's some original text to revert to - displaying the text that will be reverted to in the appropriate input fields when checked. Part of mysociety/FixMyStreet-Commercial#731