mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Remove parent div from pagination component
* No more div.pagination; it's now just ul.pagination * No more .pagination-right or .pagination-centered * Sizes remain * Any further customization, such as alignment, should be done on the individual application or site level.
This commit is contained in:
parent
3773b99969
commit
7a3f078fb4
4 changed files with 190 additions and 338 deletions
81
docs/assets/css/bootstrap.css
vendored
81
docs/assets/css/bootstrap.css
vendored
|
@ -3746,24 +3746,19 @@ fieldset[disabled] .navbar-inverse .btn-navbar {
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination ul {
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 0;
|
margin: 20px 0;
|
||||||
margin-left: 0;
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination ul > li {
|
.pagination > li {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination ul > li > a,
|
.pagination > li > a,
|
||||||
.pagination ul > li > span {
|
.pagination > li > span {
|
||||||
float: left;
|
float: left;
|
||||||
padding: 4px 12px;
|
padding: 4px 12px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
@ -3773,89 +3768,81 @@ fieldset[disabled] .navbar-inverse .btn-navbar {
|
||||||
border-left-width: 0;
|
border-left-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination ul > li > a:hover,
|
.pagination > li > a:hover,
|
||||||
.pagination ul > .active > a,
|
.pagination > .active > a,
|
||||||
.pagination ul > .active > span {
|
.pagination > .active > span {
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination ul > .active > a,
|
.pagination > .active > a,
|
||||||
.pagination ul > .active > span {
|
.pagination > .active > span {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination ul > .disabled > span,
|
.pagination > .disabled > span,
|
||||||
.pagination ul > .disabled > a,
|
.pagination > .disabled > a,
|
||||||
.pagination ul > .disabled > a:hover {
|
.pagination > .disabled > a:hover {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination ul > li:first-child > a,
|
.pagination > li:first-child > a,
|
||||||
.pagination ul > li:first-child > span {
|
.pagination > li:first-child > span {
|
||||||
border-left-width: 1px;
|
border-left-width: 1px;
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination ul > li:last-child > a,
|
.pagination > li:last-child > a,
|
||||||
.pagination ul > li:last-child > span {
|
.pagination > li:last-child > span {
|
||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-centered {
|
.pagination-large > li > a,
|
||||||
text-align: center;
|
.pagination-large > li > span {
|
||||||
}
|
|
||||||
|
|
||||||
.pagination-right {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination-large ul > li > a,
|
|
||||||
.pagination-large ul > li > span {
|
|
||||||
padding: 11px 19px;
|
padding: 11px 19px;
|
||||||
font-size: 17.5px;
|
font-size: 17.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-large ul > li:first-child > a,
|
.pagination-large > li:first-child > a,
|
||||||
.pagination-large ul > li:first-child > span {
|
.pagination-large > li:first-child > span {
|
||||||
border-bottom-left-radius: 6px;
|
border-bottom-left-radius: 6px;
|
||||||
border-top-left-radius: 6px;
|
border-top-left-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-large ul > li:last-child > a,
|
.pagination-large > li:last-child > a,
|
||||||
.pagination-large ul > li:last-child > span {
|
.pagination-large > li:last-child > span {
|
||||||
border-top-right-radius: 6px;
|
border-top-right-radius: 6px;
|
||||||
border-bottom-right-radius: 6px;
|
border-bottom-right-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-mini ul > li:first-child > a,
|
.pagination-mini > li:first-child > a,
|
||||||
.pagination-small ul > li:first-child > a,
|
.pagination-small > li:first-child > a,
|
||||||
.pagination-mini ul > li:first-child > span,
|
.pagination-mini > li:first-child > span,
|
||||||
.pagination-small ul > li:first-child > span {
|
.pagination-small > li:first-child > span {
|
||||||
border-bottom-left-radius: 3px;
|
border-bottom-left-radius: 3px;
|
||||||
border-top-left-radius: 3px;
|
border-top-left-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-mini ul > li:last-child > a,
|
.pagination-mini > li:last-child > a,
|
||||||
.pagination-small ul > li:last-child > a,
|
.pagination-small > li:last-child > a,
|
||||||
.pagination-mini ul > li:last-child > span,
|
.pagination-mini > li:last-child > span,
|
||||||
.pagination-small ul > li:last-child > span {
|
.pagination-small > li:last-child > span {
|
||||||
border-top-right-radius: 3px;
|
border-top-right-radius: 3px;
|
||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-small ul > li > a,
|
.pagination-small > li > a,
|
||||||
.pagination-small ul > li > span {
|
.pagination-small > li > span {
|
||||||
padding: 2px 10px;
|
padding: 2px 10px;
|
||||||
font-size: 11.9px;
|
font-size: 11.9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination-mini ul > li > a,
|
.pagination-mini > li > a,
|
||||||
.pagination-mini ul > li > span {
|
.pagination-mini > li > span {
|
||||||
padding: 0 6px;
|
padding: 0 6px;
|
||||||
font-size: 10.5px;
|
font-size: 10.5px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1189,29 +1189,25 @@
|
||||||
<h2>Standard pagination</h2>
|
<h2>Standard pagination</h2>
|
||||||
<p>Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.</p>
|
<p>Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div class="pagination">
|
<ul class="pagination">
|
||||||
<ul>
|
<li><a href="#">«</a></li>
|
||||||
<li><a href="#">«</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">2</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">3</a></li>
|
||||||
<li><a href="#">3</a></li>
|
<li><a href="#">4</a></li>
|
||||||
<li><a href="#">4</a></li>
|
<li><a href="#">5</a></li>
|
||||||
<li><a href="#">5</a></li>
|
<li><a href="#">»</a></li>
|
||||||
<li><a href="#">»</a></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="pagination">
|
<ul class="pagination">
|
||||||
<ul>
|
<li><a href="#">Prev</a></li>
|
||||||
<li><a href="#">Prev</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">2</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">3</a></li>
|
||||||
<li><a href="#">3</a></li>
|
<li><a href="#">4</a></li>
|
||||||
<li><a href="#">4</a></li>
|
<li><a href="#">Next</a></li>
|
||||||
<li><a href="#">Next</a></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1223,43 +1219,37 @@
|
||||||
<h3>Disabled and active states</h3>
|
<h3>Disabled and active states</h3>
|
||||||
<p>Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.</p>
|
<p>Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div class="pagination pagination-centered">
|
<ul class="pagination">
|
||||||
<ul>
|
<li class="disabled"><a href="#">«</a></li>
|
||||||
<li class="disabled"><a href="#">«</a></li>
|
<li class="active"><a href="#">1</a></li>
|
||||||
<li class="active"><a href="#">1</a></li>
|
<li><a href="#">2</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">3</a></li>
|
||||||
<li><a href="#">3</a></li>
|
<li><a href="#">4</a></li>
|
||||||
<li><a href="#">4</a></li>
|
<li><a href="#">5</a></li>
|
||||||
<li><a href="#">5</a></li>
|
<li><a href="#">»</a></li>
|
||||||
<li><a href="#">»</a></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="pagination">
|
<ul class="pagination">
|
||||||
<ul>
|
<li class="disabled"><a href="#">Prev</a></li>
|
||||||
<li class="disabled"><a href="#">Prev</a></li>
|
<li class="active"><a href="#">1</a></li>
|
||||||
<li class="active"><a href="#">1</a></li>
|
...
|
||||||
...
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</pre>
|
</pre>
|
||||||
<p>You can optionally swap out active or disabled anchors for spans to remove click functionality while retaining intended styles.</p>
|
<p>You can optionally swap out active or disabled anchors for spans to remove click functionality while retaining intended styles.</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="pagination">
|
<ul class="pagination">
|
||||||
<ul>
|
<li class="disabled"><span>Prev</span></li>
|
||||||
<li class="disabled"><span>Prev</span></li>
|
<li class="active"><span>1</span></li>
|
||||||
<li class="active"><span>1</span></li>
|
...
|
||||||
...
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h3>Sizes</h3>
|
<h3>Sizes</h3>
|
||||||
<p>Fancy larger or smaller pagination? Add <code>.pagination-large</code>, <code>.pagination-small</code>, or <code>.pagination-mini</code> for additional sizes.</p>
|
<p>Fancy larger or smaller pagination? Add <code>.pagination-large</code>, <code>.pagination-small</code>, or <code>.pagination-mini</code> for additional sizes.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div class="pagination pagination-large">
|
<div>
|
||||||
<ul>
|
<ul class="pagination pagination-large">
|
||||||
<li><a href="#">«</a></li>
|
<li><a href="#">«</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">2</a></li>
|
||||||
|
@ -1269,19 +1259,8 @@
|
||||||
<li><a href="#">»</a></li>
|
<li><a href="#">»</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination">
|
<div>
|
||||||
<ul>
|
<ul class="pagination">
|
||||||
<li><a href="#">«</a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#">»</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="pagination pagination-small">
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">«</a></li>
|
<li><a href="#">«</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">2</a></li>
|
||||||
|
@ -1291,8 +1270,19 @@
|
||||||
<li><a href="#">»</a></li>
|
<li><a href="#">»</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination pagination-mini">
|
<div>
|
||||||
<ul>
|
<ul class="pagination pagination-small">
|
||||||
|
<li><a href="#">«</a></li>
|
||||||
|
<li><a href="#">1</a></li>
|
||||||
|
<li><a href="#">2</a></li>
|
||||||
|
<li><a href="#">3</a></li>
|
||||||
|
<li><a href="#">4</a></li>
|
||||||
|
<li><a href="#">5</a></li>
|
||||||
|
<li><a href="#">»</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="pagination pagination-mini">
|
||||||
<li><a href="#">«</a></li>
|
<li><a href="#">«</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">2</a></li>
|
||||||
|
@ -1304,65 +1294,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="pagination pagination-large">
|
<ul class="pagination pagination-large">
|
||||||
<ul>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="pagination">
|
|
||||||
<ul>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="pagination pagination-small">
|
|
||||||
<ul>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="pagination pagination-mini">
|
|
||||||
<ul>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h3>Alignment</h3>
|
|
||||||
<p>Add one of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.</p>
|
|
||||||
<div class="bs-docs-example">
|
|
||||||
<div class="pagination pagination-centered">
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">«</a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#">»</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<pre class="prettyprint linenums">
|
|
||||||
<div class="pagination pagination-centered">
|
|
||||||
...
|
...
|
||||||
</div>
|
</ul>
|
||||||
</pre>
|
<ul class="pagination">
|
||||||
<div class="bs-docs-example">
|
|
||||||
<div class="pagination pagination-right">
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">«</a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#">»</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<pre class="prettyprint linenums">
|
|
||||||
<div class="pagination pagination-right">
|
|
||||||
...
|
...
|
||||||
</div>
|
</ul>
|
||||||
|
<ul class="pagination pagination-small">
|
||||||
|
...
|
||||||
|
</ul>
|
||||||
|
<ul class="pagination pagination-mini">
|
||||||
|
...
|
||||||
|
</ul>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
183
docs/templates/pages/components.mustache
vendored
183
docs/templates/pages/components.mustache
vendored
|
@ -1121,29 +1121,25 @@
|
||||||
<h2>Standard pagination</h2>
|
<h2>Standard pagination</h2>
|
||||||
<p>Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.</p>
|
<p>Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div class="pagination">
|
<ul class="pagination">
|
||||||
<ul>
|
<li><a href="#">«</a></li>
|
||||||
<li><a href="#">«</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">2</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">3</a></li>
|
||||||
<li><a href="#">3</a></li>
|
<li><a href="#">4</a></li>
|
||||||
<li><a href="#">4</a></li>
|
<li><a href="#">5</a></li>
|
||||||
<li><a href="#">5</a></li>
|
<li><a href="#">»</a></li>
|
||||||
<li><a href="#">»</a></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="pagination">
|
<ul class="pagination">
|
||||||
<ul>
|
<li><a href="#">Prev</a></li>
|
||||||
<li><a href="#">Prev</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">2</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">3</a></li>
|
||||||
<li><a href="#">3</a></li>
|
<li><a href="#">4</a></li>
|
||||||
<li><a href="#">4</a></li>
|
<li><a href="#">Next</a></li>
|
||||||
<li><a href="#">Next</a></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1155,43 +1151,37 @@
|
||||||
<h3>Disabled and active states</h3>
|
<h3>Disabled and active states</h3>
|
||||||
<p>Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.</p>
|
<p>Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div class="pagination pagination-centered">
|
<ul class="pagination">
|
||||||
<ul>
|
<li class="disabled"><a href="#">«</a></li>
|
||||||
<li class="disabled"><a href="#">«</a></li>
|
<li class="active"><a href="#">1</a></li>
|
||||||
<li class="active"><a href="#">1</a></li>
|
<li><a href="#">2</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">3</a></li>
|
||||||
<li><a href="#">3</a></li>
|
<li><a href="#">4</a></li>
|
||||||
<li><a href="#">4</a></li>
|
<li><a href="#">5</a></li>
|
||||||
<li><a href="#">5</a></li>
|
<li><a href="#">»</a></li>
|
||||||
<li><a href="#">»</a></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="pagination">
|
<ul class="pagination">
|
||||||
<ul>
|
<li class="disabled"><a href="#">Prev</a></li>
|
||||||
<li class="disabled"><a href="#">Prev</a></li>
|
<li class="active"><a href="#">1</a></li>
|
||||||
<li class="active"><a href="#">1</a></li>
|
...
|
||||||
...
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</pre>
|
</pre>
|
||||||
<p>You can optionally swap out active or disabled anchors for spans to remove click functionality while retaining intended styles.</p>
|
<p>You can optionally swap out active or disabled anchors for spans to remove click functionality while retaining intended styles.</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="pagination">
|
<ul class="pagination">
|
||||||
<ul>
|
<li class="disabled"><span>Prev</span></li>
|
||||||
<li class="disabled"><span>Prev</span></li>
|
<li class="active"><span>1</span></li>
|
||||||
<li class="active"><span>1</span></li>
|
...
|
||||||
...
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h3>Sizes</h3>
|
<h3>Sizes</h3>
|
||||||
<p>Fancy larger or smaller pagination? Add <code>.pagination-large</code>, <code>.pagination-small</code>, or <code>.pagination-mini</code> for additional sizes.</p>
|
<p>Fancy larger or smaller pagination? Add <code>.pagination-large</code>, <code>.pagination-small</code>, or <code>.pagination-mini</code> for additional sizes.</p>
|
||||||
<div class="bs-docs-example">
|
<div class="bs-docs-example">
|
||||||
<div class="pagination pagination-large">
|
<div>
|
||||||
<ul>
|
<ul class="pagination pagination-large">
|
||||||
<li><a href="#">«</a></li>
|
<li><a href="#">«</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">2</a></li>
|
||||||
|
@ -1201,19 +1191,8 @@
|
||||||
<li><a href="#">»</a></li>
|
<li><a href="#">»</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination">
|
<div>
|
||||||
<ul>
|
<ul class="pagination">
|
||||||
<li><a href="#">«</a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#">»</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="pagination pagination-small">
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">«</a></li>
|
<li><a href="#">«</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">2</a></li>
|
||||||
|
@ -1223,8 +1202,19 @@
|
||||||
<li><a href="#">»</a></li>
|
<li><a href="#">»</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="pagination pagination-mini">
|
<div>
|
||||||
<ul>
|
<ul class="pagination pagination-small">
|
||||||
|
<li><a href="#">«</a></li>
|
||||||
|
<li><a href="#">1</a></li>
|
||||||
|
<li><a href="#">2</a></li>
|
||||||
|
<li><a href="#">3</a></li>
|
||||||
|
<li><a href="#">4</a></li>
|
||||||
|
<li><a href="#">5</a></li>
|
||||||
|
<li><a href="#">»</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="pagination pagination-mini">
|
||||||
<li><a href="#">«</a></li>
|
<li><a href="#">«</a></li>
|
||||||
<li><a href="#">1</a></li>
|
<li><a href="#">1</a></li>
|
||||||
<li><a href="#">2</a></li>
|
<li><a href="#">2</a></li>
|
||||||
|
@ -1236,65 +1226,18 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="pagination pagination-large">
|
<ul class="pagination pagination-large">
|
||||||
<ul>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="pagination">
|
|
||||||
<ul>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="pagination pagination-small">
|
|
||||||
<ul>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="pagination pagination-mini">
|
|
||||||
<ul>
|
|
||||||
...
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<h3>Alignment</h3>
|
|
||||||
<p>Add one of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.</p>
|
|
||||||
<div class="bs-docs-example">
|
|
||||||
<div class="pagination pagination-centered">
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">«</a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#">»</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<pre class="prettyprint linenums">
|
|
||||||
<div class="pagination pagination-centered">
|
|
||||||
...
|
...
|
||||||
</div>
|
</ul>
|
||||||
</pre>
|
<ul class="pagination">
|
||||||
<div class="bs-docs-example">
|
|
||||||
<div class="pagination pagination-right">
|
|
||||||
<ul>
|
|
||||||
<li><a href="#">«</a></li>
|
|
||||||
<li><a href="#">1</a></li>
|
|
||||||
<li><a href="#">2</a></li>
|
|
||||||
<li><a href="#">3</a></li>
|
|
||||||
<li><a href="#">4</a></li>
|
|
||||||
<li><a href="#">5</a></li>
|
|
||||||
<li><a href="#">»</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<pre class="prettyprint linenums">
|
|
||||||
<div class="pagination pagination-right">
|
|
||||||
...
|
...
|
||||||
</div>
|
</ul>
|
||||||
|
<ul class="pagination pagination-small">
|
||||||
|
...
|
||||||
|
</ul>
|
||||||
|
<ul class="pagination pagination-mini">
|
||||||
|
...
|
||||||
|
</ul>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,27 +1,17 @@
|
||||||
//
|
//
|
||||||
// Pagination (multiple pages)
|
// Pagination (multiple pages)
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Space out pagination from surrounding content
|
|
||||||
.pagination {
|
.pagination {
|
||||||
margin: @line-height-base 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination ul {
|
|
||||||
// Allow for text-based alignment
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
// Reset default ul styles
|
margin: @line-height-base 0;
|
||||||
margin-left: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
// Visuals
|
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
||||||
}
|
}
|
||||||
.pagination ul > li {
|
.pagination > li {
|
||||||
display: inline; // Remove list-style and block-level defaults
|
display: inline; // Remove list-style and block-level defaults
|
||||||
}
|
}
|
||||||
.pagination ul > li > a,
|
.pagination > li > a,
|
||||||
.pagination ul > li > span {
|
.pagination > li > span {
|
||||||
float: left; // Collapse white-space
|
float: left; // Collapse white-space
|
||||||
padding: 4px 12px;
|
padding: 4px 12px;
|
||||||
line-height: @line-height-base;
|
line-height: @line-height-base;
|
||||||
|
@ -30,61 +20,50 @@
|
||||||
border: 1px solid @pagination-border;
|
border: 1px solid @pagination-border;
|
||||||
border-left-width: 0;
|
border-left-width: 0;
|
||||||
}
|
}
|
||||||
.pagination ul > li > a:hover,
|
.pagination > li > a:hover,
|
||||||
.pagination ul > .active > a,
|
.pagination > .active > a,
|
||||||
.pagination ul > .active > span {
|
.pagination > .active > span {
|
||||||
background-color: @pagination-background-active;
|
background-color: @pagination-background-active;
|
||||||
}
|
}
|
||||||
.pagination ul > .active > a,
|
.pagination > .active > a,
|
||||||
.pagination ul > .active > span {
|
.pagination > .active > span {
|
||||||
color: @grayLight;
|
color: @grayLight;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
.pagination ul > .disabled > span,
|
.pagination > .disabled > span,
|
||||||
.pagination ul > .disabled > a,
|
.pagination > .disabled > a,
|
||||||
.pagination ul > .disabled > a:hover {
|
.pagination > .disabled > a:hover {
|
||||||
color: @grayLight;
|
color: @grayLight;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
.pagination ul > li:first-child > a,
|
.pagination > li:first-child > a,
|
||||||
.pagination ul > li:first-child > span {
|
.pagination > li:first-child > span {
|
||||||
border-left-width: 1px;
|
border-left-width: 1px;
|
||||||
.border-left-radius(@border-radius-base);
|
.border-left-radius(@border-radius-base);
|
||||||
}
|
}
|
||||||
.pagination ul > li:last-child > a,
|
.pagination > li:last-child > a,
|
||||||
.pagination ul > li:last-child > span {
|
.pagination > li:last-child > span {
|
||||||
.border-right-radius(@border-radius-base);
|
.border-right-radius(@border-radius-base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Alignment
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
.pagination-centered {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.pagination-right {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Sizing
|
// Sizing
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Large
|
// Large
|
||||||
.pagination-large {
|
.pagination-large {
|
||||||
ul > li > a,
|
> li > a,
|
||||||
ul > li > span {
|
> li > span {
|
||||||
padding: @padding-large;
|
padding: @padding-large;
|
||||||
font-size: @font-size-large;
|
font-size: @font-size-large;
|
||||||
}
|
}
|
||||||
ul > li:first-child > a,
|
> li:first-child > a,
|
||||||
ul > li:first-child > span {
|
> li:first-child > span {
|
||||||
.border-left-radius(@border-radius-large);
|
.border-left-radius(@border-radius-large);
|
||||||
}
|
}
|
||||||
ul > li:last-child > a,
|
> li:last-child > a,
|
||||||
ul > li:last-child > span {
|
> li:last-child > span {
|
||||||
.border-right-radius(@border-radius-large);
|
.border-right-radius(@border-radius-large);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,28 +71,28 @@
|
||||||
// Small and mini
|
// Small and mini
|
||||||
.pagination-mini,
|
.pagination-mini,
|
||||||
.pagination-small {
|
.pagination-small {
|
||||||
ul > li:first-child > a,
|
> li:first-child > a,
|
||||||
ul > li:first-child > span {
|
> li:first-child > span {
|
||||||
.border-left-radius(@border-radius-small);
|
.border-left-radius(@border-radius-small);
|
||||||
}
|
}
|
||||||
ul > li:last-child > a,
|
> li:last-child > a,
|
||||||
ul > li:last-child > span {
|
> li:last-child > span {
|
||||||
.border-right-radius(@border-radius-small);
|
.border-right-radius(@border-radius-small);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Small
|
// Small
|
||||||
.pagination-small {
|
.pagination-small {
|
||||||
ul > li > a,
|
> li > a,
|
||||||
ul > li > span {
|
> li > span {
|
||||||
padding: @padding-small;
|
padding: @padding-small;
|
||||||
font-size: @font-size-small;
|
font-size: @font-size-small;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Mini
|
// Mini
|
||||||
.pagination-mini {
|
.pagination-mini {
|
||||||
ul > li > a,
|
> li > a,
|
||||||
ul > li > span {
|
> li > span {
|
||||||
padding: @padding-mini;
|
padding: @padding-mini;
|
||||||
font-size: @font-size-mini;
|
font-size: @font-size-mini;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue