debian-mirror-gitlab/app/assets/stylesheets/framework/pagination.scss

91 lines
1.2 KiB
SCSS
Raw Normal View History

2015-09-25 12:07:36 +05:30
.gl-pagination {
2016-04-02 18:10:28 +05:30
text-align: center;
2015-09-25 12:07:36 +05:30
border-top: 1px solid $border-color;
2016-04-02 18:10:28 +05:30
margin: 0;
2015-09-25 12:07:36 +05:30
margin-top: 0;
.pagination {
padding: 0;
2017-08-17 22:00:37 +05:30
a {
cursor: pointer;
}
.separator,
.separator:hover {
a {
cursor: default;
background-color: $gray-light;
padding: $gl-vert-padding;
}
}
}
.gap,
.gap:hover {
background-color: $gray-light;
padding: $gl-vert-padding;
cursor: default;
2015-09-25 12:07:36 +05:30
}
}
2015-12-23 02:04:40 +05:30
.panel > .gl-pagination {
margin: 0;
}
2017-08-17 22:00:37 +05:30
/**
* Extra-small screen pagination.
*/
@media (max-width: 320px) {
.gl-pagination {
.first,
.last {
display: none;
}
.page {
display: none;
&.active {
display: inline;
}
}
}
}
/**
* Small screen pagination
*/
@media (max-width: $screen-xs-min) {
.gl-pagination {
.pagination li a {
padding: 6px 10px;
}
.page {
display: none;
&.active {
display: inline;
}
}
}
}
/**
* Medium screen pagination
*/
@media (min-width: $screen-xs-min) and (max-width: $screen-md-max) {
.gl-pagination {
.page {
display: none;
&.active,
&.sibling {
display: inline;
}
}
}
}