This repository was archived by the owner on Nov 5, 2022. It is now read-only.
Open
Conversation
btspoony
approved these changes
Dec 25, 2020
btspoony
suggested changes
Dec 25, 2020
btspoony
left a comment
There was a problem hiding this comment.
不多写了,整体的实现思路就有问题。
这些特性化的样式,应该添加一个新的变量来进行控制(对于 css 来说就是一个额外的平级 class)
如果修改全局的样式将对原有内容产生不可预知的改动。
| background-color: mix($--tag-info-color, $--color-white, $backgroundColorWeight); | ||
| border-color: mix($--tag-info-color, $--color-white, $borderColorWeight); | ||
| color: mix($--tag-info-color, $--color-white, $fontColorWeight); | ||
| background-color: $--cascader-tag-background-opacity; |
There was a problem hiding this comment.
tag 不能修改全局的,没出问题是因为我们的项目中有所复写。
本质上这样将特定的需求改在全局的内容是非常不合适的。
| // color: mix($--tag-info-color, $--color-white, $fontColorWeight); | ||
| color: $--custom-color-primary; | ||
| background-color: unset; | ||
| font-weight: 900; |
| &:hover { | ||
| color: $--color-white; | ||
| background-color: mix($--tag-info-color, $--color-white, $hoverColorWeight); | ||
| background-color: unset; |
| @@ -15,6 +15,9 @@ $--color-transition-base: color .2s cubic-bezier(.645,.045,.355,1) !default; | |||
|
|
|||
| /* Color | |||
| -------------------------- */ | |||
| // custom Color | |||
| $--custom-color-primary: #898eff !default; | |||
There was a problem hiding this comment.
这个值可以通过外面覆盖
| @@ -32,14 +32,16 @@ | |||
| .el-icon-arrow-down { | |||
| transition: transform .3s; | |||
| font-size: 14px; | |||
| font-weight: 900; | |||
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please make sure these boxes are checked before submitting your PR, thank you!
devbranch.