-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dark): add button and modal style
- Loading branch information
Erindcl
committed
Jul 24, 2020
1 parent
66b3f5b
commit 38095dd
Showing
4 changed files
with
139 additions
and
14 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,77 @@ | ||
@import '../const.less'; | ||
|
||
.ant-btn { | ||
padding: 0px 16px; | ||
border-color: @primaryColor; | ||
color: @primaryColor; | ||
&:hover, &:focus { | ||
border-color: @hoverColor; | ||
color: @hoverColor; | ||
} | ||
&:active, &.active { | ||
color: @clickColor; | ||
border-color: @clickColor; | ||
} | ||
} | ||
|
||
.ant-btn-primary { | ||
color: #fff; | ||
&:hover, &:focus { | ||
color: #fff; | ||
border-color: @hoverColor; | ||
background-color: @hoverColor; | ||
} | ||
&:active, &.active { | ||
color: #fff; | ||
background-color: @clickColor; | ||
border-color: @clickColor; | ||
} | ||
} | ||
|
||
.ant-btn-danger { | ||
color: #fff; | ||
border-color: @red_dark; | ||
background-color: @red_dark; | ||
&:hover, &:focus { | ||
color: #fff; | ||
background-color: #f08e89; | ||
border-color: #f08e89; | ||
} | ||
&:active, &.active { | ||
color: #fff; | ||
border-color: @red_dark; | ||
background-color: @red_dark; | ||
} | ||
} | ||
|
||
.ant-btn-link { | ||
border-color: transparent; | ||
&:hover, &:focus { | ||
border-color: transparent; | ||
} | ||
&:active, &.active { | ||
border-color: transparent; | ||
} | ||
} | ||
|
||
.ant-btn-link-disabled, | ||
.ant-btn-link.disabled, | ||
.ant-btn-link[disabled], | ||
.ant-btn-link-disabled:hover, | ||
.ant-btn-link.disabled:hover, | ||
.ant-btn-link[disabled]:hover, | ||
.ant-btn-link-disabled:focus, | ||
.ant-btn-link.disabled:focus, | ||
.ant-btn-link[disabled]:focus, | ||
.ant-btn-link-disabled:active, | ||
.ant-btn-link.disabled:active, | ||
.ant-btn-link[disabled]:active, | ||
.ant-btn-link-disabled.active, | ||
.ant-btn-link.disabled.active, | ||
.ant-btn-link[disabled].active { | ||
color: @white4D; | ||
} | ||
|
||
.ant-btn-lg { | ||
height: 36px; | ||
} |
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,4 +1,6 @@ | ||
@import './resetDark.less'; | ||
@import './button.less'; | ||
@import './modal.less'; | ||
|
||
* { | ||
margin: 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,45 @@ | ||
@import '../const.less'; | ||
|
||
.ant-modal-title { | ||
font-weight: 500; | ||
} | ||
.ant-modal-content { | ||
background-color: @blue2; | ||
} | ||
.ant-modal-header { | ||
padding: 15px 20px; | ||
border-bottom-color: @blue3; | ||
} | ||
.ant-modal-body { | ||
padding: 24px 20px 28px; | ||
} | ||
.ant-modal-footer { | ||
border-top: 0px; | ||
padding: 20px; | ||
} | ||
.ant-modal-confirm { | ||
width: 460px !important; | ||
} | ||
.ant-modal-confirm .ant-modal-body { | ||
padding: 52px 20px 20px 32px; | ||
} | ||
.ant-modal-confirm-body .ant-modal-confirm-title { | ||
font-size: 16px; | ||
} | ||
.ant-modal-confirm-body .ant-modal-confirm-content { | ||
margin-top: 12px; | ||
font-size: 14px; | ||
} | ||
.ant-modal-confirm .ant-modal-confirm-btns { | ||
margin-top: 32px; | ||
} | ||
.ant-modal-confirm-body > .anticon { | ||
font-size: 20px; | ||
margin-right: 8px; | ||
} | ||
.ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content { | ||
margin-left: 30px; | ||
} | ||
.ant-modal-confirm .ant-modal-confirm-btns { | ||
margin-top: 36px; | ||
} |
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