mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 02:58:48 -05:00
51e41c99d8
[web] Add transition to pagination on hover GitOrigin-RevId: ce9c1ed70d8b494b493f3d1121369307728a4ca6
62 lines
1.3 KiB
SCSS
62 lines
1.3 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;
|
|
transition: background-color 0.15s ease-in-out;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: var(--neutral-90);
|
|
background-color: var(--neutral-10);
|
|
border-color: var(--neutral-30);
|
|
text-decoration: none;
|
|
transition: background-color 0.15s ease-in-out;
|
|
}
|
|
}
|
|
|
|
&: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;
|
|
}
|
|
}
|