Modify the directory structure
Modify the directory structure
This commit is contained in:
parent
31fbef10e4
commit
4b05d84ea2
175 changed files with 48 additions and 46 deletions
254
src/styles/components/page.less
Normal file
254
src/styles/components/page.less
Normal file
|
@ -0,0 +1,254 @@
|
|||
@page-prefix-cls: ~"@{css-prefix}page";
|
||||
|
||||
.@{page-prefix-cls} {
|
||||
&:after {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
&-item {
|
||||
float: left;
|
||||
min-width: 28px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
margin-right: 4px;
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
background-color: #fff;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
font-family: Arial;
|
||||
border: 1px solid @border-color-base;
|
||||
border-radius: @btn-border-radius;
|
||||
.transition(all @transition-time @ease-in-out);
|
||||
|
||||
a {
|
||||
margin: 0 6px;
|
||||
text-decoration: none;
|
||||
color: @text-color;
|
||||
//.transition(none);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: @primary-color;
|
||||
a {
|
||||
color: @primary-color;
|
||||
}
|
||||
}
|
||||
|
||||
&-active {
|
||||
background-color: @primary-color;
|
||||
border-color: @primary-color;
|
||||
|
||||
a, &:hover a {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-item-jump-prev, &-item-jump-next {
|
||||
&:after {
|
||||
content: "•••";
|
||||
display: block;
|
||||
letter-spacing: 2px;
|
||||
color: #ccc;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
i{
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:after{
|
||||
display: none;
|
||||
}
|
||||
i{
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-item-jump-prev:hover {
|
||||
i:after {
|
||||
content: "\F3D2";
|
||||
}
|
||||
}
|
||||
|
||||
&-item-jump-next:hover {
|
||||
i:after {
|
||||
content: "\F3D3";
|
||||
}
|
||||
}
|
||||
|
||||
&-prev,
|
||||
&-item-jump-prev,
|
||||
&-item-jump-next {
|
||||
margin-right: 8px;
|
||||
}
|
||||
&-prev,
|
||||
&-next,
|
||||
&-item-jump-prev,
|
||||
&-item-jump-next {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
min-width: 28px;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
list-style: none;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
color: #666;
|
||||
font-family: Arial;
|
||||
border-radius: @btn-border-radius;
|
||||
.transition(all @transition-time @ease-in-out);
|
||||
}
|
||||
|
||||
&-prev,
|
||||
&-next {
|
||||
border: 1px solid @border-color-base;
|
||||
background-color: #fff;
|
||||
|
||||
a {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: @primary-color;
|
||||
|
||||
a {
|
||||
color: @primary-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-disabled {
|
||||
cursor: @cursor-disabled;
|
||||
a {
|
||||
color: #ccc;
|
||||
}
|
||||
&:hover {
|
||||
border-color: @border-color-base;
|
||||
a {
|
||||
color: #ccc;
|
||||
cursor: @cursor-disabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-options {
|
||||
float: left;
|
||||
margin-left: 15px;
|
||||
&-sizer {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
&-elevator {
|
||||
float: left;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
|
||||
input {
|
||||
.input;
|
||||
border-radius: @btn-border-radius;
|
||||
margin: 0 8px;
|
||||
width: 50px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-total {
|
||||
float: left;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
&-simple &-prev,
|
||||
&-simple &-next {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
&-simple &-simple-pager {
|
||||
float: left;
|
||||
margin-right: 8px;
|
||||
|
||||
input {
|
||||
width: 30px;
|
||||
height: 24px;
|
||||
margin: 0 8px;
|
||||
padding: 5px 8px;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
outline: none;
|
||||
border: 1px solid @border-color-base;
|
||||
border-radius: @btn-border-radius;
|
||||
.transition(border-color @transition-time @ease-in-out);
|
||||
|
||||
&:hover {
|
||||
border-color: @primary-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{page-prefix-cls} {
|
||||
&.mini &-total {
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
&.mini &-item {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
min-width: 20px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
border-radius: @btn-border-radius-small;
|
||||
}
|
||||
|
||||
&.mini &-prev,
|
||||
&.mini &-next {
|
||||
margin: 0;
|
||||
min-width: 20px;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
border: 0;
|
||||
|
||||
a {
|
||||
i:after {
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.mini &-item-jump-prev,
|
||||
&.mini &-item-jump-next {
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
&.mini &-options {
|
||||
margin-left: 8px;
|
||||
&-elevator {
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
|
||||
input {
|
||||
.input-small;
|
||||
width: 44px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue