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

Make the script example scrollable so it can be copied easily #229

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

mrnugget
Copy link

@mrnugget mrnugget commented Oct 6, 2015

I ran into "problems" while trying to copy the script tag on into my code. It's this one here:

script_tag

The pre/code tags are not scrollable and I had to change the overflow attribute in my browser dev tools to copy the script tag.

Now, this commit makes this change permanent and allows to scroll/copy the example script tag again.

What do you think? Another solution I thought of was to change the layout and move the whole script tag code snippet and the text to a separate row:

2015-10-06 at 07 31

If this is a better solution (since the scrollbars might look ugly on different systems), I'll happily close this PR and open another one with the separate row.

On index.html there is a code tag which shows an example script tag to
include hogan.js on your site. This code tag is not scrollable and the
majority of the content is hidden. Scrolling is not possible, which
makes it really hard to copy the URL.

This change sets `overflow` to `auto` on `code` and `pre` elements. The
layout stays the same, but now the content is scrollable and it's
possible to copy the script tag.
@CLAassistant
Copy link

CLAassistant commented Jul 18, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Successfully merging this pull request may close these issues.

2 participants