-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from ltv/feat/PT-60
feat(button): Design layout && style for button | JIRA: PT-60
- Loading branch information
Showing
8 changed files
with
558 additions
and
65 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 |
---|---|---|
@@ -1,8 +1,126 @@ | ||
body { | ||
.el-button { | ||
background-color: var(--el-button-bg-color, var(--el-color-white)); | ||
&:hover { | ||
@apply -translate-y-0.25; | ||
} | ||
} | ||
|
||
.el-button.el-button--default.is-plain { | ||
@apply bg-transparent text-btn-default border-btn-default; | ||
&:hover { | ||
@apply bg-btn-default text-white drop-shadow-lg; | ||
} | ||
&:active { | ||
@apply drop-shadow-none; | ||
} | ||
} | ||
|
||
.el-button.el-button--primary.is-plain { | ||
@apply bg-transparent text-primary-blue border-primary-blue; | ||
&:hover { | ||
@apply bg-primary-blue text-white drop-shadow-lg; | ||
} | ||
&:active { | ||
@apply drop-shadow-none; | ||
} | ||
} | ||
|
||
.el-button.el-button--secondary.is-plain { | ||
@apply bg-transparent text-secondary border-slate-50 shadow-none; | ||
&:hover { | ||
@apply bg-slate-50 text-black drop-shadow-lg border-slate-50; | ||
} | ||
&:active { | ||
@apply drop-shadow-none bg-slate-50; | ||
} | ||
} | ||
|
||
.el-button.el-button--success.is-plain { | ||
@apply bg-transparent text-success border-success; | ||
&:hover { | ||
@apply bg-success text-white drop-shadow-lg border-success; | ||
} | ||
&:active { | ||
@apply drop-shadow-none; | ||
} | ||
} | ||
|
||
.el-button.el-button--warning.is-plain { | ||
@apply bg-transparent text-warning border-warning; | ||
&:hover { | ||
@apply bg-warning text-white drop-shadow-lg border-warning; | ||
} | ||
&:active { | ||
@apply drop-shadow-none; | ||
} | ||
} | ||
|
||
.el-button.el-button--info.is-plain { | ||
@apply bg-transparent text-info border-info; | ||
&:hover { | ||
@apply bg-info text-white drop-shadow-lg border-info; | ||
} | ||
&:active { | ||
@apply drop-shadow-none; | ||
} | ||
} | ||
|
||
.el-button.el-button--danger.is-plain { | ||
@apply bg-transparent text-danger border-danger; | ||
&:hover { | ||
@apply bg-danger text-white drop-shadow-lg border-danger; | ||
} | ||
&:active { | ||
@apply drop-shadow-none; | ||
} | ||
} | ||
|
||
.el-button.el-button--primary { | ||
@apply bg-primary-blue border border-primary-blue text-white; | ||
&:active { | ||
@apply bg-primary-blue-active; | ||
} | ||
} | ||
|
||
.el-button.el-button--info { | ||
@apply bg-info border border-info text-white; | ||
&:active { | ||
@apply bg-info-active; | ||
} | ||
} | ||
|
||
.el-button.el-button--warning { | ||
@apply bg-warning border border-warning text-white; | ||
&:active { | ||
@apply bg-warning-active; | ||
} | ||
} | ||
|
||
.el-button.el-button--success { | ||
@apply bg-success border border-success text-white; | ||
&:active { | ||
@apply bg-success-active; | ||
} | ||
} | ||
|
||
.el-button.el-button--danger { | ||
@apply bg-danger border border-danger text-white; | ||
&:active { | ||
@apply bg-danger-active; | ||
} | ||
} | ||
|
||
.el-button.el-button--secondary { | ||
@apply bg-slate-100 border border-slate-100 text-black shadow-md; | ||
&:active { | ||
@apply shadow-none border-slate-300 bg-slate-300; | ||
} | ||
} | ||
|
||
.el-button.btn-default { | ||
@apply bg-btn-default border border-btn-default text-white; | ||
&:active { | ||
@apply bg-btn-default-active; | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.