aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/sass
Commit message (Collapse)AuthorAgeLines
* Set `background-color`, not `background` on nav linksZarino Zappia2017-03-30-11/+11
| | | | This makes it easier for cobrands to override nav link styles.
* Show loading indicator when loading pinspezholio2017-03-17-0/+18
|
* Fix invisible segmented controls in old Webkit.Matthew Somerville2017-03-16-0/+1
| | | | | | | | | | | | | | | | | | | | | | I can't put it better than https://roland.codes/blog/legacy-flexbox-invisible-float-bug/ : "Webkit’s implementation of legacy Flexbox has an strange bug that makes flex items become invisible when they’re floated. What makes it strange is that the flex items will still take up space in the DOM, as if they have visibility: hidden applied. Usually you wouldn’t use float on flex items (the spec even says that float has no effect on them). But it’s useful for providing a fallback layout when Flexbox isn’t supported. Luckily I chanced on a hack that fixes the bug. All you have to do is give the floated flex items a position, like position: relative, and they’ll (strangely) become visible again. Another option is to use Modernizr to only apply the float when Flexbox isn’t supported. This bug affects legacy Flexbox in all Webkit browsers. Which includes Chrome 20-, Safari 6-, iOS 6.1- and Android 4.3-."
* Add submit buttons to admin index search forms.Matthew Somerville2017-03-09-0/+11
| | | | Also slightly tidy up display.
* Reduce unneeded admin CSS specificity.Matthew Somerville2017-03-09-47/+52
|
* Add buttons to resize maps on report pagespezholio2017-03-02-8/+45
| | | | | | | | This improves usability on mobile devices, allowing users to pan around the problem and see the area in more detail. I've also changed the CSS around a bit, so we can use the `map-fullscreen` class in other places.
* Show shortlist icons in button on report pageZarino Zappia2017-01-12-3/+33
|
* Add shortlist buttons to report lists.Matthew Somerville2017-01-12-54/+172
| | | | | | | This includes adding/removing reports from a user's shortlist, and manual reordering of a shortlist with up/down buttons. The backend code can cope with an item moving to any point in the list.
* Show response priorities in report list itemsZarino Zappia2017-01-12-0/+12
|
* Force .tablewrapper to use fixed column widthsZarino Zappia2017-01-12-0/+1
| | | | | | Most noticeably, this fixes a long standing bug on the Oxfordshire homepage where the "how to" and list of reports made the right-hand edge of .content spill outside its parent.
* Avoid coloured report backgrounds on homepageZarino Zappia2017-01-12-0/+4
|
* Merge branch 'issues/forcouncils/21-print-reports'Matthew Somerville2016-12-16-4/+87
|\
| * Improve print layout for report list pages.Zarino Zappia2016-12-16-4/+87
| | | | | | | | | | | | | | | | | | The main map page elements are given `position:static` to ensure they flow onto as many pages as required. The map image is floated to the right, rather than wasting space at the top of the file. We also, if the user has the inspect permission, include hidden rrint-only metadata in the report lists.
* | Merge branch 'issues/forcouncils/20-offline-inspecting'Matthew Somerville2016-12-16-0/+49
|\ \ | |/ |/|
| * Store/show shortlisted reports offline.Matthew Somerville2016-12-16-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This: * On an online visit to /my/planned, caches all shortlisted reports, their images and static maps in localStorage, with progress banner; * When a report is added/removed from the shortlist, caches/de-caches that report; * When viewing a report page offline, shows that page from the cache if present (replacing the dynamic map with the cached static map, and replacing report images with their cached equivalents – it is a shame to duplicate, but we cannot rely on the browser cache having these images); * When viewing another page offline, shows an error message but also the list of shortlisted reports that are cached (again, replacing their thumbnail images with the cached versions).
* | Don't fix height of admin multiple selects.Matthew Somerville2016-12-16-1/+1
|/ | | | | | The styling applied to the nice front end multi-select dropdowns should not be applied to the admin multi-select ones, until such time as they are using the nice select interface too.
* Store and display selected duplicate reportDave Arter2016-12-13-0/+8
|
* [UK] Refactor WFS asset handling.Matthew Somerville2016-11-11-0/+18
| | | | | | Allow multiple asset layers, and setting of multiple asset attributes. [Bristol] Add Bristol asset layers.
* Add sort order options to list pages.Matthew Somerville2016-11-04-12/+17
| | | | | | | | Includes newest, oldest, least/most recently updated, and most comments. The default remains the same, which is last updated on /reports, and newest on /my and /around (the latter plus not-in-view sorted-by-distance ones).
* Add simple way to return to "everything" in list filtersZarino Zappia2016-10-25-6/+13
|
* Merge branch 'issues/forcouncils/95-multi-select-list-filters'Matthew Somerville2016-10-13-14/+122
|\
| * Allow multiple selections in report list filter.Zarino Zappia2016-10-13-14/+122
| | | | | | | | | | | | This lets people filter by multiple categories or states. It uses our jQuery multi-select plugin to turn the <select multiple>s into little overlay lists of checkboxes. HTML5 history is also supported.
* | Show shortlist owner on report page.Matthew Somerville2016-10-11-0/+28
|/
* Add .btn and .form-control classes to inputsZarino Zappia2016-10-04-1/+5
|
* More robust .with-notes CSS layoutZarino Zappia2016-10-04-44/+115
| | | | | | | | | | | | | | | | | | | | | | 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.
* Remove separate “Public update” form sectionZarino Zappia2016-10-04-0/+11
| | | | | | Inspectors can now tick the optional “Save with a public update” checkbox, to reveal the “Public update” textarea. This means there is no longer a need for two separate submit buttons.
* Tidied up .btn class and button-reset mixinZarino Zappia2016-10-04-60/+59
| | | | | | | | | | | | | Even though FMS has had a `.btn` class for a while, styling buttons has still been difficult, mainly because of the very opinionated base styles applied to overpowered selectors like `input[type="submit"]`. This commit brings the FMS styles more in line with modern frameworks like Bootstrap – inputs and buttons are left completely unstyled by default, with an opt-in `.btn` class to add the styles back in. Since `.btn` is just a single class, it’s easy to override, and avoids selector bloat like `.green-btn, button.green-btn, input.green-btn`.
* Restructure Inspect form into logical sectionsZarino Zappia2016-10-04-24/+64
| | | | | | | | IDs and locations at the top, then location-related actions (including a new “navigate to this problem” button), then status and category inputs (since these can have an effect on how we display the rest of the form), then any status/category-related inputs, and finally inputs for internal details like priority and traffic management.
* Merge branch 'issues/forcouncils/7-custom-open311-attributes'Matthew Somerville2016-09-20-78/+127
|\
| * New section headings in report form.Zarino Zappia2016-09-20-0/+61
| | | | | | | | | | The report form is now split into "Public" and "Private" sections, with a third, matching heading, for the category_extras, if shown.
| * Styling for .extra-category-questions containerZarino Zappia2016-09-20-0/+25
| |
| * Better vertical rhythm for labels and form inputsZarino Zappia2016-09-20-1/+4
| |
| * New .form-control class for simpler input stylingZarino Zappia2016-09-20-73/+37
| | | | | | | | | | | | | | | | | | | | | | Form input styling is mostly left up to the browser default now. A custom border, drop-shadow, and border-radius can be applied by adding the `.form-control` class, which standardizes the appearance of inputs, selects, and textareas. The core reporting form, authentication forms, local alert forms, contact form, and questionnaire form have all been updated to use the new `.form-control` class.
| * Remove "Tips for perfect…" headings on reporting formZarino Zappia2016-09-20-4/+0
| | | | | | | | | | | | The ticks and crosses already imply that these are things you should and shouldn’t do. Removing the headings reduces visual clutter, and better associates the tips with the form input directly above.
* | Organize report admin actions into single control.Zarino Zappia2016-09-20-26/+55
|/ | | | | | | | As part of this, rename "planned reports" to "shortlist". The `.segmented-control` component now supports basic usage (as in the admin report actions menu bar) and usage with hidden radio inputs and labels (as on the report questionnaire page).
* Tidy/remove some old validation code.Matthew Somerville2016-09-09-9/+0
|
* A couple of CSS improvements on report pageZarino Zappia2016-09-06-24/+27
| | | | | | | | - Harmonise two-column sidebar with .with-notes convention `body.mappage.twocol` is now `body.mappage.with-actions` to make it more obvious that it’s just a special case like `.with-notes`. - Make sidebar padding-bottom work with floated children - Display a.btn elements correctly in Safari
* Add inspector report detail viewDave Arter2016-09-06-4/+59
| | | | | | | | | | | | | Users with the `report_inspect` permission can click a new 'inspect' button on a report page to input more detailed problem information into a new form that appears in a column alongside the report detail. - Inspector data is stored in problem's 'extra' field - Report category/state can be edited - Location can be changed by dragging the pin or HTML5 geolocation (Factored out Zurich admin pin drag into own function) For mysociety/fixmystreetforcouncils#22
* Make sure PanZoom works in older OpenLayers.Matthew Somerville2016-08-19-5/+0
| | | | | Remove unused code that is same as upstream (it was added when the map middle didn't match the visible middle), and the world button.
* Move non-JavaScript pan/zoom to same as with JS.Matthew Somerville2016-08-17-0/+2
| | | | | No need to use old OpenLayers PanZoom defaults, or load images we don't want to use.
* Use separate mobile banner HTML to simplify changeMatthew Somerville2016-08-16-16/+23
|
* Make sure mobile map scrolled into view and fixed.Matthew Somerville2016-07-12-0/+7
| | | | | This prevents scrolling when we're on the full screen map, and makes sure the map is back in view when it is shown.
* Merge branch '1351-report-list-ajax'Matthew Somerville2016-07-11-12/+96
|\
| * [fixmystreet.com] Update share buttons to be linksMatthew Somerville2016-07-11-4/+15
| | | | | | | | | | Having them as SDK-included buttons causes issues with the ajax report pull-ins, plus Firefox doesn't like them being hidden.
| * Load in report details on around page via ajax.Zarino Zappia2016-07-11-0/+25
| | | | | | | | | | | | | | | | | | | | | | 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-8/+20
| | | | | | | | | | On mobile, the notes in `#report-a-problem-sidebar` are hidden by default, and can be toggled using the `.rap-notes-trigger`.
| * Move most JavaScript mobile map changes to CSS.Zarino Zappia2016-07-01-0/+36
| |
* | Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-5/+5
|/ | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* Merge branch '1347-fold-back-zurich'Matthew Somerville2016-06-29-12/+36
|\
| * Improve admin report edit page.Matthew Somerville2016-06-29-12/+36
| | | | | | | | | | Show map, break into two columns, fix display of sent time after clicking "Mark as sent", tidy up labels.