-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
edward.xu
committed
Mar 11, 2019
1 parent
5ee52b6
commit 7f9d8e2
Showing
2 changed files
with
186 additions
and
57 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
108 changes: 107 additions & 1 deletion
108
packages/cli/templates/qunar/source/pages/demo/native/button/index.scss
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 +1,107 @@ | ||
@import '@assets/global.scss'; | ||
@import '@assets/global.scss'; | ||
|
||
$defaultcolor: #F8F8F8; | ||
$primarycolor: #1AAD19; | ||
$warningcolor: #E64340; | ||
$fontcolor: #000000; | ||
|
||
.quick-container { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.quick-button { | ||
padding-left:14px; | ||
padding-right:14px; | ||
box-sizing:border-box; | ||
font-size:18px; | ||
text-align:center; | ||
text-decoration:none; | ||
line-height: 46px; | ||
border-radius:5px; | ||
-webkit-tap-highlight-color:transparent; | ||
color:#000000; | ||
background-color: $defaultcolor; | ||
margin-top: 12px; | ||
|
||
|
||
|
||
} | ||
|
||
.primary { | ||
color:#FFFFFF; | ||
background-color: $primarycolor; | ||
&:active { | ||
color:#FFFFFF; | ||
background-color: darken($primarycolor, 5%); | ||
} | ||
&:disabled { | ||
color:#FFFFFF; | ||
background-color: lighten($primarycolor, 50%); | ||
} | ||
|
||
&-plain { | ||
color:$primarycolor; | ||
border:1rpx solid $primarycolor; | ||
background-color:transparent; | ||
&:active { | ||
color:lighten($primarycolor, 15%); | ||
border:1rpx solid lighten($primarycolor, 15%); | ||
} | ||
&:disabled { | ||
color:lighten($fontcolor, 50%); | ||
border:1rpx solid lighten($fontcolor, 50%); | ||
} | ||
} | ||
} | ||
|
||
|
||
.warning { | ||
color:#FFFFFF; | ||
background-color: $warningcolor; | ||
&:active { | ||
color:#FFFFFF; | ||
background-color: darken($warningcolor, 5%); | ||
} | ||
&:disabled { | ||
color:#FFFFFF; | ||
background-color: lighten($warningcolor, 20%); | ||
} | ||
|
||
&-plain { | ||
color:$warningcolor; | ||
border:1rpx solid $warningcolor; | ||
background-color:transparent; | ||
&:active { | ||
color:lighten($warningcolor, 15%); | ||
border:1rpx solid lighten($warningcolor, 15%); | ||
} | ||
&:disabled { | ||
color:lighten($fontcolor, 50%); | ||
border:1rpx solid lighten($fontcolor, 50%); | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
.default { | ||
&:active { | ||
background-color: darken($defaultcolor, 5%); | ||
} | ||
|
||
&-plain { | ||
color:$fontcolor; | ||
border:1rpx solid $fontcolor; | ||
background-color:transparent; | ||
&:active { | ||
color:lighten($fontcolor, 30%); | ||
border:1rpx solid lighten($fontcolor, 30%); | ||
} | ||
&:disabled { | ||
color:lighten($fontcolor, 50%); | ||
border:1rpx solid lighten($fontcolor, 50%); | ||
} | ||
} | ||
|
||
} |