Introduce logo addon
Change-Id: I1d883b091a232ce907667a0651dda6cebc2ae171
diff --git a/Changes b/Changes
index 38f2541..ebcde61 100755
--- a/Changes
+++ b/Changes
@@ -10,7 +10,8 @@
by newer versions of Kustvakt. (diewald)
- Newer versions of Kustvakt disabled default
scope on authorization requests. (diewald)
-
+ - Introduce logo addon. (diewald)
+
0.49 2023-02-23
- Introduce conllu2korapxml command via plugin. (diewald)
- Introduce korapxml2conllu command via plugin. (diewald)
diff --git a/dev/scss/main/logos.scss b/dev/scss/main/logos.scss
index 4b6c26b..447889e 100644
--- a/dev/scss/main/logos.scss
+++ b/dev/scss/main/logos.scss
@@ -19,6 +19,18 @@
> span {
@include blind;
}
+
+ > div.logoaddon {
+ position:absolute;
+ display: block;
+ font-size: 10pt;
+ right: 5pt;
+ bottom: 4pt;
+ text-align:right;
+ color: $light-green;
+ padding: 3pt;
+ text-shadow: 1pt 1pt 0 $nearly-white, -1pt -1pt 0 $nearly-white, -1pt 1pt 0 $nearly-white, 1pt -1pt 0 $nearly-white;
+ }
}
}
diff --git a/templates/partial/header.html.ep b/templates/partial/header.html.ep
index 8638d7b..fe0ce0e 100644
--- a/templates/partial/header.html.ep
+++ b/templates/partial/header.html.ep
@@ -1,5 +1,5 @@
<header>
- <%= link_to 'index', class => 'logo', begin %><h1><span><%= title() // loc('korap_desc') %></span></h1><% end %>
+ <%= link_to 'index', class => 'logo', begin %><h1><span><%= title() // loc('korap_desc') %></span><% if (loc('title_addon')) { %><div class="logoaddon"><%= loc('title_addon') %></div><% } %></h1><% end %>
<div class="button top">
%= content_block 'headerButtonGroup'
</div>