-
Notifications
You must be signed in to change notification settings - Fork 639
feature/code-block-language-header #1389
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
Changes from all commits
8c1cc01
47a1c53
f825a14
a348b58
f50584c
a3c3d75
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 |
|---|---|---|
|
|
@@ -153,6 +153,10 @@ | |
| @apply hidden; | ||
| } | ||
|
|
||
| .Container section :global(.code-block-header) { | ||
| @apply hidden !important; | ||
|
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. question: is there a way to do this without the
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 struggled to get this apply. I tried hiding it at different levels, using different selectors, but had to end up with !important, but I could have missed something. |
||
| } | ||
|
|
||
| .Container section div { | ||
| @apply bg-gray-10; | ||
| @apply text-gray-80; | ||
|
|
||
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.
question: If
showLanguageisfalse, then it looks likeHeaderwill just be a blank div with a height of2.5rem. Is that expected?Uh oh!
There was an error while loading. Please reload this page.
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.
The copy button should still be visible. (After the feature is merged, this should be a rare case because I will update the docs. IIRC, I will only use "None" for directory structures or text files, and I will add a "Directory structure" description or "requirements.txt" in those instances, which is the next PR.)
For example, this is a "None" example that will have a description enabled in the next PR.
