From: Tom Hughes Date: Mon, 13 Nov 2023 18:44:16 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/4343' X-Git-Tag: live~1483 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/4ed7387551b328a712959098a2eeeadf128ff225?hp=138aaf0f7aabeaf9a0ed8d0895e6eff6b64b640f Merge remote-tracking branch 'upstream/pull/4343' --- diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index f3ca5f37f..5bfe86b86 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -68,14 +68,6 @@ window.updateLinks = function (loc, zoom, layers, object) { .toggleClass("disabled", editDisabled); }; -window.maximiseMap = function () { - $("#content").addClass("maximised"); -}; - -window.minimiseMap = function () { - $("#content").removeClass("maximised"); -}; - $(document).ready(function () { var headerWidth = 0, compactWidth = 0; diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 864b075bb..44ac1a8d7 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -397,10 +397,6 @@ body.small-nav { #sidebar_content { padding: $spacer; } - - > div { - position: relative; - } } .overlay-sidebar #sidebar { @@ -424,11 +420,6 @@ body.small-nav { .welcome { display: none; - - p { - font-size: 110%; - font-weight: 300; - } } #banner { @@ -844,11 +835,6 @@ tr.turn:hover { bottom: 0; width: 100%; } - - #map { - height: 100%; - overflow: hidden; - } } /* Rules for non-map content pages */ @@ -907,15 +893,6 @@ tr.turn:hover { } } -#content.maximised { - top: 0; - left: 0; - right: 0; - bottom: 0; - border: 0; - z-index: 2000; -} - /* Rules for small maps in content areas */ .content_map { @@ -1094,13 +1071,6 @@ div.secondary-actions { } } -/* Rules for the iD editor */ - -.id-embed { - width: 100%; - height: 100%; -} - /* Rules for the "Welcome" page */ .site-welcome, .site-fixthemap { .sprite { diff --git a/app/views/layouts/_banner.html.erb b/app/views/layouts/_banner.html.erb index f6b866ff9..344c5ed71 100644 --- a/app/views/layouts/_banner.html.erb +++ b/app/views/layouts/_banner.html.erb @@ -1,5 +1,5 @@ <% unless (banner = next_banner()).nil? %> - <%= tag.div :id => "banner", :data => { :bs_theme => token_list(:dark => banner[:dark]) } do %> + <%= tag.div :id => "banner", :class => "position-relative", :data => { :bs_theme => token_list(:dark => banner[:dark]) } do %> <%= link_to (image_tag banner[:img], :srcset => banner[:srcset], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %>