-
-
Notifications
You must be signed in to change notification settings - Fork 336
[Checkbox][WIP] New features #2010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -793,6 +793,62 @@ | |||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| & when (@variationCheckboxColored) { | ||||||||||||||||||
| /*-------------- | ||||||||||||||||||
| Colored | ||||||||||||||||||
| ---------------*/ | ||||||||||||||||||
|
|
||||||||||||||||||
| each(@colors, { | ||||||||||||||||||
| @color: replace(@key, '@', ''); | ||||||||||||||||||
| @c: @colors[@@color][color]; | ||||||||||||||||||
| @l: @colors[@@color][light]; | ||||||||||||||||||
| @isVeryDark: @colors[@@color][isVeryDark]; | ||||||||||||||||||
|
|
||||||||||||||||||
| .ui.@{color}.checkbox input:checked ~ label::after { | ||||||||||||||||||
| color: @color; | ||||||||||||||||||
| } | ||||||||||||||||||
| .ui.@{color}.radio.checkbox input:checked ~ label::after { | ||||||||||||||||||
| background-color: @color; | ||||||||||||||||||
prudho marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||
| } | ||||||||||||||||||
| .ui.@{color}.toggle.checkbox input:checked ~ label::before, | ||||||||||||||||||
| .ui.@{color}.slider.checkbox input:checked ~ label::before { | ||||||||||||||||||
| background-color: @color !important; | ||||||||||||||||||
| } | ||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Beside the variable name: Any chance to increase specificity without using
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's because there is an existing .ui.toggle.checkbox input:checked ~ label:before {
background-color: #2185D0 !important;
}We would need to remove the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you check the checkbox.less there are still a few |
||||||||||||||||||
|
|
||||||||||||||||||
| & when (@variationCheckboxOutline) { | ||||||||||||||||||
| /*-------------- | ||||||||||||||||||
| Outline | ||||||||||||||||||
| ---------------*/ | ||||||||||||||||||
| .ui.@{color}.outline.checkbox input:checked ~ label::before { | ||||||||||||||||||
| border-color: @color; | ||||||||||||||||||
prudho marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||
| } | ||||||||||||||||||
| .ui.@{color}.outline.toggle.checkbox input:checked ~ label::after, | ||||||||||||||||||
| .ui.@{color}.outline.slider.checkbox input:checked ~ label::after { | ||||||||||||||||||
| box-shadow: @subtleShadow, | ||||||||||||||||||
| 0 0 0 1px @color inset; | ||||||||||||||||||
prudho marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
| }) | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| /*-------------------- | ||||||||||||||||||
| outline | ||||||||||||||||||
| ---------------------*/ | ||||||||||||||||||
|
|
||||||||||||||||||
| & when (@variationCheckboxOutline) { | ||||||||||||||||||
| .ui.outline.checkbox input:checked ~ label::before { | ||||||||||||||||||
| border-color: @checkboxActiveCheckColor; | ||||||||||||||||||
| } | ||||||||||||||||||
| .ui.outline.toggle.checkbox input:checked ~ label::after { | ||||||||||||||||||
| box-shadow: @subtleShadow, | ||||||||||||||||||
| 0 0 0 1px @toggleOnLaneColor inset; | ||||||||||||||||||
| } | ||||||||||||||||||
| .ui.outline.slider.checkbox input:checked ~ label::after { | ||||||||||||||||||
| box-shadow: @subtleShadow, | ||||||||||||||||||
| 0 0 0 1px @checkboxActiveCheckColor inset; | ||||||||||||||||||
| } | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| /*-------------------- | ||||||||||||||||||
| Size | ||||||||||||||||||
| ---------------------*/ | ||||||||||||||||||
|
|
||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.