-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from canonical/full-width-documentation-layout
Update to vanilla 4.5.0 and implement new documenttion layout
- Loading branch information
Showing
7 changed files
with
228 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{% if is_docs %} | ||
<footer class="p-strip--dark p-footer"> | ||
<div class="l-docs__subgrid"> | ||
<div class="l-docs__sidebar u-fixed-width"> | ||
<p>© {{ now("%Y") }} Canonical Ltd.</p> | ||
</div> | ||
<div class="l-docs__main u-fixed-width"> | ||
<ul class="p-inline-list--middot is-dark"> | ||
<li class="p-inline-list__item"> | ||
<a class="p-link--inverted" aria-label="External link to the Ubuntu legal information page" href="http://www.ubuntu.com/legal"> | ||
Legal information | ||
</a> | ||
</li> | ||
<li class="p-inline-list__item"> | ||
<a class="js-revoke-cookie-manager p-link--inverted" href="">Manage your tracker settings</a> | ||
</li> | ||
<li class="p-inline-list__item"> | ||
<a class="p-link--inverted" aria-label="External link to report a bug on this site" | ||
href="https://github.com/canonical-websites/mir-server.io/issues/new"> | ||
Report a bug on this site | ||
</a> | ||
</li> | ||
</ul> | ||
<p class="">Ubuntu and Canonical are registered trademarks of Canonical Ltd.</p> | ||
<span class="u-off-screen"> | ||
<a href="#">Go to the top of the page</a> | ||
</span> | ||
</div> | ||
</div> | ||
</footer> | ||
{% else %} | ||
<footer class="p-strip"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<p>© {{ now("%Y") }} Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.</p> | ||
<ul class="p-inline-list--middot"> | ||
<li class="p-inline-list__item"> | ||
<a aria-label="External link to the Ubuntu legal information page" href="http://www.ubuntu.com/legal"> | ||
Legal information | ||
</a> | ||
</li> | ||
<li class="p-inline-list__item"> | ||
<a class="js-revoke-cookie-manager" href="">Manage your tracker settings</a> | ||
</li> | ||
<li class="p-inline-list__item"> | ||
<a aria-label="External link to report a bug on this site" | ||
href="https://github.com/canonical-websites/mir-server.io/issues/new"> | ||
Report a bug on this site | ||
</a> | ||
</li> | ||
</ul> | ||
<span class="u-off-screen"> | ||
<a href="#">Go to the top of the page</a> | ||
</span> | ||
</div> | ||
</div> | ||
</footer> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{% macro nav_logo() %} | ||
<div class="p-navigation__banner {% if not is_docs %}u-no-padding--left{% endif %}"> | ||
<div class="p-navigation__tagged-logo "> | ||
<a class="p-navigation__link" href="/"> | ||
<div class="p-navigation__logo-tag"> | ||
<img class="p-navigation__logo-icon" src="https://assets.ubuntu.com/v1/82818827-CoF_white.svg" alt=""> | ||
</div> | ||
<span class="p-navigation__logo-title">Mir Display Server</span> | ||
</a> | ||
</div> | ||
<a href="#navigation" class="p-navigation__toggle--open" title="menu">Menu</a> | ||
<a href="#navigation-closed" class="p-navigation__toggle--close" title="close menu">Close menu</a> | ||
</div> | ||
{% endmacro %} | ||
|
||
{% macro nav_items() %} | ||
<nav class="p-navigation__nav"> | ||
<ul class="p-navigation__items" {% if not is_docs %}style="margin-left: -.75rem;"{% endif %}> | ||
<li class="p-navigation__item {% if '/ubuntu-frame' in request.path %}is-selected{% endif %}" role="menuitem"> | ||
<a href="/ubuntu-frame/" class="p-navigation__link">Ubuntu Frame</a> | ||
</li> | ||
<li class="p-navigation__item {% if '/tutorials' in request.path %}is-selected{% endif %}" role="menuitem"> | ||
<a href="/tutorials/" class="p-navigation__link">Tutorials</a> | ||
</li> | ||
<li class="p-navigation__item {% if '/docs' in request.path %}is-selected{% endif %}"> | ||
<a class="p-navigation__link" href="/docs">Docs</a> | ||
</li> | ||
<li class="p-navigation__item"> | ||
<a href="https://discourse.ubuntu.com/c/mir" class="p-navigation__link">Community</a> | ||
</li> | ||
</ul> | ||
<ul class="p-navigation__items global-nav"> | ||
</ul> | ||
</nav> | ||
{% endmacro %} | ||
|
||
<header id="navigation" class="p-navigation is-dark"> | ||
{% block header_banner %} | ||
{% if is_docs %} | ||
<div class="l-docs__subgrid"> | ||
<div class="l-docs__sidebar"> | ||
{{ nav_logo() }} | ||
</div> | ||
<div class="l-docs__main"> | ||
<div class="p-navigation__row u-fixed-width"> | ||
{{ nav_items() }} | ||
</div> | ||
</div> | ||
</div> | ||
{% else %} | ||
<div class="row"> | ||
<div class="col-3"> | ||
{{ nav_logo() }} | ||
</div> | ||
<div class="col-9"> | ||
{{ nav_items() }} | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endblock header_banner %} | ||
</header> |
Oops, something went wrong.