-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate the manuals show view to the design system
Update the layout of the "show" view from using the legacy layout to use the design system one. This change significantly alters the layout of the page, but without changing any of the underlying functionality.
- Loading branch information
1 parent
98895d1
commit b3039d4
Showing
20 changed files
with
714 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
//= require govuk_publishing_components/dependencies | ||
//= require govuk_publishing_components/lib | ||
//= require govuk_publishing_components/components/button | ||
//= require govuk_publishing_components/components/details | ||
//= require govuk_publishing_components/components/layout-header | ||
//= require govuk_publishing_components/components/skip-link | ||
//= require govuk_publishing_components/components/table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,21 @@ | ||
.broken-links-report { | ||
.issue-summary { | ||
font-weight: normal; | ||
} | ||
|
||
.issue-list { | ||
list-style: none; | ||
padding-left: 0; | ||
|
||
li { | ||
margin-top: 5px; | ||
} | ||
} | ||
.app-inset-prompt { | ||
@include govuk-text-colour; | ||
@include govuk-responsive-padding(4); | ||
@include govuk-responsive-margin(6, "bottom"); | ||
|
||
.issue-status-description { | ||
margin-top: 10px; | ||
} | ||
border-left: $govuk-border-width-narrow solid govuk-colour("dark-grey"); | ||
background-color: govuk-colour("light-grey"); | ||
|
||
.issue-list + .issue-status-description { | ||
margin: 15px 0; | ||
@include govuk-media-query($from: tablet) { | ||
border-left: $govuk-border-width solid govuk-colour("dark-grey"); | ||
} | ||
|
||
.display-issue-details { | ||
display: block; | ||
font-weight: bold; | ||
padding-top: 5px; | ||
} | ||
|
||
.display-issue-details::-webkit-details-marker { | ||
display: none; | ||
} | ||
|
||
.display-issue-details:before { | ||
content: "\25B6"; | ||
padding-right: 3px; | ||
&:focus { | ||
outline: $govuk-focus-width solid $govuk-focus-colour; | ||
} | ||
} | ||
|
||
details[open] > .display-issue-details:before { | ||
content: "\25BC"; | ||
} | ||
.app-inset-prompt--error { | ||
border-color: $govuk-error-colour; | ||
background-color: govuk-tint($govuk-error-colour, 90%); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
.page-header { | ||
border-bottom: none; | ||
|
||
.document-slug { | ||
color: $text-muted; | ||
font-size: $font-size-large; | ||
display: block; | ||
margin-top: 5px; | ||
font-weight: normal; | ||
padding: 0; | ||
} | ||
|
||
.document-slug li { | ||
display: inline; | ||
list-style: none; | ||
} | ||
|
||
.document-slug li + li:before { | ||
content: "– "; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,29 @@ | ||
$govuk-page-width: 1140px; | ||
|
||
@import "govuk_publishing_components/govuk_frontend_support"; | ||
@import "govuk_publishing_components/component_support"; | ||
|
||
@import "govuk_publishing_components/components/breadcrumbs"; | ||
@import "govuk_publishing_components/components/button"; | ||
@import "govuk_publishing_components/components/details"; | ||
@import "govuk_publishing_components/components/error-alert"; | ||
@import "govuk_publishing_components/components/error-message"; | ||
@import "govuk_publishing_components/components/hint"; | ||
@import "govuk_publishing_components/components/input"; | ||
@import "govuk_publishing_components/components/label"; | ||
@import "govuk_publishing_components/components/layout-footer"; | ||
@import "govuk_publishing_components/components/layout-for-admin"; | ||
@import "govuk_publishing_components/components/layout-header"; | ||
@import "govuk_publishing_components/components/notice"; | ||
@import "govuk_publishing_components/components/search"; | ||
@import "govuk_publishing_components/components/skip-link"; | ||
@import "govuk_publishing_components/components/success-alert"; | ||
@import "govuk_publishing_components/components/summary-list"; | ||
@import "govuk_publishing_components/components/table"; | ||
@import "govuk_publishing_components/components/title"; | ||
@import "govuk_publishing_components/components/warning-text"; | ||
|
||
@import "views/manuals"; | ||
@import "views/whats_new"; | ||
|
||
@import "broken-links-report"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.app-view-manuals__section { | ||
padding: govuk-spacing(3) 0; | ||
} | ||
|
||
.app-view-manuals__section:first-child { | ||
padding-top: 0; | ||
} | ||
|
||
.app-view-manuals__sidebar-actions { | ||
padding: govuk-spacing(3); | ||
margin-bottom: govuk-spacing(6); | ||
background-color: govuk-colour("light-grey"); | ||
|
||
.gem-c-button { | ||
width: 100%; | ||
} | ||
|
||
.govuk-list { | ||
margin-bottom: 0; | ||
|
||
li:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
} | ||
|
||
.app-view-summary__sidebar-actions .govuk-list--spaced li:last-child div + .broken-links-report { | ||
margin-top: govuk-spacing(6); | ||
} | ||
|
||
.app-flash-container { | ||
.govuk-notification-banner { | ||
margin-top: govuk-spacing(4); | ||
} | ||
|
||
.gem-c-error-alert { | ||
margin-bottom: 0; | ||
margin-top: govuk-spacing(4); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ def show | |
|
||
render( | ||
:show, | ||
layout: "design_system", | ||
locals: { | ||
manual:, | ||
slug_unique:, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<%= form_tag link_check_reports_path(link_reportable: reportable), remote: true do %> | ||
<%= submit_tag button_text, class: "btn btn-default add-top-margin remove-bottom-margin" %> | ||
<%= render "govuk_publishing_components/components/button", { | ||
text: button_text, | ||
secondary_quiet: true | ||
} %> | ||
<% end %> |
38 changes: 20 additions & 18 deletions
38
app/views/admin/link_check_reports/_link_check_report.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.