Update header-height SCSS variable to CSS custom property
What does this MR do and why?
Swap to a no-header default where the default value for --header-height
is 0px
. This matches other conditionally rendered content like system-header/footer and performance bar in common.scss
.
When a header is visible (logged out or not using new navigation show_super_sidebar?
) --header-height
is 48px
and adds padding-top
to .layout-page
to compensate for fixed header.
Changes
- Move
--header-height
reset for new navigation tocommon.scss
withwith-header
helper class onlayout-page
inapplication_helper.rb
- Remove unused
$environment-logs-*
SCSS variables
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Review terms pages, there should only be
16px
of padding at the top to match the bottom - Other pages/views should not be effected by this change
- Review pages with new navigation
- Review pages with old navigation
- Review logged out header which should still have a height of
72px
To view terms page:
- Login as an admin (
root
user in GDK). - Navigate to
/admin/application_settings/general
- In the Terms of Service and Privacy Policy panel:
- Check the All users must accept the Terms of Service and Privacy Policy to access GitLab checkbox
- Enter some text in the text area
- Save the form
- Navigate to
/admin/users
and choose a user. - Click Impersonate in the upper right corner.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #422602 (closed)
Edited by Scott de Jonge