spc-site/data/home/assets/sass/components/_pagination.scss

70 lines
1.3 KiB
SCSS
Raw Permalink Normal View History

2022-05-13 17:21:06 +03:00
///
/// Forty by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* Pagination */
ul.pagination {
cursor: default;
list-style: none;
padding-left: 0;
li {
display: inline-block;
padding-left: 0;
vertical-align: middle;
> .page {
@include vendor('transition', (
'background-color #{_duration(transition)} ease-in-out',
'color #{_duration(transition)} ease-in-out'
));
border-bottom: 0;
display: inline-block;
font-size: 0.8em;
font-weight: _font(weight-bold);
height: 1.5em;
line-height: 1.5em;
margin: 0 0.125em;
min-width: 1.5em;
padding: 0 0.5em;
text-align: center;
&.active {
background-color: _palette(fg-bold);
color: _palette(bg);
&:hover {
background-color: _palette(highlight);
color: _palette(bg) !important;
}
&:active {
background-color: desaturate(darken(_palette(highlight), 15), 5);
}
}
}
&:first-child {
padding-right: 0.75em;
}
&:last-child {
padding-left: 0.75em;
}
}
@include breakpoint('<=xsmall') {
li {
&:nth-child(n+2):nth-last-child(n+2) {
display: none;
}
&:first-child {
padding-right: 0;
}
}
}
}