Skip to content

Commit

Permalink
Extract published dates button group shared styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-kirwan committed Apr 18, 2023
1 parent d93f645 commit 9016fac
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,5 @@ $govuk-include-default-font-face: false;
@import "views/help-page";
@import "views/guide";
@import "views/manual";
@import "views/published-dates-button-group";
@import "views/worldwide-organisation";
16 changes: 0 additions & 16 deletions app/assets/stylesheets/views/_detailed-guide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,3 @@
}
}
}

.detailed-guide-bottom-button-container {
@include govuk-media-query($from: tablet) {
display: flex;
flex-direction: row;
}
}

.detailed-guide-bottom-button-container form {
@include govuk-media-query($until: tablet) {
margin-bottom: govuk-spacing(3);
}
@include govuk-media-query($from: tablet) {
margin-right: govuk-spacing(4);
}
}
15 changes: 15 additions & 0 deletions app/assets/stylesheets/views/_published-dates-button-group.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.published-dates-button-group {
@include govuk-media-query($from: tablet) {
display: flex;
flex-direction: row;
}
}

.published-dates-button-group form {
@include govuk-media-query($until: tablet) {
margin-bottom: govuk-spacing(3);
}
@include govuk-media-query($from: tablet) {
margin-right: govuk-spacing(4);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
margin_bottom: 5,
} %>

<div class="detailed-guide-bottom-button-container">
<div class="published-dates-button-group">
<%= render 'govuk_publishing_components/components/single_page_notification_button', {
base_path: @content_item.base_path,
js_enhancement: @has_govuk_account,
Expand Down

0 comments on commit 9016fac

Please sign in to comment.