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

snippet-preview pushed down when viewing code for an element with a description #196

Open
ignas-damijonaitis opened this issue Sep 23, 2016 · 0 comments

Comments

@ignas-damijonaitis
Copy link

Hey, so in the styleguide, when choosing Show Code for an element that doesn't have any description to it - the preview of said code is pushed down with the margin without any issues.

ex2
ex3

The problem kicks in when viewing the code for an element that does have a description.

ex4

The code is shown, the preview is pushed down, but it's being pushed down by the description, which leaves a big gap between the code and the demo, sometimes pushing it down enough to require you to scroll to see it again.

ex5

The red line indicates where the margin-top of the preview ends.

ex6

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