-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve controls #260
Closed
Closed
Improve controls #260
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,18 +1,16 @@ | ||
.ui.option { | ||
&.checkbox { | ||
.control__input { | ||
&:checked ~ .control__indicator { | ||
background: $control-checked-bg url("/static/v2/img/icons/checkmark.svg") no-repeat center; | ||
background-size: 135%; | ||
} | ||
} | ||
.ui.option.checkbox { | ||
|
||
.control__indicator::after { | ||
transform: translateY(-4px); | ||
top: 0; | ||
} | ||
|
||
&.disabled { | ||
.control__input { | ||
&:checked ~ .control__indicator { | ||
background: $control-disabled-bg url("/static/v2/img/icons/checkmark.svg") no-repeat center; | ||
} | ||
} | ||
.control__input { | ||
&:checked ~ .control__indicator::after { | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23FFF' d='M6.92501468,10.2334083 L4.80005885,7.40013385 C4.468688,6.95830605 3.84188665,6.868763 3.40005885,7.20013385 C2.95823105,7.5315047 2.868688,8.15830605 3.20005885,8.60013385 L6.20005885,12.6001339 C6.62151523,13.1620757 7.47577143,13.12579 7.84805716,12.5301328 L12.8480572,4.53013279 C13.1407675,4.06179626 12.9983943,3.44484588 12.5300578,3.15213555 C12.0617213,2.85942522 11.4447709,3.00179838 11.1520605,3.47013491 L6.92501468,10.2334083 Z'/%3E%3C/svg%3E%0A"); | ||
background-position: 50% 50%; | ||
background-repeat: no-repeat; | ||
transform: translateY(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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
.ui.option { | ||
&.radio { | ||
.control__input { | ||
&:checked ~ .control__indicator::after { | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
margin: auto; | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 50%; | ||
background: $white; | ||
} | ||
} | ||
.ui.option.radio { | ||
|
||
.control__indicator { | ||
.control__input { | ||
&:checked ~ .control__indicator::after { | ||
left: 6px; | ||
top: 6px; | ||
width: 8px; | ||
height: 8px; | ||
background-color: #fff; | ||
border-radius: 50%; | ||
transform: scale(1); | ||
} | ||
} | ||
|
||
.control__indicator::before { | ||
border-radius: 50%; | ||
} | ||
|
||
.control__indicator::after { | ||
transform: scale(.5); | ||
background-image: none; | ||
transition: opacity .075s ease-in-out, transform .125s ease-in-out; | ||
} | ||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
по идее .grouped здесь не должно быть. Если у нас уже так сделано, то это ошибка.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#298 Поправил