]> git.openstreetmap.org Git - rails.git/commitdiff
Remove custom position and margin css from .content-inner
authorAnton Khorev <tony29@yandex.ru>
Sun, 13 Apr 2025 12:43:28 +0000 (15:43 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sun, 13 Apr 2025 12:43:28 +0000 (15:43 +0300)
app/assets/stylesheets/common.scss
app/views/layouts/_content.html.erb

index 9fff025d0242947b78cf7e4eaaaf73b351197794..9075c5864af3eab7338a7c55d5fe6f40ffd343f9 100644 (file)
@@ -691,9 +691,7 @@ tr.turn {
 /* Rules for non-map content pages */
 
 .content-inner {
 /* Rules for non-map content pages */
 
 .content-inner {
-  position: relative;
   max-width: 960px;
   max-width: 960px;
-  margin: auto;
   padding: $lineheight;
 }
 
   padding: $lineheight;
 }
 
index 9e28c0771b867d49122a178f181aed49bbd962b3..7e7cd2cca67f7fea406eedfdda976c6d25df6494 100644 (file)
@@ -5,13 +5,13 @@
     <%= render :partial => "layouts/flash", :locals => { :flash => flash } %>
     <% if content_for? :heading %>
       <div class="content-heading bg-body-secondary border-bottom border-secondary-subtle">
     <%= render :partial => "layouts/flash", :locals => { :flash => flash } %>
     <% if content_for? :heading %>
       <div class="content-heading bg-body-secondary border-bottom border-secondary-subtle">
-        <div class="content-inner <%= yield :heading_class %>">
+        <div class="content-inner position-relative m-auto <%= yield :heading_class %>">
           <%= yield :heading %>
         </div>
       </div>
     <% end %>
     <div class="content-body">
           <%= yield :heading %>
         </div>
       </div>
     <% end %>
     <div class="content-body">
-      <div class="content-inner">
+      <div class="content-inner position-relative m-auto">
         <%= yield %>
       </div>
     </div>
         <%= yield %>
       </div>
     </div>