diff options
author | Mark Otto <markotto@twitter.com> | 2012-09-19 07:56:20 +0400 |
---|---|---|
committer | Mark Otto <markotto@twitter.com> | 2012-09-19 07:56:20 +0400 |
commit | 2769241aeb5e9eba4a34ddbd9d495f7f8271e360 (patch) | |
tree | 5c2cb4a217e7b3e6e7d8d457b69e9683ecefbf12 /less/pagination.less | |
parent | 37460e58d3139ef43425583b50d967341ec43930 (diff) |
add new vars for common font-sizes and paddings with large, small, and mini components; resize pagination and buttons to better match each other
Diffstat (limited to 'less/pagination.less')
-rw-r--r-- | less/pagination.less | 48 |
1 files changed, 19 insertions, 29 deletions
diff --git a/less/pagination.less b/less/pagination.less index 57771824ae..2c823e1498 100644 --- a/less/pagination.less +++ b/less/pagination.less @@ -2,21 +2,30 @@ // Pagination (multiple pages) // -------------------------------------------------- +// Space out pagination from surrounding content +.pagination { + margin: @baseLineHeight 0; +} .pagination ul { + // Allow for text-based alignment display: inline-block; .ie7-inline-block(); + // Reset default ul styles margin-left: 0; margin-bottom: 0; - .border-radius(3px); + // Visuals + .border-radius(4px); .box-shadow(0 1px 2px rgba(0,0,0,.05)); } .pagination ul > li { - display: inline; + display: inline; // Remove list-style and block-level defaults } .pagination ul > li > a, .pagination ul > li > span { - float: left; + float: left; // Collapse white-space + padding: 10px 14px; + line-height: 1; text-decoration: none; background-color: @paginationBackground; border: 1px solid @paginationBorder; @@ -57,50 +66,31 @@ text-align: right; } + // Pagination Sizes // -------------------------------------------------- -// Default -.pagination { - margin: (@baseLineHeight - 3) 0; - height: @baseLineHeight + 10; - font-size: @baseFontSize; - ul > li > a, - ul > li > span { - padding: 0 12px; - line-height: @baseLineHeight + 8; - } -} // Large .pagination-large { - margin: @baseLineHeight 0; - height: @baseLineHeight + 18; - font-size: @baseFontSize + 2px; + font-size: @fontSizeLarge; ul > li > a, ul > li > span { - padding: 0 15px; - line-height: (@baseLineHeight * 2) - 4; + padding: @paddingLarge; } } // Small .pagination-small { - margin: (@baseLineHeight - 5) 0; - height: @baseLineHeight + 6; - font-size: @baseFontSize - 2px; + font-size: @fontSizeSmall; ul > li > a, ul > li > span { - padding: 0 10px; - line-height: @baseLineHeight + 2; + padding: @paddingSmall; } } // Mini .pagination-mini { - margin: (@baseLineHeight - 10) 0; - height: @baseLineHeight + 3; - font-size: @baseFontSize - 3px; + font-size: @fontSizeMini; ul > li > a, ul > li > span { - padding: 0 8px; - line-height: @baseLineHeight + 1; + padding: @paddingMini; } } |