Skip to content

Limit the size of content on very large screens #198

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions styles/usejsdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,17 @@ th {
border-width: 0;
text-decoration: none;
}

@media screen and (min-width: 1900px) {
.content-block {
margin: auto;
max-width: 1870px;
}
}

@media screen and (min-width: 2560px) {
.content-block {
margin: auto;
max-width: 2500px;
}
}
77 changes: 41 additions & 36 deletions views/layout.swig
Original file line number Diff line number Diff line change
Expand Up @@ -68,50 +68,55 @@

<body>
<header>
<a href="./index.html">@use JSDoc</a>
<div class="content-block">
<a href="./index.html">@use JSDoc</a>
</div>
</header>

<article>
{% if title %}
<h1>{{ title }}</h1>
{% endif %}

{% block toc %}
{% if headings && renderPageToc(headings) %}
{{ macros.toc(headings) }}
<div class="content-block">
<article>
{% if title %}
<h1>{{ title }}</h1>
{% endif %}
{% endblock %}

{% block synonyms %}
{% if synonyms %}
<h2 id="synonyms">Synonyms</h2>
{{ maybeList(synonyms, 'synonym') }}
{% endif %}
{% endblock %}
{% block toc %}
{% if headings && renderPageToc(headings) %}
{{ macros.toc(headings) }}
{% endif %}
{% endblock %}

{% block content %}
{{ contents|safe }}
{% endblock %}
{% block synonyms %}
{% if synonyms %}
<h2 id="synonyms">Synonyms</h2>
{{ maybeList(synonyms, 'synonym') }}
{% endif %}
{% endblock %}

{% if related %}
<h2 id="related-links">Related Links</h2>
{{ maybeList(related, 'filename') }}
{% endif %}
{% block content %}
{{ contents|safe }}
{% endblock %}

{% if related %}
<h2 id="related-links">Related Links</h2>
{{ maybeList(related, 'filename') }}
{% endif %}

</article>
</article>
</div>

<footer>
<a class="license-badge" href="http://creativecommons.org/licenses/by-sa/3.0/">
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg"
width="80" height="15" /></a>
<br>
Copyright &#169; 2011-2019 the
<a href="https://github.com/jsdoc3/jsdoc3.github.com/contributors">contributors</a> to the
JSDoc 3 documentation project.
<br>
This website is <a href="https://github.com/jsdoc3/jsdoc3.github.com">open source</a> and is
licensed under the <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.
<div class="content-block">
<a class="license-badge" href="http://creativecommons.org/licenses/by-sa/3.0/">
<img alt="Creative Commons License" class="license-badge" src="images/cc-by-sa.svg"
width="80" height="15" /></a>
<br>
Copyright &#169; 2011-2019 the
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

© 2011–2020, now ;-)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about that. On my opinion that change will be another topic (pull request) completely different. 😉

<a href="https://github.com/jsdoc3/jsdoc3.github.com/contributors">contributors</a> to the
JSDoc 3 documentation project.
<br>
This website is <a href="https://github.com/jsdoc3/jsdoc3.github.com">open source</a> and is
licensed under the <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.
</div>
</footer>

{% block scripts-footer %}
Expand Down