diff --git a/app/assets/stylesheets/govuk-component/_previous-and-next-navigation.scss b/app/assets/stylesheets/govuk-component/_previous-and-next-navigation.scss index 37aacff20..b9792913e 100644 --- a/app/assets/stylesheets/govuk-component/_previous-and-next-navigation.scss +++ b/app/assets/stylesheets/govuk-component/_previous-and-next-navigation.scss @@ -2,6 +2,8 @@ display: block; margin-top: $gutter; margin-bottom: $gutter; + margin-left: -$gutter-half; + margin-right: -$gutter-half; ul { margin: 0; @@ -15,15 +17,15 @@ text-align: right; margin: 0; padding: 0; - width: 49%; + width: 50%; a { display: block; - color: $link-colour; + padding: $gutter-half; text-decoration: none; - @include ie-lte(7) { - height: 4.5em; + &:visited { + color: $link-colour; } &:hover, @@ -33,62 +35,47 @@ .pagination-part-title { @include core-27($line-height: (33.75 / 27)); - margin-bottom: 0.1em; display: block; } - - } - - &.next-page a:before, - &.previous-page a:before { - margin-top: -4px; - display: block; - width: 30px; - height: 38px; - content: " "; - } - - &.next-page a:before { - background: transparent image-url("govuk-component/arrow-sprite.png") no-repeat -102px -11px; - margin-right: -32px; - float: right; } + } - &.previous-page a:before { - background: transparent image-url("govuk-component/arrow-sprite.png") no-repeat -20px -11px; - margin-left: -32px; - float: left; - } + .previous-page { + float: left; + text-align: left; + } - &.previous-page { - float: left; - text-align: left; - } + .next-page { + float: right; + text-align: right; + } - &.previous-page a { - padding: 0.75em 0 0.75em 3em; + @include media-down(mobile) { + .previous-page, + .next-page { + float: none; + width: 100%; } - &.next-page { - float: right; + .next-page a { text-align: right; } + } - &.next-page a { - padding: 0.75em 3em 0.75em 0; - } + .pagination-icon { + display: inline-block; + margin-bottom: 1px; + height: .482em; + width: .63em; + } - @include media-down(mobile) { - &.previous-page, - &.next-page { - float: none; - width: 100%; - } + .pagination-label { + display: inline-block; + margin-top: 0.1em; + text-decoration: underline; - &.next-page a { - text-align: right; - } + &:empty { + display: none; } } - } diff --git a/app/views/govuk_component/docs/previous_and_next_navigation.yml b/app/views/govuk_component/docs/previous_and_next_navigation.yml index 8a256ca72..a79e7c395 100644 --- a/app/views/govuk_component/docs/previous_and_next_navigation.yml +++ b/app/views/govuk_component/docs/previous_and_next_navigation.yml @@ -38,3 +38,12 @@ fixtures: next_page: url: next-page title: Next page + become_a_lorry_bus_driver_example: + previous_page: + url: previous-page + title: Previous + label: Applying for a provisional lorry or bus licence + next_page: + url: next-page + title: Next + label: 'Driver CPC part 1 test: theory' diff --git a/app/views/govuk_component/previous_and_next_navigation.raw.html.erb b/app/views/govuk_component/previous_and_next_navigation.raw.html.erb index 5f41d8fd1..ab410fcf4 100644 --- a/app/views/govuk_component/previous_and_next_navigation.raw.html.erb +++ b/app/views/govuk_component/previous_and_next_navigation.raw.html.erb @@ -7,17 +7,31 @@