123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- /**Variable**/
- @import './helpers/mixin.scss';
- /*pager*/
- .vxe-pager {
- position: relative;
- display: flex;
- align-items: center;
- color: $vxe-font-color;
- font-family: $vxe-font-family;
- text-align: right;
- background-color: $vxe-pager-background-color;
- &.is--hidden {
- display: none;
- }
- &.align--left {
- text-align: left;
- }
- &.align--center {
- text-align: center;
- }
- &.is--loading {
- &:after {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: $vxe-loading-z-index;
- user-select: none;
- background-color: $vxe-loading-background-color;
- }
- }
- .vxe-pager--prev-btn,
- .vxe-pager--next-btn,
- .vxe-pager--num-btn,
- .vxe-pager--jump-prev,
- .vxe-pager--jump-next {
- color: inherit;
- outline: 0;
- border: 1px solid transparent;
- &:not(.is--disabled) {
- &:focus {
- box-shadow: 0 0 0.25em 0 $vxe-primary-color;
- }
- &:hover {
- color: lighten($vxe-primary-color, 6%);
- }
- &:active {
- background-color: darken($vxe-button-default-background-color, 3%);
- }
- }
- }
- &.is--border,
- &.is--perfect {
- &:not(.is--background) {
- .vxe-pager--prev-btn,
- .vxe-pager--next-btn,
- .vxe-pager--num-btn,
- .vxe-pager--jump-prev,
- .vxe-pager--jump-next {
- border-color: $vxe-input-border-color;
- }
- }
- }
- &.is--background,
- &.is--perfect {
- .vxe-pager--prev-btn,
- .vxe-pager--next-btn,
- .vxe-pager--jump-prev,
- .vxe-pager--num-btn,
- .vxe-pager--jump-next {
- background-color: $vxe-pager-perfect-button-background-color;
- }
- .vxe-pager--jump-prev,
- .vxe-pager--num-btn,
- .vxe-pager--jump-next {
- &:not(.is--disabled) {
- &.is--active {
- color: #fff;
- background-color: $vxe-primary-color;
- &:hover {
- background-color: lighten($vxe-primary-color, 6%);
- }
- &:focus {
- border-color: $vxe-primary-color;
- }
- &:active {
- border-color: darken($vxe-primary-color, 3%);
- background-color: darken($vxe-primary-color, 3%);
- }
- }
- }
- }
- }
- &.is--perfect {
- border: 1px solid $vxe-table-border-color;
- border-top-width: 0;
- background-color: $vxe-table-header-background-color;
- .vxe-pager--prev-btn,
- .vxe-pager--next-btn,
- .vxe-pager--jump-prev,
- .vxe-pager--num-btn,
- .vxe-pager--jump-next {
- background-color: #fff;
- }
- }
- &.is--border {
- .vxe-pager--num-btn {
- &.is--active {
- border-color: $vxe-primary-color;
- }
- }
- }
- .vxe-pager--wrapper {
- flex-grow: 1;
- }
- .vxe-pager--jump-icon,
- .vxe-pager--btn-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- .vxe-pager--left-wrapper,
- .vxe-pager--right-wrapper,
- .vxe-pager--total,
- .vxe-pager--prev-btn,
- .vxe-pager--next-btn,
- .vxe-pager--jump,
- .vxe-pager--jump-prev,
- .vxe-pager--jump-next,
- .vxe-pager--count,
- .vxe-pager--sizes {
- margin: 0 0.4em;
- vertical-align: middle;
- display: inline-block;
- }
- .vxe-pager--prev-btn,
- .vxe-pager--jump-prev,
- .vxe-pager--num-btn,
- .vxe-pager--jump-next,
- .vxe-pager--next-btn {
- position: relative;
- cursor: pointer;
- }
- .vxe-pager--left-wrapper,
- .vxe-pager--right-wrapper,
- .vxe-pager--count,
- .vxe-pager--prev-btn,
- .vxe-pager--next-btn,
- .vxe-pager--jump-prev,
- .vxe-pager--num-btn,
- .vxe-pager--jump-next {
- height: 2.15em;
- line-height: 2em;
- display: inline-block;
- }
- .vxe-pager--jump .vxe-pager--goto,
- .vxe-pager--sizes > .vxe-input {
- height: 2.15em;
- }
- .vxe-pager--sizes > .vxe-select--panel .vxe-select-option {
- text-align: center;
- }
- .vxe-pager--jump-prev,
- .vxe-pager--prev-btn,
- .vxe-pager--next-btn,
- .vxe-pager--jump-next,
- .vxe-pager--num-btn,
- .vxe-pager--count {
- min-width: 2.15em;
- }
- .vxe-pager--btn-wrapper {
- padding: 0;
- margin: 0;
- display: inline-block;
- text-align: center;
- .vxe-pager--jump-prev,
- .vxe-pager--jump-next {
- &:hover {
- .vxe-pager--jump-more-icon {
- display: none;
- }
- .vxe-pager--jump-icon {
- display: inline-block;
- }
- }
- }
- .vxe-pager--jump-icon {
- display: none;
- }
- }
- .vxe-pager--jump-prev,
- .vxe-pager--prev-btn,
- .vxe-pager--next-btn,
- .vxe-pager--jump-next,
- .vxe-pager--num-btn {
- text-align: center;
- border-radius: $vxe-border-radius;
- margin: 0 0.25em;
- user-select: none;
- background-color: $vxe-pager-background-color;
- &:not(.is--disabled) {
- &:hover {
- color: lighten($vxe-primary-color, 6%);
- }
- &.is--active,
- &:focus {
- color: $vxe-primary-color;
- }
- &:active {
- color: darken($vxe-primary-color, 3%);
- }
- }
- &.is--disabled {
- cursor: no-drop;
- color: $vxe-disabled-color;
- &:hover {
- color: $vxe-disabled-color;
- }
- }
- }
- .vxe-pager--num-btn {
- vertical-align: middle;
- &.is--active {
- font-weight: 700;
- }
- }
- .vxe-pager--sizes {
- width: 7em;
- text-align: center;
- cursor: pointer;
- & .vxe-input--inner {
- text-align: center;
- }
- }
- .vxe-pager--count {
- text-align: center;
- & > span {
- vertical-align: middle;
- }
- .vxe-pager--separator {
- margin-right: 0.2em;
- &:before {
- content: "/";
- }
- }
- }
- .vxe-pager--jump .vxe-pager--goto {
- border-radius: $vxe-border-radius;
- border: 1px solid $vxe-input-border-color;
- color: $vxe-font-color;
- transition: border .2s ease-in-out;
- padding: 0 0.4em;
- background-color: $vxe-input-background-color;
- &:focus {
- border: 1px solid $vxe-primary-color;
- outline: 0;
- }
- }
- .vxe-pager--jump {
- .vxe-pager--goto-text {
- margin-right: 0.25em;
- }
- .vxe-pager--classifier-text {
- margin-left: 0.25em;
- }
- .vxe-pager--goto {
- width: 3.2em;
- text-align: center;
- }
- }
- }
- .vxe-pager {
- font-size: $vxe-font-size;
- height: $vxe-table-row-height-default;
- &.size--medium {
- font-size: $vxe-font-size-medium;
- height: $vxe-table-row-height-medium;
- }
- &.size--small {
- font-size: $vxe-font-size-small;
- height: $vxe-table-row-height-small;
- }
- &.size--mini {
- font-size: $vxe-font-size-mini;
- height: $vxe-table-row-height-mini;
- }
- }
|