LoveIt/assets/css/_partial/_pagination.scss

94 lines
1.5 KiB
SCSS
Raw Normal View History

2019-08-11 19:36:19 +02:00
/** pagination **/
.pagination {
display: flex;
flex-direction: row;
justify-content: center;
list-style: none;
white-space: nowrap;
width: 100%;
2019-08-24 13:32:41 +02:00
padding-top: 1rem;
2019-08-11 19:36:19 +02:00
a {
-webkit-font-smoothing: antialiased;
2019-08-24 13:32:41 +02:00
font-size: .8rem;
2019-08-11 19:36:19 +02:00
color: #bfbfbf;
2019-08-24 13:32:41 +02:00
letter-spacing: .1rem;
2019-08-11 19:36:19 +02:00
font-weight: 700;
padding: 5px 5px;
text-decoration: none;
transition: 0.3s;
}
li {
padding-bottom: 3px;
margin: 0 20px;
box-sizing: border-box;
position: relative;
display: inline;
&.disabled {
display: none;
}
&:hover a {
color: $pagination-link-active-color;
2019-08-11 19:36:19 +02:00
}
.dark-theme &:hover a {
color: $pagination-link-active-color-dark;
2019-08-11 19:36:19 +02:00
}
&:before,
&:after {
position: absolute;
content: "";
width: 0;
height: 3px;
background: $pagination-link-active-color;
2019-08-11 19:36:19 +02:00
transition: 0.3s;
bottom: 0px;
}
.dark-theme &:before,
.dark-theme &:after {
background: $pagination-link-active-color-dark;
2019-08-11 19:36:19 +02:00
}
&:before .active,
&:after .active {
width: 100%;
}
&:before {
left: 50%;
}
&:after {
right: 50%;
}
&:hover {
&:before,
&:after {
width: 50%;
}
}
&.active {
a {
color: $pagination-link-active-color;
2019-08-11 19:36:19 +02:00
}
.dark-theme & a {
color: $pagination-link-active-color-dark;
2019-08-11 19:36:19 +02:00
}
&:before,
&:after {
width: 60%;
}
}
}
}