[DOCS] Change styling for row-selection demo options#730
Merged
Conversation
Change the styling so the interactive row-selection demo moves the radio button labels to the right of the button, and add back in some alignment and spacing between the labels. The docs were using a tailwind CSS class "pr-4" but tailwind is no longer provided via addon-docs, so those styles were not being applied.
mixonic
reviewed
Jul 19, 2019
| flex-basis: 40%; | ||
| } | ||
|
|
||
| & > * + * { |
Member
There was a problem hiding this comment.
Given <a><b /><c /></a> this only matches c?
Contributor
Author
There was a problem hiding this comment.
Haha, yeah. It selects "an element that follows an element". I discovered this recently and am probably over-using it... :) It's a cleaner alternative to using 2 rules: 1 rule that sets some padding and then another that targets ":first-child" or ":last-child" to remove the padding.
https://alistapart.com/article/axiomatic-css-and-lobotomized-owls/
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Change the styling so the interactive row-selection demo
moves the radio button labels to the right of the button, and
add back in some alignment and spacing between the labels.
The docs were using a tailwind CSS class "pr-4" but tailwind is no longer
provided via addon-docs, so those styles were not being applied.
Before

After
