mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
d640afd1f6
* 样式细节调整,通过 gap 可以设置更多间距;radios 和 checkbox 默认 inline * 统一一下命名 * 改回之前的写法 * 补充漏下的 * 恢复几个之前的大小 * 尝试修复跳转到示例有时候不生效问题
117 lines
2.1 KiB
SCSS
117 lines
2.1 KiB
SCSS
.#{$ns}Pagination {
|
|
display: inline-block;
|
|
padding: 0;
|
|
margin: 0 0 px2rem(-10px);
|
|
border-radius: px2rem(4px);
|
|
|
|
> li {
|
|
display: inline;
|
|
|
|
> a,
|
|
> span {
|
|
user-select: none;
|
|
cursor: pointer;
|
|
position: relative;
|
|
float: left;
|
|
text-decoration: none;
|
|
min-width: var(--Pagination-minWidth);
|
|
height: var(--Pagination-height);
|
|
border: 0;
|
|
line-height: var(--Pagination-height);
|
|
padding: var(--Pagination-padding);
|
|
text-align: center;
|
|
color: #666666;
|
|
border-radius: 0;
|
|
margin-left: 0;
|
|
font-size: var(--Pagination-fontSize);
|
|
}
|
|
|
|
> a:hover,
|
|
> span:hover,
|
|
> a:focus,
|
|
> span:focus {
|
|
background: transparent;
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
|
|
> li.is-disabled {
|
|
> span,
|
|
> a {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
> a,
|
|
> span,
|
|
> a:hover,
|
|
> span:hover,
|
|
> a:focus,
|
|
> span:focus {
|
|
color: #cccccc;
|
|
}
|
|
}
|
|
|
|
> li.is-active {
|
|
> a,
|
|
> span,
|
|
> a:hover,
|
|
> span:hover,
|
|
> a:focus,
|
|
> span:focus {
|
|
background: var(--Pagination-onActive-backgroundColor);
|
|
color: var(--Pagination-onActive-color);
|
|
border: var(--Pagination-onActive-border);
|
|
border-radius: var(--borderRadius);
|
|
}
|
|
}
|
|
|
|
&-prev {
|
|
> span {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
&-ellipsis {
|
|
> a > span {
|
|
position: relative;
|
|
top: px2rem(-4px);
|
|
}
|
|
}
|
|
|
|
&-next {
|
|
> span {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
&-inputGroup {
|
|
display: inline-flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
|
|
input {
|
|
width: px2rem(50px);
|
|
height: var(--Pagination-height);
|
|
border: var(--borderWidth) solid var(--borderColor);
|
|
border-radius: var(--borderRadius);
|
|
padding: var(--gap-xs) px2rem(10px);
|
|
margin: 0 px2rem(10px);
|
|
text-align: center;
|
|
|
|
&:focus,
|
|
&:hover {
|
|
outline: none;
|
|
border: var(--borderWidth) solid var(--primary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$ns}PaginationWrapper-pager {
|
|
&:first-child {
|
|
margin-bottom: var(--gap-sm);
|
|
}
|
|
|
|
text-align: right;
|
|
}
|