aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/sass/_base.scss
Commit message (Collapse)AuthorAgeLines
* Set `background-color`, not `background` on nav linksZarino Zappia2017-03-30-4/+4
| | | | 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 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-2/+155
| | | | | | | 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
|
* Avoid coloured report backgrounds on homepageZarino Zappia2017-01-12-0/+4
|
* Improve print layout for report list pages.Zarino Zappia2016-12-16-4/+80
| | | | | | | | | 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.
* 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.
* [UK] Refactor WFS asset handling.Matthew Somerville2016-11-11-0/+12
| | | | | | 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-1/+1
| | | | | | | | 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).
* Merge branch 'issues/forcouncils/95-multi-select-list-filters'Matthew Somerville2016-10-13-0/+5
|\
| * Allow multiple selections in report list filter.Zarino Zappia2016-10-13-0/+5
| | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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-39/+25
| | | | | | | | | | | | | 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-69/+121
|\
| * 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-64/+31
| | | | | | | | | | | | | | | | | | | | | | 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
|
* Add inspector report detail viewDave Arter2016-09-06-2/+32
| | | | | | | | | | | | | 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-12/+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-11/+95
|\
| * [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-7/+19
| | | | | | | | | | 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-2/+2
|/ | | | | 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-11/+11
|\
| * Improve admin report edit page.Matthew Somerville2016-06-29-11/+11
| | | | | | | | | | Show map, break into two columns, fix display of sent time after clicking "Mark as sent", tidy up labels.
* | 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 all IE6 special cases.Matthew Somerville2016-06-15-55/+2
|
* Fix display of close arrow/cross when drawer open.Matthew Somerville2016-06-08-6/+9
| | | | | The 'cross' at mobile widths was not displaying, and the icon was not changing to a down arrow at larger widths.
* Remove some unused CSS.Matthew Somerville2016-06-07-49/+0
|
* Merge branch '1350-stop-map-hiding-behind-header'Matthew Somerville2016-06-03-74/+58
|\
| * Remove user-meta; "Your reports" to "Your account"Zarino Zappia2016-06-03-21/+7
| |
| * Absolutely position map pages.Zarino Zappia2016-06-03-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Stop PanZoom giving controls hard-coded positions.Zarino Zappia2016-06-01-33/+33
| | | | | | | | | | We previously used !important to override them in the CSS, but better to prevent them being set in the JavaScript in the first place.
* | Improve CSS compilation.Matthew Somerville2016-05-31-1/+1
|/ | | | | | | | 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.