UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

352 lines (312 loc) 6.08 kB
@prefixClass: rc-pagination; .@{prefixClass} { padding: 0; font-size: 12px; font-family: 'Arial'; user-select: none; > li { list-style: none; } &-total-text { float: left; height: 30px; margin: 0 8px 0 0; padding: 0; line-height: 30px; list-style: none; } &::after { display: block; clear: both; height: 0; overflow: hidden; visibility: hidden; content: ' '; } &-item { float: left; min-width: 28px; height: 28px; margin-right: 8px; line-height: 28px; text-align: center; list-style: none; background-color: #fff; border: 1px solid #d9d9d9; border-radius: 6px; cursor: pointer; a { color: #666; text-decoration: none; } &:hover { border-color: #2db7f5; a { color: #2db7f5; } } &-disabled { cursor: not-allowed; &:hover { border-color: #d9d9d9; a { color: #d9d9d9; } } } &-active { background-color: #2db7f5; border-color: #2db7f5; a { color: #fff; } &:hover { a { color: #fff; } } } } &-jump-prev, &-jump-next { &::after { display: block; margin-top: 1px; color: #ccc; font-size: 12px; letter-spacing: 2px; content: '•••'; } &:hover { &::after { color: #2db7f5; } } } &-jump-prev { &:hover { &::after { content: '«'; } } } &-jump-next { &:hover { &::after { content: '»'; } } } &-jump-prev-custom-icon, &-jump-next-custom-icon { position: relative; &::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; margin: auto; margin-top: 1px; color: #ccc; font-size: 12px; letter-spacing: 2px; opacity: 1; transition: all 0.2s; content: '•••'; } .custom-icon-jump-prev, .custom-icon-jump-next { opacity: 0; transition: all 0.2s; } &:hover { &::after { color: #ccc; opacity: 0; } .custom-icon-jump-prev, .custom-icon-jump-next { color: #2db7f5; opacity: 1; } } } &-prev, &-jump-prev, &-jump-next { margin-right: 8px; } &-prev, &-next, &-jump-prev, &-jump-next { float: left; min-width: 28px; height: 28px; color: #666; font-size: 10px; line-height: 28px; text-align: center; list-style: none; border-radius: 6px; cursor: pointer; } &-prev { a { &::after { display: block; content: '‹'; } } } &-next { a { &::after { display: block; content: '›'; } } } &-prev, &-next { font-size: 18px; border: 1px solid #d9d9d9; a { color: #666; &::after { margin-top: -1px; } } } &-disabled { cursor: not-allowed; a { color: #ccc; } } &-options { float: left; margin-left: 15px; &-size-changer { float: left; width: 80px; } &-quick-jumper { float: left; height: 28px; margin-left: 16px; line-height: 28px; input { box-sizing: border-box; width: 50px; height: 28px; margin: 0 8px; padding: 3px 12px; background-color: #fff; border: 1px solid #d9d9d9; border-radius: 6px; outline: none; &:hover { border-color: #2db7f5; } } button { position: relative; display: inline-block; height: 28px; margin: 0 8px; padding: 0 15px; color: rgba(0, 0, 0, 0.65); font-weight: 500; font-size: 12px; white-space: nowrap; text-align: center; background-color: #fff; background-image: none; border: 1px solid transparent; border-color: #d9d9d9; border-radius: 6px; cursor: pointer; transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); user-select: none; touch-action: manipulation; &:hover, &:active, &:focus { color: #2db7f5; background-color: #fff; border-color: #2db7f5; } } } } &-simple { .@{prefixClass}-prev, .@{prefixClass}-next { height: 24px; margin: 0; font-size: 18px; line-height: 24px; border: none; } .@{prefixClass}-simple-pager { float: left; margin-right: 8px; list-style: none; .@{prefixClass}-slash { margin: 0 10px; } input { box-sizing: border-box; min-height: 20px; margin: 0 8px; padding: 5px 8px; background-color: #fff; border: 1px solid #d9d9d9; border-radius: 6px; outline: none; &:hover { border-color: #2db7f5; } } button { position: relative; display: inline-block; height: 26px; margin: 0 8px; padding: 0 8px; color: rgba(0, 0, 0, 0.65); font-weight: 500; font-size: 12px; white-space: nowrap; text-align: center; background-color: #fff; background-image: none; border: 1px solid transparent; border-color: #d9d9d9; border-radius: 6px; cursor: pointer; transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); user-select: none; touch-action: manipulation; &:hover, &:active, &:focus { color: #2db7f5; background-color: #fff; border-color: #2db7f5; } } } } } @media only screen and (max-width: 1024px) { .@{prefixClass}-item { &-after-jump-prev, &-before-jump-next { display: none; } } }