.ct-pagination { margin-top: 60px; nav { display: flex; justify-content: center; position: relative; font-size: 15px; color: rgba(44, 62, 80, 0.7); a { color: var(--linkInitialColor); &:hover { color: var(--paletteColor1); } } > * { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 10px; margin-right: 10px; border-radius: 3px; transition: color 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955), background 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955), border-color 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955); &.current { color: #fff; background: var(--paletteColor1); } } .prev, .next { position: absolute; top: 0; margin: 0; // padding: 0 5px; box-sizing: content-box; background: #fff; box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.01); svg { fill: currentColor; } &:hover { color: #fff; background: var(--paletteColor1); } } .prev { left: 0; } .next { right: 0; } } }