Ghost/ghost/admin/app/styles/components/pagination.css

112 lines
2.5 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Pagination
/* ---------------------------------------------------------- */
.pagination {
display: inline-block;
margin: 20px 0;
2015-05-16 14:43:12 +03:00
padding-left: 0;
2015-05-14 16:45:37 +03:00
border-radius: var(--border-radius);
}
.pagination > li {
display: inline;
}
.pagination > li > a,
.pagination > li > span {
position: relative;
float: left;
2015-05-16 14:43:12 +03:00
margin-left: -1px;
2015-05-14 16:45:37 +03:00
padding: 6px 12px;
border: 1px solid #dfe1e3;
2015-05-16 14:43:12 +03:00
background-color: #fff;
color: var(--blue);
text-decoration: none;
line-height: 1.42857143;
2015-05-14 16:45:37 +03:00
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
margin-left: 0;
border-top-left-radius: var(--border-radius);
border-bottom-left-radius: var(--border-radius);
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
border-top-right-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
}
.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
2015-05-16 00:28:30 +03:00
background-color: #eee;
2015-05-16 14:43:12 +03:00
color: #2a6496;
2015-05-14 16:45:37 +03:00
}
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
z-index: 2;
2015-05-16 00:28:30 +03:00
background-color: #428bca;
2015-05-16 14:43:12 +03:00
color: #fff;
2015-05-14 16:45:37 +03:00
cursor: default;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
2015-05-16 00:28:30 +03:00
border-color: #ddd;
2015-05-16 14:43:12 +03:00
background-color: #fff;
color: #777;
2015-05-14 16:45:37 +03:00
cursor: not-allowed;
}
/* Sizing
/* ---------------------------------------------------------- */
.pagination-lg > li > a,
.pagination-lg > li > span {
padding: 10px 16px;
font-size: 18px;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
padding: 5px 10px;
font-size: 12px;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}