Skip to content

Commit

Permalink
Merge pull request #1939 from alphagov/render-getinvolved-frontend
Browse files Browse the repository at this point in the history
Render Get Involved page on Government Frontend
  • Loading branch information
Tetrino authored Oct 29, 2021
2 parents 852d385 + 8dba7fc commit ee97631
Show file tree
Hide file tree
Showing 77 changed files with 3,498 additions and 13 deletions.
27 changes: 26 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ $govuk-new-link-styles: true;
@import 'govuk_publishing_components/govuk_frontend_support';
@import 'govuk_publishing_components/components/attachment';
@import 'govuk_publishing_components/components/back-link';
@import 'govuk_publishing_components/components/big-number';
@import 'govuk_publishing_components/components/breadcrumbs';
@import 'govuk_publishing_components/components/button';
@import 'govuk_publishing_components/component_support';
@import 'govuk_publishing_components/components/contents-list';
@import 'govuk_publishing_components/components/contextual-sidebar';
@import 'govuk_publishing_components/components/details';
Expand All @@ -23,6 +25,7 @@ $govuk-new-link-styles: true;
@import 'govuk_publishing_components/components/govspeak-html-publication';
@import 'govuk_publishing_components/components/heading';
@import 'govuk_publishing_components/components/hint';
@import 'govuk_publishing_components/components/image-card';
@import 'govuk_publishing_components/components/input';
@import 'govuk_publishing_components/components/intervention';
@import 'govuk_publishing_components/components/inverse-header';
Expand All @@ -49,6 +52,7 @@ $govuk-new-link-styles: true;
// government-frontend mixins
@import 'mixins/margins';
@import 'mixins/white-links';
@import 'mixins/typography';

// helpers for common page elements
@import 'helpers/sidebar-with-body';
Expand Down Expand Up @@ -88,4 +92,25 @@ $govuk-new-link-styles: true;
@import 'views/specialist-document';
@import 'views/answer';
@import 'views/help-page';
@import "views/guide";
@import 'views/guide';
@import 'views/get-involved';

.travel-advice-notice {
background-color: govuk-colour("light-grey");
border: 1px solid $govuk-border-colour;
margin-bottom: govuk-spacing(7);
position: relative;
}

.travel-advice-notice__header {
padding: govuk-spacing(4) govuk-spacing(4) 0 govuk-spacing(3);
}

.travel-advice-notice__content {
margin-top: - govuk-spacing(3);
padding: 0 govuk-spacing(4) 0 govuk-spacing(9);
}

.travel-advice-notice__icon {
margin-left: govuk-spacing(3);
}
130 changes: 130 additions & 0 deletions app/assets/stylesheets/mixins/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
// GOV.UK typography palettes

// ANATOMY OF A TYPE STYLE
// -----------------------
// These are a collection of graphic styles. They are deliberately
// abstracted from semantic HTML context to enable flexible re-use.
// Although there is a lot of duplication within this file, as long
// as you GZIP your CSS it shouldnt cause any bloat.
//
//
// @mixin brand-45 {
// _ Style name refers to graphic style rather than semantic use
//
// font-size: 45px;
//
// line-height: (52/45);
// _ Unit-less, relative leading value.
// line-height (52px) / font-size (45px) = relative line-height
//
// font-weight: 300;
// text-transform: none;
// _ Again, we cant assume anything about pre-exising CSS on the
// page, so setting these values (even if just resetting them
// to default values) will increase the robustness of the style.
//
// padding-top: 7px;
// padding-bottom: 5px;
// _ Set top and bottom padding values to ensure an appropriate
// vertical measure before & after the text, ideally sitting it
// on the 10px baseline grid.
// }

// CORE FONTS - NEW TRANSPORT

// Suitable for page headings
@mixin ig-core-48 {
@include govuk-font(48);
padding-top: 12px;
padding-bottom: 8px;

@media (max-width: 640px) {
padding-top: 8px;
padding-bottom: 7px;
}
}

// Suitable for page headings
@mixin ig-core-36 {
@include govuk-font(36);
padding-top: 6px;
padding-bottom: 9px;

@media (max-width: 640px) {
padding-top: 8px;
padding-bottom: 7px;
}
}

// Suitable for body headings
@mixin ig-core-27 {
@include govuk-font(27);
padding-top: 2px;
padding-bottom: 3px;

@media (max-width: 640px) {
padding-top: 7px;
padding-bottom: 3px;
}
}

// Suitable for short body copy
@mixin ig-core-24 {
@include govuk-font(24);
padding-top: 3px;
padding-bottom: 2px;

@media (max-width: 640px) {
padding-top: 7px;
padding-bottom: 7px;
}
}

// Suitable for long body copy
@mixin ig-core-19 {
@include govuk-font(19);
padding-top: 7px;
padding-bottom: 3px;

@media (max-width: 640px) {
padding-top: 6px;
padding-bottom: 4px;
}
}

// Suitable body pullouts and asides
@mixin ig-core-16 {
@include govuk-font(16);
padding-top: 5px;
padding-bottom: 5px;

@media (max-width: 640px) {
padding-top: 6px;
padding-bottom: 4px;
}
}

// Suitable for captions, buttons etc
@mixin ig-core-14 {
@include govuk-font(14);
padding-top: 6px;
padding-bottom: 4px;

@media (max-width: 640px) {
padding-top: 4px;
padding-bottom: 1px;
}
}

@mixin white-links {
a,
a:visited,
a:hover {
color: govuk-colour("white");
text-decoration: underline;
}

a:active {
color: $govuk-link-active-colour;
}
}
124 changes: 124 additions & 0 deletions app/assets/stylesheets/views/_get-involved.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
.get-involved {
// Disabled due to many govuk_publishing_components requiring IDs over classes.
// stylelint-disable selector-max-id

list-style: none;

.govuk-link {
line-height: 1.16;
}

#engage-with-government {
border-bottom-style: solid;
padding-bottom: 5px;
border-bottom-width: 5px;
font-weight: normal;
}

.respond-to-consultations {
.govuk-grid-column-two-thirds-from-desktop {
padding: 20px 0 0;
margin-bottom: 20px;
}
}

#respond-heading {
padding: 0;
}

.big-numbers {
padding: 0;
}

.recently-opened {
padding: 0;
}

.govuk-grid-column-two-thirds-from-desktop {
margin-bottom: 50px;
padding: 0;
}

.govuk-grid-column-one-third-from-desktop {
padding: 0;
}

.consultation-lists {
padding: 0;
}

.gem-c-big-number {
margin-top: 10px;
}

.consultation-closing-soon {
background-color: govuk-colour("dark-blue");
padding: govuk-spacing(3) govuk-spacing(3);
}

#closing-soon-title {
border-bottom-style: solid;
padding-bottom: 5px;
border-bottom-width: 1px;
font-weight: normal;
}

#closing-soon-link {
@include govuk-font(19);
margin-bottom: 5px;
font-weight: bold;
}

#consultation-title {
@include govuk-font(19);
}

.consultation-list-row {
float: left;
padding: 0 0 10px;
}

.consultation-attributes {
@include govuk-font(14);
padding-top: 5px;

li {
float: left;
padding-right: 10px;
}

.consultation-view-link {
font-weight: bold;
margin-right: 30px; //force onto new line
}
}

#see-all-link {
@include govuk-font(19);
font-weight: bold;
}

.keyline {
margin: 30px 15px;
}

.comment-follow {
li {
border-bottom: 1px solid $govuk-border-colour;
padding: 1px 0 7px;
}
}

.more-ways {
li {
border-bottom: 1px solid $govuk-border-colour;
padding: 1px 0 7px;
}
}

.take-part-pages {
.govuk-grid-column-one-third-from-desktop {
padding: 15px 15px 0;
}
}
}
Loading

0 comments on commit ee97631

Please sign in to comment.