diff options
author | amzrk2 | 2020-04-18 18:08:13 +0800 |
---|---|---|
committer | amzrk2 | 2020-04-18 18:08:13 +0800 |
commit | d53b6ab5ec8d5648201efc6308306e0c222b65fd (patch) | |
tree | 7a13f40a2df9a7d8e9210445f5b5bac45e76df31 /assets | |
parent | b8a0c1dacdbffbb8f9d3f9fdb92bebf2655d59df (diff) | |
download | hugo-theme-fuji-d53b6ab5ec8d5648201efc6308306e0c222b65fd.tar.gz hugo-theme-fuji-d53b6ab5ec8d5648201efc6308306e0c222b65fd.tar.bz2 hugo-theme-fuji-d53b6ab5ec8d5648201efc6308306e0c222b65fd.zip |
Smart pagination
Diffstat (limited to 'assets')
-rw-r--r-- | assets/sass/_pagination.scss | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/assets/sass/_pagination.scss b/assets/sass/_pagination.scss index 8e5d248..6c5200b 100644 --- a/assets/sass/_pagination.scss +++ b/assets/sass/_pagination.scss @@ -1,28 +1,26 @@ #pagination { - font-size: $font-size-l3; text-align: center; // spliter between pagination and last post block border-top: $spliter; padding: 1em 0 1em 0; - ul li { + li { display: inline; @include link-primary(); - // darker number when active - &.active a { - color: $color-primary-dark; + &.pag-item a { + vertical-align: middle; } - // remove prev page at first page, next page at last page - &.disabled { - display: none; + // darker number when active + &.pag-current a { + color: $color-secondary; } + } - // remove first page link and last page link - &:first-child, - &:last-child { - display: none; - } + svg { + height: 1em; + width: 1em; + vertical-align: middle; } }
\ No newline at end of file |