mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-10 07:03:12 -05:00
Make header & footer components look like Notify
Notify has 4 columns of links in the footer and its header navigation aligns to the right on desktop.
This commit is contained in:
@@ -19,3 +19,9 @@ $govuk-assets-path: "/static/";
|
||||
|
||||
@import "utilities/all";
|
||||
@import "overrides/all";
|
||||
|
||||
// Styles extending those from GOV.UK Frontend
|
||||
@import './extensions';
|
||||
|
||||
// Styles for GOV.UK Frontend components specific to this application
|
||||
@import './overrides';
|
||||
|
||||
9
app/assets/stylesheets/govuk-frontend/extensions.scss
Normal file
9
app/assets/stylesheets/govuk-frontend/extensions.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
// Extends footer column styles to allow 4 columns
|
||||
@include mq ($from: desktop) {
|
||||
.govuk-footer__list--columns-4 {
|
||||
// TODO: Move support for legacy properties to something like Post-CSS's auto-prefixer
|
||||
-webkit-column-count: 4;
|
||||
-moz-column-count: 4;
|
||||
column-count: 4;
|
||||
}
|
||||
}
|
||||
12
app/assets/stylesheets/govuk-frontend/overrides.scss
Normal file
12
app/assets/stylesheets/govuk-frontend/overrides.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
// Overrides for certain GOV.UK Frontend styles to make its components match this application's design
|
||||
|
||||
// Notify's header navigation aligns to the right
|
||||
.govuk-header__navigation {
|
||||
text-align: right;
|
||||
|
||||
// reset the alignment of each item to left-to-right
|
||||
.govuk-header__navigation-item {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user