summaryrefslogtreecommitdiff
path: root/_includes/git-wiki/components
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2018-12-19 17:43:10 +0100
committerYehonal <yehonal.azeroth@gmail.com>2018-12-19 17:43:36 +0100
commitc9d5ac3d8e1d5a8d3a65bf1fb6e0023c6dc6b85c (patch)
tree70f9af3cf873707ec47941a3d154a6e5b9c6c8fc /_includes/git-wiki/components
parent08bb243916dc812c2b6b18d0ff24710dd1a1306b (diff)
downloadwiki-c9d5ac3d8e1d5a8d3a65bf1fb6e0023c6dc6b85c.tar.gz
wiki-c9d5ac3d8e1d5a8d3a65bf1fb6e0023c6dc6b85c.tar.bz2
wiki-c9d5ac3d8e1d5a8d3a65bf1fb6e0023c6dc6b85c.zip
Various css fixes
Diffstat (limited to '_includes/git-wiki/components')
-rw-r--r--_includes/git-wiki/components/action_btn/downloads.html2
-rw-r--r--_includes/git-wiki/components/action_btn/page_actions.html40
-rw-r--r--_includes/git-wiki/components/copyrights/copyrights.html14
-rw-r--r--_includes/git-wiki/components/lists/page-list.html47
-rw-r--r--_includes/git-wiki/components/lists/post-list.html49
-rw-r--r--_includes/git-wiki/components/search/index.html12
-rw-r--r--_includes/git-wiki/components/search/se_github.html22
-rw-r--r--_includes/git-wiki/components/search/se_google.html26
-rw-r--r--_includes/git-wiki/components/search/se_js.html27
9 files changed, 130 insertions, 109 deletions
diff --git a/_includes/git-wiki/components/action_btn/downloads.html b/_includes/git-wiki/components/action_btn/downloads.html
index 8f654f9..8bd356b 100644
--- a/_includes/git-wiki/components/action_btn/downloads.html
+++ b/_includes/git-wiki/components/action_btn/downloads.html
@@ -1,4 +1,4 @@
-<ul class="downloads">
+<ul class="git-wiki-downloads">
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
<li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
diff --git a/_includes/git-wiki/components/action_btn/page_actions.html b/_includes/git-wiki/components/action_btn/page_actions.html
index d0e15b3..08c6e6f 100644
--- a/_includes/git-wiki/components/action_btn/page_actions.html
+++ b/_includes/git-wiki/components/action_btn/page_actions.html
@@ -1,23 +1,29 @@
-{% if site.use_github_wiki %}
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/_new">Add new</a></span>
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_edit">Edit</a></span>
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_history">History</a></span>
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: '.md'}}/">Source</a></span>
-{% else %}
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename={{ site.wiki_folder | default: 'wiki' }}/">Add new</a></span>
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/edit/{{site.git_branch}}/{{page.path}}">Edit</a></span>
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/commits/{{site.git_branch}}/{{page.path}}">History</a></span>
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch}}/{{page.path}}">Source</a></span>
-{% if site.blog_feature %}
-<span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename=_posts/">Add new post</a></span>
-{% endif %}
+<div class="git-wiki-tools">
+ {% if site.use_github_wiki %}
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/_new">Add new</a></span>
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_edit">Edit</a></span>
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: ''}}/_history">History</a></span>
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/wiki/{{url | remove: '.html' | append: '.md'}}/">Source</a></span>
+ {% else %}
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename={{ site.wiki_folder | default: 'wiki' }}/">Add
+ new</a></span>
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/edit/{{site.git_branch}}/{{page.path}}">Edit</a></span>
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/commits/{{site.git_branch}}/{{page.path}}">History</a></span>
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/blob/{{site.git_branch}}/{{page.path}}">Source</a></span>
+ {% if site.blog_feature %}
+ <span class="tools-element"><a target="_blank" href="{{ site.github.repository_url }}/new/{{site.git_branch}}?filename=_posts/">Add
+ new post</a></span>
+ {% endif %}
{% if site.use_prose_io %}
<br>
- Prose.io:
- <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/{{ site.wiki_folder | default: 'wiki' }}">Add new</a></span>
+ Prose.io:
+ <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/{{ site.wiki_folder | default: 'wiki' }}">Add
+ new</a></span>
<span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/edit/{{site.git_branch}}/{{page.path}}">Edit</a></span>
{% if site.blog_feature %}
- <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/_posts/">Add new post</a></span>
+ <span class="tools-element"><a target="_blank" href="http://prose.io/#{{site.github.repository_nwo}}/new/{{site.git_branch}}/_posts/">Add
+ new post</a></span>
+ {% endif %}
{% endif %}
{% endif %}
-{% endif %} \ No newline at end of file
+</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/copyrights/copyrights.html b/_includes/git-wiki/components/copyrights/copyrights.html
index d53ff75..8a2841e 100644
--- a/_includes/git-wiki/components/copyrights/copyrights.html
+++ b/_includes/git-wiki/components/copyrights/copyrights.html
@@ -1,9 +1,11 @@
{% if site.github.is_project_page %}
-<p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
-{% endif %}
-<p><small>Hosted on GitHub Pages &mdash; Powered by <a href="https://github.com/Drassil/git-wiki">Git-Wiki v{{
- version }}</a> </p>
+<div class="git-wiki-copyrights">
+ <p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
+ {% endif %}
+ <p><small>Hosted on GitHub Pages &mdash; Powered by <a href="https://github.com/Drassil/git-wiki">Git-Wiki v{{
+ version }}</a> </p>
-{% if site.github.is_project_page %}
-<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
+ {% if site.github.is_project_page %}
+ <p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ github_name }}</small></a></p>
+</div>
{% endif %} \ No newline at end of file
diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html
index 8c32b63..5fb118d 100644
--- a/_includes/git-wiki/components/lists/page-list.html
+++ b/_includes/git-wiki/components/lists/page-list.html
@@ -1,26 +1,29 @@
-{% if site.inc_before_page_list %}
-{% include {{ site.inc_before_page_list }} %}
-{% endif %}
+<div class="git-wiki-page-list">
+ {% if site.inc_before_page_list %}
+ {% include {{ site.inc_before_page_list }} %}
+ {% endif %}
-<span class="page-list-title">Pages {% if (site.show_wiki_pages_limit >= 1 %} (Latest {{site.show_wiki_pages_limit }} updated) {% endif %}:</span>
-<ul class="page-list">
-{% assign numPages=0 %}
-{% assign items = site.pages | sort: 'date' %}
-{% for post in items %}
-{% if numPages >= site.show_wiki_pages_limit %}
- {% break %}
-{% endif %}
+ <span class="page-list-title">Pages {% if (site.show_wiki_pages_limit >= 1 %} (Latest {{site.show_wiki_pages_limit
+ }} updated) {% endif %}:</span>
+ <ul class="page-list">
+ {% assign numPages=0 %}
+ {% assign items = site.pages | sort: 'date' %}
+ {% for post in items %}
+ {% if numPages >= site.show_wiki_pages_limit %}
+ {% break %}
+ {% endif %}
-{% if post.layout != "null" and post.sitemap != false and post.title %}
- <li class="page-list-item">
- <a href="{{ post.url | relative_url }}">{{ post.title}}</a>
- </li>
- {% assign numPages = numPages | plus: 1 %}
-{% endif %}
+ {% if post.layout != "null" and post.sitemap != false and post.title %}
+ <li class="page-list-item">
+ <a href="{{ post.url | relative_url }}">{{ post.title}}</a>
+ </li>
+ {% assign numPages = numPages | plus: 1 %}
+ {% endif %}
-{% endfor %}
-</ul>
+ {% endfor %}
+ </ul>
-{% if site.inc_after_page_list %}
-{% include {{ site.inc_after_page_list }} %}
-{% endif %} \ No newline at end of file
+ {% if site.inc_after_page_list %}
+ {% include {{ site.inc_after_page_list }} %}
+ {% endif %}
+</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/lists/post-list.html b/_includes/git-wiki/components/lists/post-list.html
index be1aa35..d6fa663 100644
--- a/_includes/git-wiki/components/lists/post-list.html
+++ b/_includes/git-wiki/components/lists/post-list.html
@@ -1,28 +1,31 @@
-{% if site.inc_before_post_list %}
-{% include {{ site.inc_before_post_list }} %}
-{% endif %}
+<div class="git-wiki-page-list">
+ {% if site.inc_before_post_list %}
+ {% include {{ site.inc_before_post_list }} %}
+ {% endif %}
-<span class="post-list-title">Posts {% if (site.show_wiki_posts_limit >= 1 %} (Latest {{site.show_wiki_posts_limit }} updated) {% endif %}:</span>
-<ul class="post-list">
-{% assign numPages=0 %}
-{% assign items = site.posts | sort: 'date' %}
-{% for post in items %}
-{% if numPages >= site.show_wiki_posts_limit %}
- {% break %}
-{% endif %}
+ <span class="post-list-title">Posts {% if (site.show_wiki_posts_limit >= 1 %} (Latest {{site.show_wiki_posts_limit
+ }} updated) {% endif %}:</span>
+ <ul class="post-list">
+ {% assign numPages=0 %}
+ {% assign items = site.posts | sort: 'date' %}
+ {% for post in items %}
+ {% if numPages >= site.show_wiki_posts_limit %}
+ {% break %}
+ {% endif %}
-{% if post.layout != "null" and post.sitemap != false and post.title %}
- <li class="post-list-item">
- <a href="{{ post.url | relative_url }}">{{ post.title}}</a>
- </li>
- {% assign numPages = numPages | plus: 1 %}
-{% endif %}
+ {% if post.layout != "null" and post.sitemap != false and post.title %}
+ <li class="post-list-item">
+ <a href="{{ post.url | relative_url }}">{{ post.title}}</a>
+ </li>
+ {% assign numPages = numPages | plus: 1 %}
+ {% endif %}
-{% endfor %}
-</ul>
+ {% endfor %}
+ </ul>
-<span class="post-list read-all"><a href="{{ '/blog/' | relative_url}}">Read all</a></span>
+ <span class="post-list read-all"><a href="{{ '/blog/' | relative_url}}">Read all</a></span>
-{% if site.inc_after_post_list %}
-{% include {{ site.inc_after_post_list }} %}
-{% endif %} \ No newline at end of file
+ {% if site.inc_after_post_list %}
+ {% include {{ site.inc_after_post_list }} %}
+ {% endif %}
+</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/search/index.html b/_includes/git-wiki/components/search/index.html
index 8af31e8..f6b5ba3 100644
--- a/_includes/git-wiki/components/search/index.html
+++ b/_includes/git-wiki/components/search/index.html
@@ -1,7 +1,9 @@
-{% comment %}
+<div class="git-wiki-search">
+ {% comment %}
This component just select your preferred search engine based on _config.yml value
-{% endcomment %}
+ {% endcomment %}
-{% assign se = site.search_engine | default: "github" %}
-{% assign file = "git-wiki/components/search/se_" | append: se | append: ".html" %}
-{% include {{file}} %} \ No newline at end of file
+ {% assign se = site.search_engine | default: "github" %}
+ {% assign file = "git-wiki/components/search/se_" | append: se | append: ".html" %}
+ {% include {{file}} %}
+</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/search/se_github.html b/_includes/git-wiki/components/search/se_github.html
index efcc5e8..8605410 100644
--- a/_includes/git-wiki/components/search/se_github.html
+++ b/_includes/git-wiki/components/search/se_github.html
@@ -1,10 +1,12 @@
-<form method="GET" action="{{ site.github.repository_url }}/search">
- <input type="text" name="q[]" placeholder="Text to search">
- {% if site.use_github_wiki %}
- <input type="hidden" name="type" value="Wikis">
- {% else %}
- <!-- <input type="hidden" name="l" value="Markdown"> -->
- <input type="hidden" name="q[]" value="path:/{{ site.wiki_folder }}">
- {% endif %}
- <input type="submit" value="Search">
-</form> \ No newline at end of file
+<div class="git-wiki-search-github">
+ <form method="GET" action="{{ site.github.repository_url }}/search">
+ <input type="text" name="q[]" placeholder="Text to search">
+ {% if site.use_github_wiki %}
+ <input type="hidden" name="type" value="Wikis">
+ {% else %}
+ <!-- <input type="hidden" name="l" value="Markdown"> -->
+ <input type="hidden" name="q[]" value="path:/{{ site.wiki_folder }}">
+ {% endif %}
+ <input type="submit" value="Search">
+ </form>
+</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/search/se_google.html b/_includes/git-wiki/components/search/se_google.html
index 0c3e675..f0cd5c1 100644
--- a/_includes/git-wiki/components/search/se_google.html
+++ b/_includes/git-wiki/components/search/se_google.html
@@ -1,12 +1,14 @@
-<script>
- (function () {
- var cx = "{{site.google_cse_token}}";
- var gcse = document.createElement('script');
- gcse.type = 'text/javascript';
- gcse.async = true;
- gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(gcse, s);
- })();
-</script>
-<gcse:search></gcse:search> \ No newline at end of file
+<div class="git-wiki-search-google">
+ <script>
+ (function () {
+ var cx = "{{site.google_cse_token}}";
+ var gcse = document.createElement('script');
+ gcse.type = 'text/javascript';
+ gcse.async = true;
+ gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(gcse, s);
+ })();
+ </script>
+ <gcse:search></gcse:search>
+</div> \ No newline at end of file
diff --git a/_includes/git-wiki/components/search/se_js.html b/_includes/git-wiki/components/search/se_js.html
index 9e75464..056dd87 100644
--- a/_includes/git-wiki/components/search/se_js.html
+++ b/_includes/git-wiki/components/search/se_js.html
@@ -1,15 +1,16 @@
-<div class="container">
- <div class="well" id="searchbox">
- <input id="search-field" placeholder="Search the Site"/>
- <ul id="results"></ul>
+<div class="git-wiki-search-js">
+ <div class="container">
+ <div class="well" id="searchbox">
+ <input id="search-field" placeholder="Search the Site" />
+ <ul id="results"></ul>
+ </div>
</div>
</div>
-
-<script src="{{ '/assets/js/jquery.camelhunter.min.js' | relative_url }}"></script>
-<script type="text/javascript">
- $("#search-field").camelHunter({
- onKeyUp : true,
- rss: "{{ '/sitemap_full.xml' | relative_url }}",
- results : "#results"
- });
-</script> \ No newline at end of file
+ <script src="{{ '/assets/js/jquery.camelhunter.min.js' | relative_url }}"></script>
+ <script type="text/javascript">
+ $("#search-field").camelHunter({
+ onKeyUp: true,
+ rss: "{{ '/sitemap_full.xml' | relative_url }}",
+ results: "#results"
+ });
+ </script>