overleaf/services/web/frontend/stylesheets/bootstrap-5/components/pagination.scss
M Fahru ca6b5ae4ca Merge pull request #21214 from overleaf/mf-new-gallery-search-result-pagination
[web] Fix pagination in gallery search result

GitOrigin-RevId: 2c34afd7bff2f2a47cc585e68433ac3fa4f16589
2024-10-22 08:07:53 +00:00

60 lines
1.2 KiB
SCSS

// Pagination (multiple pages)
// --------------------------------------------------
.pagination {
display: inline-block;
padding-left: 0;
margin: 0;
> li {
display: inline-block;
> a,
> span,
> button {
position: relative;
float: left; // Collapse white-space
padding: var(--spacing-04) var(--spacing-06);
line-height: var(--line-height-base);
text-decoration: none;
color: var(--neutral-90);
background-color: #fff;
border: 1px solid var(--neutral-30);
margin-left: -1px;
font-weight: 600;
&:hover,
&:focus {
color: var(--neutral-90);
background-color: var(--neutral-10);
border-color: var(--neutral-30);
text-decoration: none;
}
}
&:first-child {
> a,
> span,
> button {
margin-left: 0;
}
}
}
> .active > a,
> .active > span,
> .active > button {
&,
&:hover,
&:focus {
z-index: 2;
color: var(--green-70);
background-color: var(--green-10);
border-color: var(--neutral-30);
cursor: default;
}
}
.ellipses {
pointer-events: none;
}
}