diff --git a/ui/js/page/channel/view.jsx b/ui/js/page/channel/view.jsx index 172e431f9..d694c3ba8 100644 --- a/ui/js/page/channel/view.jsx +++ b/ui/js/page/channel/view.jsx @@ -77,6 +77,12 @@ class ChannelPage extends React.PureComponent { this.changePage(e.selected + 1)} initialPage={parseInt(page - 1)} diff --git a/ui/scss/component/_pagination.scss b/ui/scss/component/_pagination.scss index b16076f76..940dd11bd 100644 --- a/ui/scss/component/_pagination.scss +++ b/ui/scss/component/_pagination.scss @@ -1,18 +1,32 @@ -ul.pagination { - display: inline-block; +@import "../global"; + +.pagination { + display: block; padding: 0; - margin: 0; + margin: 0 auto; + text-align: center; } -ul.pagination li { - display: inline; - float: left; - padding: 8px 16px; -} - -ul.pagination li:not(.selected) { - background: white; - a { - cursor: hand; +.pagination__item { + display: inline-block; + line-height: $spacing-vertical * 1.5; + height: $spacing-vertical * 1.5; + border-radius: 2px; + &:not(.pagination__item--selected):hover { + background: rgba(0, 0, 0, 0.2); + > a { cursor: hand } + } + > a { + display: inline-block; + padding: 0 $spacing-vertical * 2 / 3; } } + +.pagination__item--previous, .pagination__item--next { + font-size: 1.2em; +} + +.pagination__item--selected { + color: white; + background: $color-primary; +}