null+****@clear*****
null+****@clear*****
2011年 5月 22日 (日) 19:28:55 JST
Kouhei Sutou 2011-05-22 10:28:55 +0000 (Sun, 22 May 2011)
New Revision: c3421d24d28ce7ba65d48a41fba5993e0eb5e537
Log:
[doc] style other language link.
Modified files:
doc/themes/groonga/layout.html
doc/themes/groonga/static/groonga.css_t
Modified: doc/themes/groonga/layout.html (+6 -2)
===================================================================
--- doc/themes/groonga/layout.html 2011-05-22 10:05:31 +0000 (dc4aeef)
+++ doc/themes/groonga/layout.html 2011-05-22 10:28:55 +0000 (13d8006)
@@ -11,11 +11,15 @@
{% set favicon = "favicon.ico" %}
{% block rootrellink %}
+ <li class="other-languages">
+ <ul class="other-languages">
{%- if language != "en" %}
- <li class="other-language"><a href="{{ pathto('../../en/html/', 1) }}{{ pathto(pagename, 0, '.') }}"><img src="{{ pathto('_static/us.png', 1) }}" alt="英語"></a></li>
+ <li class="other-language"><a href="{{ pathto('../../en/html/', 1) }}{{ pathto(pagename, 0, '.') }}"><img src="{{ pathto('_static/us.png', 1) }}" alt="English"></a></li>
{%- endif %}
{%- if language != "ja" %}
- <li class="other-language"><a href="{{ pathto('../../ja/html/', 1) }}{{ pathto(pagename, 0, '.') }}"><img src="{{ pathto('_static/jp.png', 1) }}" alt="日本語"></a></li>
+ <li class="other-language"><a href="{{ pathto('../../ja/html/', 1) }}{{ pathto(pagename, 0, '.') }}"><img src="{{ pathto('_static/jp.png', 1) }}" alt="日本語"></a></li>
{%- endif %}
+ </ul>
+ </li>
{{ super() }}
{% endblock %}
Modified: doc/themes/groonga/static/groonga.css_t (+12 -1)
===================================================================
--- doc/themes/groonga/static/groonga.css_t 2011-05-22 10:05:31 +0000 (fe4c4ef)
+++ doc/themes/groonga/static/groonga.css_t 2011-05-22 10:28:55 +0000 (0ba1c68)
@@ -11,4 +11,15 @@
@import url("default.css");
-/* -- page layout ----------------------------------------------------------- */
+div.related li.other-languages {
+ position: relative;
+ display: list-item;
+}
+
+div.related li.other-languages ul.other-languages {
+ margin: 0;
+ padding: 0;
+ position: absolute;
+ top: 10px;
+ right: 230px;
+}