From 4a1cd3c7a841dcbeeb6152d74d6d08eca3291883 Mon Sep 17 00:00:00 2001 From: jwollert Date: Fri, 25 Nov 2011 15:42:07 +0100 Subject: [PATCH] adjusts spacing and adds a header in the wiki table of contents --- app/helpers/application_helper.rb | 2 +- config/locales/de.yml | 1 + config/locales/en.yml | 1 + public/stylesheets/application.css | 8 ++++++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b0ab73cff5..27a44a84c4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -723,7 +723,7 @@ module ApplicationHelper div_class = 'toc' div_class << ' right' if $1 == '>' div_class << ' left' if $1 == '<' - out = "
" + out = "
#{l(:label_table_of_content)}
" out << "
  • " root = headings.map(&:first).min current = root diff --git a/config/locales/de.yml b/config/locales/de.yml index ca81eab5fe..60462aabaf 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -800,6 +800,7 @@ de: label_principal_search: "Nach Benutzer oder Gruppe suchen:" label_user_search: "Nach Benutzer suchen:" label_deleted_custom_field: '(gelöschtes benutzerdefiniertes Feld)' + label_table_of_contents: Inhaltsverzeichnis button_login: Anmelden button_submit: OK diff --git a/config/locales/en.yml b/config/locales/en.yml index 775f7bf7ca..0d85635da5 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -814,6 +814,7 @@ en: label_notify_member_plural: Email issue updates label_path_encoding: Path encoding label_deleted_custom_field: '(deleted custom field)' + label_table_of_contents: Table of Contents button_login: Login button_submit: Submit diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index a0acb715d2..e3d17b4c0a 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -306,7 +306,7 @@ fieldset.collapsible.header_collapsible legend { padding-left:0px; width:100%; height:23px; - line-height:23px; + line-height:24px; text-indent:8px; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; @@ -800,6 +800,10 @@ div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: div.wiki ul.toc ul { margin: 0; padding: 0; } div.wiki ul.toc li { list-style-type:none; margin: 0;} div.wiki ul.toc li li { margin-left: 1.5em; } +div.wiki fieldset legend { + font-weight:bold; + font-size:10px; +} div.wiki ul.toc a { font-weight: normal; @@ -1844,7 +1848,7 @@ table.files { display:block; } #content blockquote, .wiki ol, .wiki ul { - padding-left:40px; + padding-left:9px; } .wiki p { margin-bottom:5px;