-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5 from IATI/theme
Initial working version of theme
- Loading branch information
Showing
24 changed files
with
396 additions
and
62 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 was deleted.
Oops, something went wrong.
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,3 @@ | ||
<div class="globaltoc"> | ||
{{ toctree(includehidden=theme_globaltoc_includehidden, collapse=theme_globaltoc_collapse, maxdepth=theme_globaltoc_maxdepth) }} | ||
</div> |
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,87 @@ | ||
{% extends "basic/layout.html" %} | ||
|
||
{%- block header %} | ||
<div class="iati-title-bar"> | ||
<header class="iati-header"> | ||
<div> | ||
<a href="https://iatistandard.org/"> | ||
<img | ||
src="http://styles.iatistandard.org/assets/svg/source/logo-colour.svg" | ||
class="iati-header__logo" | ||
/> | ||
</a> | ||
</div> | ||
<ul class="iati-header__nav"> | ||
<li class="iati-header__nav-item"> | ||
<a href="{{ pathto('search') }}">Search</a> | ||
</li> | ||
</ul> | ||
</header> | ||
<div class="iati-title-bar__title"> | ||
{{ _(project) }} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{%- block relbar1 %}{% endblock %} | ||
{%- block relbar2 %}{% endblock %} | ||
{%- block sidebar1 %}{% endblock %} | ||
{%- block sidebar2 %}{% endblock %} | ||
|
||
{%- block content %} | ||
<main class="iati-main"> | ||
{%- include "globaltoc.html" %} | ||
{{ super() }} | ||
</main> | ||
{% endblock %} | ||
|
||
{%- block document %} | ||
{{ super() }} | ||
{%- if theme_show_relations|tobool %} | ||
{%- include "relations.html" %} | ||
{%- endif %} | ||
{% endblock %} | ||
|
||
{%- block footer %} | ||
<footer class="iati-footer" role="contentinfo"> | ||
<div> | ||
<a href="https://iatistandard.org/"> | ||
<img | ||
src="http://styles.iatistandard.org/assets/svg/source/logo-white.svg" | ||
class="iati-footer__logo" | ||
/> | ||
</a> | ||
<div class="iati-footer__list"> | ||
<span class="iati-footer__list-title">Useful Links</span> | ||
<ul> | ||
<li><a href="https://iatistandard.org/en/contact/">Contact</a></li> | ||
<li><a href="https://iatistandard.org/en/privacy-policy/">Privacy Policy</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<hr /> | ||
<div> | ||
<div> | ||
{{- copyright_block() -}} | ||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}. | ||
</div> | ||
<div class="iati-footer__social-icons"> | ||
<a href="https://twitter.com/IATI_aid" aria-label="Twitter"> | ||
<i class="iati-icon iati-icon--twitter"></i> | ||
</a> | ||
<a | ||
href="https://www.youtube.com/channel/UCAVH1gcgJXElsj8ENC-bDQQ" | ||
aria-label="YouTube" | ||
> | ||
<i class="iati-icon iati-icon--youtube"></i> | ||
</a> | ||
<a | ||
href="https://www.linkedin.com/company/international-aid-transparency-initiative/" | ||
aria-label="LinkedIn" | ||
> | ||
<i class="iati-icon iati-icon--linkedin"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</footer> | ||
{%- endblock %} |
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,18 @@ | ||
<div class="relations"> | ||
{%- if prev %} | ||
<div> | ||
<p class="relations__label">Previous</p> | ||
<a href="{{ prev.link|e }}"> | ||
{{ prev.title }} | ||
</a> | ||
</div> | ||
{%- endif %} | ||
{%- if next %} | ||
<div class="right"> | ||
<p class="relations__label">Next</p> | ||
<a href="{{ next.link|e }}"> | ||
{{ next.title }} | ||
</a> | ||
</div> | ||
{%- endif %} | ||
</div> |
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,17 @@ | ||
{% extends "basic/search.html" %} | ||
|
||
{% block searchbox %} | ||
<form action="" method="get" class="iati-search-bar"> | ||
<input | ||
type="text" | ||
name="q" | ||
aria-labelledby="search-documentation" | ||
value="" | ||
autocomplete="off" | ||
autocorrect="off" | ||
autocapitalize="off" | ||
spellcheck="false" | ||
/> | ||
<button type="submit" class="iati-button">Search</button> | ||
</form> | ||
{% endblock %} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,16 @@ | ||
@use "pkg:iati-design-system" as *; | ||
|
||
aside.footnote-list { | ||
font-size: 0.9em; | ||
} | ||
|
||
aside.footnote { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
align-items: flex-start; | ||
|
||
& > * { | ||
margin: 0.2em; | ||
line-height: $line-height-body; | ||
} | ||
} |
Oops, something went wrong.