Commit graph

1653 commits

Author SHA1 Message Date
Andy Allan
ab8d3485bd Use our darkgrey for bootstrap secondary colour
Our blue is less saturated and lighter, and so the bootstrap-default
secondary colour is too dark and too saturated when beside our
primary buttons.
2021-07-28 14:17:55 +01:00
Tom Hughes
9bf0dee51a Update path to js-cookie 2021-07-27 08:18:53 +01:00
Milos Brzakovic
9fe45bdfe3 iD api url update 2021-07-26 19:11:33 +02:00
Tom Hughes
191d7f3710 Merge remote-tracking branch 'upstream/pull/3264' 2021-07-21 15:41:31 +01:00
Andy Allan
2a885c2cce Ensure the heading text appears above the illustration
The easiest way to do this is to make the text a child of the div
with the background image. The change to min-size is so that if
the text wraps often enough on narrow screens, the header expands
vertically rather than the text spilling over.

Fixes #3259
2021-07-21 15:08:33 +01:00
Andy Allan
2443e7dd65 Refactor to use a heading class for height when using header-illustrations
This fixes a glitch highlighted in #3259, where the css class stopped applying
when the view was moved to a different controller.

We're moving to having each view responsible for their layout, and commonly having
override classes explicitly in the relevant views. So we can follow that pattern here.
2021-07-21 11:45:37 +01:00
Tom Hughes
4d47cff5e1 Merge remote-tracking branch 'upstream/pull/3237' 2021-07-21 11:24:17 +01:00
Andy Allan
0c7ad10573 Refactor About header to use bootstrap and flex
This reduces the amount of custom CSS required for the layout, and
makes it responsive on small screen sizes.
2021-06-30 15:21:49 +01:00
Andy Allan
04ac7d9c03 Alight the max-width of the content to one of the bootstrap breakpoints
This makes various things easier to reason about, as well as making
some grid things easier too.
2021-06-30 11:48:12 +01:00
Andy Allan
014b86f91c Use bootstrap font family
This contains and expanded list of fonts, covering more platforms
and edge cases than ours, so there's no need to override.
2021-06-30 11:29:34 +01:00
Andy Allan
2a347e71be Remove some default styling from body
These mirror, either exactly or pretty close to exactly, what is set
by the bootstrap reboot style, so there's no need for us to duplicate.
2021-06-30 11:17:30 +01:00
Tom Hughes
b4a1e41968 Switch web site to use OAuth 2 2021-06-27 19:00:36 +01:00
Andy Allan
3dd639c8d0 Refactor flash messages to use a flex row for positioning
This works better for narrow widths and needs less custom CSS.
2021-06-23 20:11:19 +01:00
Andy Allan
e9a3c55e83 Remove unnecessary padding-bottom override on the header h1 2021-06-23 20:11:19 +01:00
Martin Raifer
6b73edc415 add banner for SotM 2021 2021-06-21 21:42:05 +02:00
Tom Hughes
4a45092e27 Remove the Yahoo OpenID link as they no longer support OpenID 2021-06-17 22:33:05 +01:00
Andy Allan
db5501bb77 Remove unused padding classes
These were last used for sidebar padding, which is now handled more easily.
2021-06-16 15:45:59 +01:00
Andy Allan
c8f0a81eb7 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).
2021-06-16 15:45:58 +01:00
Andy Allan
c2587b5b57 Rework the routing credit to use a bootstrap class
The padding is unnecessary given it's in a paragraph anyway.
2021-06-16 13:28:33 +01:00
Andy Allan
7407d444fb Match the width of the overlay-sidebar on narrow screens to the width on full-sized screens
It's not clear why they are different widths, since the non-overlay sidebar doesn't change.
2021-06-16 12:07:04 +01:00
Matija Nalis
7b3c449b46 fix map key color for regional OpenCycleMap, as it changed from light cyan to purple on the map.
Closes: https://github.com/openstreetmap/openstreetmap-website/issues/2785
2021-05-25 22:48:38 +02:00
Tom Hughes
0a15112423 Mark javascript issued cookies with SameSite=Lax 2021-05-17 19:06:43 +01:00
Tom Hughes
32cc04fa5c Switch to using js-cookie to manage cookies from javascript 2021-05-17 18:57:48 +01:00
Andy Allan
b70da7b8ea
Merge pull request #1558 from plarus/master
Add start url and indicate minimal-ui is sufficient when added as a PWA.
2021-04-08 14:01:08 +01:00
plarus
2b5e705006
Update manifest.json.erb
Change for minimal-ui
2021-04-07 19:45:58 +02:00
Tom Hughes
d8b9b6dd58 Merge remote-tracking branch 'upstream/pull/3121' 2021-03-04 13:45:34 +00:00
Andy Allan
18b8780f21 Remove CSS overrides for the login page at small screen sizes
Some of these selectors no longer apply, and the one that did just
made the behaviour worse, so they are all no longer required.
2021-03-04 11:09:16 +00:00
Andy Allan
3fdf1e204a Remove unnecessary margin-tops 2021-03-03 17:16:31 +00:00
Andy Allan
926576881f Remove final uses of the deemphasize class 2021-03-03 15:51:11 +00:00
Andy Allan
df1ec6b680 Remove standard-form CSS rules 2021-02-24 14:48:10 +00:00
Andy Allan
f7b8b114a6 Convert the search forms to bootstrap
This moves the forms to a flex grid, albeit with a little twiddling
to get things working in a compact space.
2021-02-24 12:21:51 +00:00
Andy Allan
3debff60ef Merge branch 'pull/3091' 2021-02-24 10:49:39 +00:00
Andy Allan
00dbe5f4a4 Use the bootstrap spacer variable as the basis for spacing calcuation, and match mb-1 definition 2021-02-24 10:35:28 +00:00
Tom Hughes
f91dd6afc2 Tighten up cookie security
Mark all cookies as Secure, and the cookies which are not
modified client side as HttpOnly.
2021-02-19 18:18:13 +00:00
mxdanger
ea92d66cc0 Add btn-wrapper class 2021-02-17 18:27:41 -08:00
Andy Allan
501e256419 Refactor the share panel to use bootstrap forms 2021-02-17 17:17:19 +00:00
Andy Allan
5c086dad6e Use bootstrap form-check for overlay selection 2021-02-17 17:05:49 +00:00
Tom Hughes
80f576a29b Fix avatar mode update on file change 2021-02-16 17:12:34 +00:00
Andy Allan
f9b0490afc Update terms form to use bootstrap 2021-02-10 15:09:29 +00:00
Tom Hughes
d15041f847 Use POST to submit OpenID login form
Fixes #3084
2021-02-06 15:04:33 +00:00
Andy Allan
1dc1c03225 Rework welcome message to use bootstrap buttons
I also reworked the layout to use flex utilities and avoid using a white button border as a spacing hack. In future this will be better done with start/end utilities, avoiding the need to be fancy with negative margins.
2021-02-03 13:44:52 +00:00
Andy Allan
05dd681abf Refactor the export form to use bootstrap form controls
I started refatoring the export inputs to use a flex grid instead of
floats, but this is perhaps the one place on the whole site where left/right
makes sense since even in rtl we want min_lon on the left.
2021-02-03 13:44:52 +00:00
Tucker Chapman
d257e67842 Remove conditional for polyline layer
When a user searches for a route and one is not found the polyline
layer is removed - if they then change the mode of transportation the
event listener will not reroute if there is no polyline layer.

This commit removes the conditional that prevents the routing code from
re-running after the polyline has been removed.

Fixes #3050
Closes #3055
2021-01-28 10:31:33 +00:00
Tom Hughes
810e4da85a Fix locate control popup on the main map to use new translations
Fixes #3072
2021-01-27 13:48:54 +00:00
Mikel Maron
7d2ff8e4cd reserve 60x60 in top right of survey banner 2021-01-24 20:31:21 -05:00
Mikel Maron
04cb8d488e community survey banner 2021-01-22 14:52:49 -05:00
Tom Hughes
8ac2302837 Avoid concatenating text to a translation
Fixes #3064
2021-01-21 17:15:27 +00:00
Andy Allan
8e02c98c3f Refactor diary comment form to use bootstrap 2021-01-20 15:38:10 +00:00
Tom Hughes
4abd9cfcf1 Merge remote-tracking branch 'upstream/pull/2994' 2021-01-13 20:40:48 +00:00
Andy Allan
85bf0af488 Merge branch 'pull/3035' 2021-01-06 15:41:42 +00:00