phpvms/resources/sass/now-ui/now-ui-kit/_pagination.scss

137 lines
2.9 KiB
SCSS
Raw Normal View History

2017-07-28 20:13:52 +08:00
.pagination{
.page-item .page-link{
border: 0;
border-radius: 30px !important;
transition: all .3s;
padding: 0px 11px;
margin: 0 3px;
min-width: 30px;
text-align: center;
height: 30px;
line-height: 30px;
color: $black-color;
cursor: pointer;
font-size: $font-size-base;
text-transform: uppercase;
background: transparent;
&:hover,
&:focus{
color: $black-color;
background-color: $opacity-gray-3;
border: none;
}
}
.arrow-margin-left,
.arrow-margin-right{
position: absolute;
}
.arrow-margin-right{
right: 0;
}
.arrow-margin-left{
left: 0;
}
.page-item.active > .page-link{
2018-04-04 08:21:42 +08:00
color: $brand-primary;
2017-07-28 20:13:52 +08:00
box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.2);
&,
&:focus,
&:hover{
2018-04-04 08:21:42 +08:00
background-color: $brand-primary;
border-color: $brand-primary;
2017-07-28 20:13:52 +08:00
color: $white-color;
}
}
.page-item.disabled > .page-link{
opacity: .5;
background-color: rgba(255,255,255, .2);
color: $white-color;
}
// Colors
&.pagination-info{
.page-item.active > .page-link{
&,
&:focus,
&:hover{
2018-04-04 08:21:42 +08:00
background-color: $brand-primary;
border-color: $brand-primary;
2017-07-28 20:13:52 +08:00
}
}
}
&.pagination-success{
.page-item.active > .page-link{
&,
&:focus,
&:hover{
2018-04-04 08:21:42 +08:00
background-color: $brand-primary;
border-color: $brand-primary;
2017-07-28 20:13:52 +08:00
}
}
}
&.pagination-primary{
.page-item.active > .page-link{
&,
&:focus,
&:hover{
background-color: $brand-primary;
border-color: $brand-primary;
}
}
}
&.pagination-warning{
.page-item.active > .page-link{
&,
&:focus,
&:hover{
background-color: $brand-warning;
border-color: $brand-warning;
}
}
}
&.pagination-danger{
.page-item.active > .page-link{
&,
&:focus,
&:hover{
background-color: $brand-danger;
border-color: $brand-danger;
}
}
}
&.pagination-neutral{
.page-item > .page-link{
color: $white-color;
&:focus,
&:hover{
background-color: $opacity-2;
color: $white-color;
}
}
.page-item.active > .page-link{
&,
&:focus,
&:hover{
background-color: $white-bg;
border-color: $white-bg;
color: $brand-primary;
}
}
}
}