116 lines
2.4 KiB
SCSS
116 lines
2.4 KiB
SCSS
@import "variables";
|
|
|
|
.pagination {
|
|
margin-top: calc(var(--font-theme-size) * 0.625);
|
|
|
|
.pagination__title {
|
|
display: flex;
|
|
text-align: center;
|
|
position: relative;
|
|
margin: calc(var(--font-theme-size) * 0.625) 0 calc(var(--font-theme-size) * 0.625);
|
|
}
|
|
|
|
.pagination__title-h {
|
|
text-align: center;
|
|
margin: 0 auto;
|
|
padding: calc(var(--font-theme-size) * 0.3125) calc(var(--font-theme-size) * 0.625);
|
|
background: var(--color-theme-background);
|
|
color: color-mix(in srgb, var(--color-theme-foreground) 65%, transparent);
|
|
font-size: calc(var(--font-theme-size) * 0.8);
|
|
text-decoration: none;
|
|
letter-spacing: 0.1em;
|
|
z-index: 1;
|
|
}
|
|
|
|
.pagination__title hr {
|
|
position: absolute;
|
|
background-color: var(--color-theme-foreground);
|
|
left: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
margin-top: calc(var(--font-theme-size) * 0.9375);
|
|
z-index: 0;
|
|
}
|
|
|
|
.pagination__buttons {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: calc(var(--font-theme-size) * 1.25);
|
|
|
|
@media (min-width: $phone-min-width) {
|
|
flex-direction: row;
|
|
}
|
|
|
|
@media (max-width: $phone-max-width) {
|
|
flex-direction: column;
|
|
gap: calc(var(--font-theme-size) * 0.9375);
|
|
}
|
|
|
|
span {
|
|
display: flex;
|
|
|
|
@media (min-width: $phone-min-width) {
|
|
&:first-child {
|
|
margin-right: auto;
|
|
}
|
|
&:last-child {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: $phone-max-width) {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
max-width: 100%;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-decoration: none;
|
|
color: var(--color-theme-foreground);
|
|
|
|
@media (max-width: $phone-max-width) {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
.button {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: inherit;
|
|
padding: 0;
|
|
appearance: none;
|
|
}
|
|
}
|
|
|
|
.button__text {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.next .button__icon {
|
|
margin-left: calc(var(--font-theme-size) * 0.5);
|
|
}
|
|
|
|
.prev .button__icon {
|
|
margin-right: calc(var(--font-theme-size) * 0.5);
|
|
}
|
|
|
|
.pagination__buttons:has(span:only-child) {
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media print {
|
|
.pagination {
|
|
display: none;
|
|
}
|
|
} |