summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAilin Nemui <ailin@z30a.localdomain>2017-05-24 16:09:59 +0200
committerAilin Nemui <ailin@z30a.localdomain>2017-05-24 17:31:24 +0200
commitf8991dd88cf1b6283127f5a240997a13b0f19073 (patch)
treef09ae12ef32573c31ba2dca8fdbe7cb291ac7c8b
parentfefc75e2c2e65605c173a05e696f88c04caa1e63 (diff)
downloadirssi.github.io-f8991dd88cf1b6283127f5a240997a13b0f19073.zip
add source link
-rw-r--r--_includes/footer.html4
-rw-r--r--assets/css/style.css19
2 files changed, 22 insertions, 1 deletions
diff --git a/_includes/footer.html b/_includes/footer.html
index 9e1f23e..a950573 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,9 +1,11 @@
<footer class="container">
<div class="col-lg-12">
- <p class="text-center">
+ <p class="text-center hidden-edit">
+ <a class="hidden-edit" href="{% if site.github %}{{ site.github.tar_url | replace_first: '/tarball/', '/tree/' }}{% else %}file://{{ site.source }}{% endif %}/{% if page.relative_path %}{{ page.relative_path }}{% elsif paginator and paginator.page > 1 %}{% assign temp0 = "/" | append: paginator.page | append: "/" %}{{ page.path | replace_first: temp0, "/" }}{% else %}{{ page.path }}{% endif %}">Source file</a><span class="hidden-edit"> &ndash;</span>
All the content of this site is copyright ©
2000-{{ 'now' | date: "%Y" }}
<a href="https://github.com/irssi">The Irssi project</a>.
+ <span class="hidden-balance"></span>
<br/>
{% if page.licence and page.licence != "" %}
This page is licensed under a {{ page.licence | markdownify | strip | split:"</p>" | join:"" | split:"<p>" }}.
diff --git a/assets/css/style.css b/assets/css/style.css
index 71f80a1..4564954 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -2,6 +2,7 @@ body {
padding-top: 50px;
overflow-y: scroll;
}
+/* header bar: 50px */
div.jumbotron {
padding-top: 16px;
@@ -207,6 +208,24 @@ blockquote {
overflow-y: auto;
}
+p.hidden-edit a.hidden-edit,
+p.hidden-edit a.hidden-edit + span.hidden-edit {
+ opacity: 0;
+}
+p.hidden-edit:hover a.hidden-edit,
+p.hidden-edit:hover a.hidden-edit + span.hidden-edit,
+p.hidden-edit a.hidden-edit:focus,
+p.hidden-edit a.hidden-edit:active,
+p.hidden-edit a.hidden-edit:focus + span.hidden-edit,
+p.hidden-edit a.hidden-edit:active + span.hidden-edit {
+ opacity: 1;
+}
+p.hidden-edit span.hidden-balance {
+ display: inline-block;
+ /* width should roughly equal "Source file -" */
+ width: 10ex;
+}
+
/* news archive */
.container.home h3,
.container.home .h3 {