Files
openfoodnetwork/app/webpacker/css/admin_v3/components/pagination.scss
Jean-Baptiste Bellet fa4dda9976 Finally, remove disabled rule that is unused
We only display active link
2023-08-17 09:26:10 +02:00

74 lines
1.3 KiB
SCSS

.pagination {
text-align: center;
margin: 0 0 1em;
padding: 20px 0 28px 0;
background-color: $color-7;
display: flex;
justify-content: center;
gap: 8px;
.page {
width: 40px;
line-height: 40px;
text-align: center;
display: inline-block;
text-align: center;
background-color: $color-1;
@include defaultBoxShadow;
border-radius: 4px;
color: $color-8;
font-weight: 600;
&.current,
&.gap {
cursor: default;
}
&.current {
background-color: $color-5;
color: $white;
}
&.prev {
margin-right: 28px; // 28+8 (the gap) = 36px : the space between the arrows and the numbers
& > i {
padding-left: 2px;
}
}
&.next {
margin-left: 28px; // 28+8 (the gap) = 36px : the space between the arrows and the numbers
& > i {
padding-left: 6px;
}
}
&[href]:hover {
background-color: $color-5;
color: $white;
}
&.gap {
background-color: transparent;
box-shadow: none;
width: auto;
}
}
button {
margin: 0 0.35em;
background-color: $white;
color: $near-black;
box-shadow: $color-btn-shadow;
&.active {
color: $white;
background-color: $red;
cursor: default;
}
}
}