forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* css modularize * Add alert style * Move more component style * Move iconfont to common style * Move layout style * Move more component style * Move all components * Fix lots of mixin deps * remove css-prefix from less * fix a button icon style bug * restructure * fix index * add dist * fix jest * fix some components style * clean webpack config * check more components style * update tabs * update scripts * update scripts * fix form style * fix more style * Fix select width * Fix form and tabs style
- Loading branch information
Showing
177 changed files
with
1,362 additions
and
1,686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["es2015", "react", "stage-0"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; |
2 changes: 2 additions & 0 deletions
2
style/components/affix.less → components/affix/style/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import "../../style/themes/default"; | ||
|
||
.ant-affix { | ||
position: fixed; | ||
z-index: @zindex-affix; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; |
5 changes: 2 additions & 3 deletions
5
style/components/alert.less → components/alert/style/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; |
6 changes: 4 additions & 2 deletions
6
style/components/badge.less → components/badge/style/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; |
2 changes: 2 additions & 0 deletions
2
style/components/breadcrumb.less → components/breadcrumb/style/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import "../../style/themes/default"; | ||
|
||
@breadcrumb-prefix-cls: ant-breadcrumb; | ||
|
||
.@{breadcrumb-prefix-cls} { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; | ||
|
||
// style dependencies | ||
import '../../select/style'; | ||
import '../../radio/style'; |
2 changes: 2 additions & 0 deletions
2
style/components/calendar.less → components/calendar/style/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; |
7 changes: 4 additions & 3 deletions
7
style/components/card.less → components/card/style/index.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; | ||
|
||
// style dependencies | ||
import '../../input/style'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
@import "../../style/themes/default"; | ||
@import "../../style/mixins/index"; | ||
|
||
@cascader-prefix-cls: ant-cascader; | ||
|
||
.@{cascader-prefix-cls} { | ||
font-size: @font-size-base; | ||
&-input { | ||
width: 172px; | ||
display: block; | ||
cursor: pointer; | ||
} | ||
&-picker { | ||
position: relative; | ||
display: inline-block; | ||
cursor: pointer; | ||
vertical-align: middle; | ||
|
||
&-disabled { | ||
cursor: not-allowed; | ||
} | ||
|
||
&-clear { | ||
opacity: 0; | ||
position: absolute; | ||
right: 8px; | ||
z-index: 1; | ||
background: #fff; | ||
top: 50%; | ||
font-size: 12px; | ||
color: #ccc; | ||
width: 12px; | ||
height: 12px; | ||
margin-top: -6px; | ||
line-height: 12px; | ||
cursor: pointer; | ||
transition: color 0.3s ease, opacity 0.15s ease; | ||
&:hover { | ||
color: #999; | ||
} | ||
} | ||
|
||
&:hover &-clear { | ||
opacity: 1; | ||
} | ||
|
||
// arrow | ||
&-arrow { | ||
position: absolute; | ||
top: 50%; | ||
right: 8px; | ||
width: 12px; | ||
height: 12px; | ||
margin-top: -6px; | ||
line-height: 12px; | ||
color: #999; | ||
.iconfont-size-under-12px(8px); | ||
&:before { | ||
transition: transform 0.2s ease; | ||
} | ||
&&-expand { | ||
.ie-rotate(2); | ||
&:before { | ||
transform: rotate(180deg); | ||
} | ||
} | ||
} | ||
} | ||
&-menus { | ||
font-size: 12px; | ||
background: #fff; | ||
position: absolute; | ||
z-index: @zindex-dropdown; | ||
border: 1px solid @border-color-base; | ||
border-radius: @border-radius-base; | ||
box-shadow: @box-shadow-base; | ||
white-space: nowrap; | ||
&-empty, | ||
&-hidden { | ||
display: none; | ||
} | ||
&.slide-up-enter.slide-up-enter-active&-placement-bottomLeft, | ||
&.slide-up-appear.slide-up-appear-active&-placement-bottomLeft { | ||
animation-name: antSlideUpIn; | ||
} | ||
|
||
&.slide-up-enter.slide-up-enter-active&-placement-topLeft, | ||
&.slide-up-appear.slide-up-appear-active&-placement-topLeft { | ||
animation-name: antSlideDownIn; | ||
} | ||
|
||
&.slide-up-leave.slide-up-leave-active&-placement-bottomLeft { | ||
animation-name: antSlideUpOut; | ||
} | ||
|
||
&.slide-up-leave.slide-up-leave-active&-placement-topLeft { | ||
animation-name: antSlideDownOut; | ||
} | ||
} | ||
&-menu { | ||
display: inline-block; | ||
vertical-align: top; | ||
min-width: 111px; | ||
height: 180px; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
border-right: 1px solid @border-color-split; | ||
overflow: auto; | ||
&:first-child { | ||
border-radius: @border-radius-base 0 0 @border-radius-base; | ||
} | ||
&:last-child { | ||
border-right-color: transparent; | ||
margin-right: -1px; | ||
border-radius: 0 @border-radius-base @border-radius-base 0; | ||
} | ||
&:only-child { | ||
border-radius: @border-radius-base; | ||
} | ||
} | ||
&-menu-item { | ||
padding: 7px 16px; | ||
cursor: pointer; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
transition: all 0.3s ease; | ||
&:hover { | ||
background: tint(@primary-color, 90%); | ||
} | ||
&-disabled { | ||
cursor: not-allowed; | ||
color: #ccc; | ||
&:hover { | ||
background: transparent; | ||
} | ||
} | ||
&-active:not(&-disabled) { | ||
&, | ||
&:hover { | ||
background-color: #f7f7f7; | ||
font-weight: bold; | ||
} | ||
} | ||
&-expand { | ||
position: relative; | ||
&:after { | ||
content: '\e600'; | ||
font-family: 'anticon'; | ||
.iconfont-size-under-12px(8px); | ||
color: #999; | ||
position: absolute; | ||
right: 15px; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '../../style/index.less'; | ||
import './index.less'; |
Oops, something went wrong.