From: Geoff Kimball Date: Tue, 24 Nov 2015 19:03:06 +0000 (-0800) Subject: Fix pagination arrow settings not working X-Git-Tag: v6.0.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08e6c344933e24ca974d9458b069c94d66aee336;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix pagination arrow settings not working --- diff --git a/docs/pages/pagination.md b/docs/pages/pagination.md index 1f2e8853f..8d7f62e35 100644 --- a/docs/pages/pagination.md +++ b/docs/pages/pagination.md @@ -14,7 +14,7 @@ Extra screen reader-only text should also be added to a pagination element. In t ```html_example ``` @@ -34,7 +34,7 @@ The items in a pagination list are `display: inline-block`, which makes centerin ```html_example ``` diff --git a/scss/components/_pagination.scss b/scss/components/_pagination.scss index 72aba4e57..4d4557779 100644 --- a/scss/components/_pagination.scss +++ b/scss/components/_pagination.scss @@ -95,25 +95,6 @@ $pagination-arrows: true !default; background: $pagination-item-background-hover; } } - - // Symbols - @if $pagination-arrows { - [aria-label='previous'] { - &::before { - content: '«'; - display: inline-block; - margin-#{$global-right}: 0.75rem; - } - } - - [aria-label='next'] { - &::after { - content: '»'; - display: inline-block; - margin-#{$global-left}: 0.75rem; - } - } - } } /// Adds styles for the current pagination item. Apply this to an ``. @@ -158,4 +139,20 @@ $pagination-arrows: true !default; @include pagination-ellipsis; } } + + @if $pagination-arrows { + .pagination-previous a::before, + .pagination-previous.disabled::before { + content: '«'; + display: inline-block; + margin-#{$global-right}: 0.5rem; + } + + .pagination-next a::after, + .pagination-next.disabled::after { + content: '»'; + display: inline-block; + margin-#{$global-left}: 0.5rem; + } + } }