diff --git a/less/mixins.less b/less/mixins.less index 24bce6bbff..57f1ff24c4 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -393,6 +393,30 @@ border-radius: @border-radius; } +// Pagination +// ------------------------- +.pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size; @border-radius) { + > li { + > a, + > span { + padding: @padding-vertical @padding-horizontal; + font-size: @font-size; + } + &:first-child { + > a, + > span { + .border-left-radius(@border-radius); + } + } + &:last-child { + > a, + > span { + .border-right-radius(@border-radius); + } + } + } +} + // Labels // ------------------------- .label-variant(@color) { diff --git a/less/pagination.less b/less/pagination.less index 65679beff4..12bb71b197 100644 --- a/less/pagination.less +++ b/less/pagination.less @@ -63,46 +63,10 @@ // Large .pagination-lg { - > li { - > a, - > span { - padding: @padding-large-vertical @padding-large-horizontal; - font-size: @font-size-large; - } - &:first-child { - > a, - > span { - .border-left-radius(@border-radius-large); - } - } - &:last-child { - > a, - > span { - .border-right-radius(@border-radius-large); - } - } - } + .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large); } // Small .pagination-sm { - > li { - > a, - > span { - padding: @padding-small-vertical @padding-small-horizontal; - font-size: @font-size-small; - } - &:first-child { - > a, - > span { - .border-left-radius(@border-radius-small); - } - } - &:last-child { - > a, - > span { - .border-right-radius(@border-radius-small); - } - } - } + .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small); }