-
Notifications
You must be signed in to change notification settings - Fork 28
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
Suggest adding a class to determine whether the gist has any highlighted lines #48
Comments
I just submitted a pull request containing a solution to this. See #49 |
I think we could expand this and target the outermost div (currently |
I agree, but I won't be in a position to handle that for a few weeks, as I'll be in a place that has no internet access. I'd also suggest adding a unique ID to each instance of the embed, perhaps through the use of a custom |
I much prefer the feature classes and would like to limit modifications to the markup as much as possible. Additional changes introduce greater potential for things to break if/when GitHub changes the markup and will make it more difficult to update in a timely manner. Also, the With that in mind, feature classes should make the |
I'm thinking of feature classes alone the lines of |
I'm all for the feature classes idea, I'm just super strapped for time right now, as I'm about to go off grid for a few weeks, so I knocked up the quick solution of adding the |
G'day
I've just come up against the need to target the embedded gists based on whether or not they contain highlighted lines. My goal is to fade any non-highlighted lines out, but only when there are highlighted lines to emphasize.
I can see that the
table
element gets a class ofhighlight
, even when there are no lines highlighted, but if there could be a class that indicates the presence of highlighted lines, then I could easily target specific gist embeds.The text was updated successfully, but these errors were encountered: