<div class="main__wrapper-paginator">
<a href="#" class="list__link left"><img src="img/pagination/left/Icons/arrow.png" alt="">Left</a>
<ul class="list">
<li class="list__item list__item--active"><a href="#" class="list__link">1</a></li>
<li class="list__item"><a href="#" class="list__link">2</a></li>
<li class="list__item"><a href="#" class="list__link">3</a></li>
<li class="list__item"><a href="#" class="list__link">4</a></li>
</ul>
<a href="#" class="list__link right">Right<img src="img/pagination/right/Icons/arrow.png" alt=""></a>
</div>
.main__wrapper-paginator {
display: flex;
justify-content: flex-end;
padding-top: 40px;
}
.list {
display: flex;
padding: 0;
margin: 0;
border: 1px solid #BDBDBD;
border-radius: 5px;
list-style: none;
}
.list__item:not(:last-child) {
border-right: 1px solid #BDBDBD;
}
.list__item--active .list__link::before,
.list__link:hover::before {
content: "";
position: absolute;
top: -1px;
left: 0;
width: 100%;
height: 100%;
border: 1px solid #3205F3;
}
.list__item--active,
.list__item:hover {
background-color: #F0F0FF;
}
.list__item:first-child .list__link::before {
border-radius: 5px 0 0 5px;
}
.list__item:last-child .list__link::before {
border-radius: 0 5px 5px 0;
}
.pag .list__link::before {
border-radius: 5px;
}
.list__link {
position: relative;
width: 60px;
height: 60px;
text-decoration: none;
font-size: 15px;
line-height: 21px;
display: flex;
align-items: center;
justify-content: center;
color: #3205F3;
}
.left {
box-sizing: border-box;
position: relative;
padding-left: 20px;
border: 1px solid #BDBDBD;
border-radius: 5px;
margin-right: 20px;
width: 105px;
height: 60px;
img {
position: absolute;
left: 0;
}
}
.right {
box-sizing: border-box;
position: relative;
padding-right: 20px;
border: 1px solid #BDBDBD;
border-radius: 5px;
margin-left: 20px;
width: 105px;
height: 60px;
img {
position: absolute;
right:0;
}
}
.list__link.left:hover::before, .list__link.right:hover::before {
border:0;
}
.left:hover, .right:hover {
border: 1px solid #3205F3;
background-color: #F0F0FF;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.