Commit 19b9df40 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch '301143-setup-content-wrapper' into 'master'

Decouple content-wrapper and content-wrapper-margin

See merge request gitlab-org/gitlab!63254
parents 9f8db2e4 591b4db2
...@@ -38,8 +38,11 @@ body { ...@@ -38,8 +38,11 @@ body {
} }
} }
.content-wrapper { .content-wrapper-margin {
margin-top: $header-height; margin-top: $header-height;
}
.content-wrapper {
padding-bottom: 100px; padding-bottom: 100px;
} }
...@@ -166,15 +169,8 @@ body { ...@@ -166,15 +169,8 @@ body {
} }
.content-wrapper { .content-wrapper {
margin-top: 0;
padding-bottom: 0; padding-bottom: 0;
flex: 1; flex: 1;
min-height: 0; min-height: 0;
} }
&.flash-shown {
.content-wrapper {
margin-top: 0;
}
}
} }
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
top: $system-header-height + $header-height; top: $system-header-height + $header-height;
} }
.content-wrapper { .content-wrapper-margin {
margin-top: $system-header-height + $header-height; margin-top: $system-header-height + $header-height;
} }
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
bottom: $system-footer-height; bottom: $system-footer-height;
} }
.content-wrapper { .content-wrapper-margin {
margin-bottom: 16px; margin-bottom: 16px;
} }
......
...@@ -65,6 +65,6 @@ a[href]::after { ...@@ -65,6 +65,6 @@ a[href]::after {
margin-top: 0; margin-top: 0;
} }
.content-wrapper { .content-wrapper-margin {
margin-top: 0; margin-top: 0;
} }
.layout-page{ class: page_with_sidebar_class } .layout-page{ class: page_with_sidebar_class }
- if defined?(nav) && nav - if defined?(nav) && nav
= render "layouts/nav/sidebar/#{nav}" = render "layouts/nav/sidebar/#{nav}"
.content-wrapper{ class: "#{@content_wrapper_class}" } .content-wrapper.content-wrapper-margin{ class: "#{@content_wrapper_class}" }
.mobile-overlay .mobile-overlay
= yield :group_invite_members_banner = yield :group_invite_members_banner
.alert-wrapper.gl-force-block-formatting-context .alert-wrapper.gl-force-block-formatting-context
......
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
= render "layouts/broadcast" = render "layouts/broadcast"
= yield :flash_message = yield :flash_message
= render "layouts/flash" = render "layouts/flash"
.content-wrapper{ id: "content-body", class: "d-flex flex-column align-items-stretch mt-0" } .content-wrapper{ id: "content-body", class: "d-flex flex-column align-items-stretch" }
= yield = yield
= footer_message = footer_message
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
%body{ data: { page: body_data_page } } %body{ data: { page: body_data_page } }
.layout-page.terms{ class: page_class } .layout-page.terms{ class: page_class }
.content-wrapper.gl-mt-0 .content-wrapper
.mobile-overlay .mobile-overlay
.alert-wrapper .alert-wrapper
= render "layouts/broadcast" = render "layouts/broadcast"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment