Skip to content
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

"Constrained output frame" example does not work #7

Closed
smarie opened this issue Dec 9, 2021 · 1 comment
Closed

"Constrained output frame" example does not work #7

smarie opened this issue Dec 9, 2021 · 1 comment

Comments

@smarie
Copy link
Owner

smarie commented Dec 9, 2021

The code output is entirely displayed. Maybe something to ask to mkdocs-material ?

@smarie
Copy link
Owner Author

smarie commented Jan 7, 2022

The solution proposed seems to simply set this as a CSS property and use code block attribute { .py style="--md-codeblock-height: 200px" }

.md-typeset pre > code {
    max-height: var(--md-codeblock-height, 5rem); /* 5rem will be used as a fallback value */
}

@smarie smarie closed this as completed in 8515591 Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant