This repository was archived by the owner on Jun 12, 2024. It is now read-only.
Repository navigation
[docs-prose.css] make .prose pre rules more specific - #113
Merged
Merged
Conversation
added 4 commits
February 14, 2019 15:21
colleenmcginnis
approved these changes
Feb 15, 2019
colleenmcginnis
left a comment
Contributor
There was a problem hiding this comment.
Genius! I ran the test site locally and inspected various code blocks throughout docs sites to verify that the ones we don't want to apply max-height to do not use the language- pattern. 🎉
added 2 commits
February 14, 2019 19:13
* master: Add `mb24` to `OverviewHeader` (#112)
katydecorah
pushed a commit
that referenced
this pull request
Apr 17, 2019
* master: (22 commits) fixes bug in firefox where arrow was not vertically centered (#122) add swiftype attribute to ignore content blocks (#119) 0.9.0 Prepare 0.9.0 Add BetaFlag component and options to add it to other components (#123) Prepare 0.8.1 [patch] Use babel.config.js and updates build-package.js to output directories (#118) Prepare 0.8.0 create versionSort function (#117) Prepare 0.7.0 Add optional prop for tags for first level items in NavigationAccordion (#115) Prepare 0.6.0 [docs-prose.css] make `.prose pre` rules more specific (#113) Add `mb24` to `OverviewHeader` (#112) [SectionedNavigation] filter the description if it's available (#111) Prepare 0.5.0 Add warning and error themes to `Note` (#102) Add CSS to set max-height and style scrollbars for prose code examples (#103) [Card/CardContainer] Add new styles for fullwidth cards (#104) Add prism.css to create shared syntax styles used commonly across sites (#108) ...
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.
When markdown parses code blocks, it adds classes with the language to the pre element, for example:
class="language-html".This PR updates the
.prose preclasses in docs-prose.css to only apply the classes if the pre element has alanguage-class.This will keep example pages on our various docs sites from getting max-height on code blocks, where it's not preferred.
This PR also copies over docs-prose.css to the test-cases-app so we can see it in use!
How to test: to PageLayout I added a test case to simulate code output.