From d5addb6e5842926f5b74dcb4b42e07bb1b11e148 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 30 Oct 2012 21:41:26 +0100 Subject: [PATCH] only show CR on hover, made todos, warnings and notes less obstrussive and hid their headings --- .../themes/owncloud/static/style.css | 40 ++++++++++++++----- developer_manual/templates.rst | 5 --- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/_shared_assets/themes/owncloud/static/style.css b/_shared_assets/themes/owncloud/static/style.css index 84f1dc734..92216f9ca 100644 --- a/_shared_assets/themes/owncloud/static/style.css +++ b/_shared_assets/themes/owncloud/static/style.css @@ -96,15 +96,10 @@ ol{list-style:decimal;} li{line-height:18px;} ul.unstyled,ol.unstyled{margin-left:0;list-style:none;} dl{margin-bottom:18px;} -dl:first-child{ - margin-top: 0; -} dt,dd{line-height:18px;} dt{font-weight:bold;line-height:17px;} -dd{margin-left: 0; padding:5px; background: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.15);} .dl-horizontal dt{float:left;clear:left;width:120px;text-align:right;} .dl-horizontal dd{margin-left:130px;} -dl > dt {background-color: #1D2D44; color: #fefefe; padding: 5px; border-top-left-radius: 3px; border-top-right-radius: 3px;}; hr{margin:18px 0;border:0;border-top:1px solid #eeeeee;border-bottom:1px solid #ffffff;} strong{font-weight:bold;} em{font-style:italic;} @@ -1031,6 +1026,11 @@ img.lang-icon{ vertical-align: 0.05em; margin-right: 0.3em; } #menu-about li.current-menu-item a{ color: #404040; font-weight: bold; } img.alignleft{ margin-right: 20px; } + +/** + * Above css is a copy from the main homepage + * The following rules are the changes for documentation + */ .footer { padding-top: 10px; } @@ -1043,6 +1043,7 @@ img.alignleft{ margin-right: 20px; } border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 5px; margin: 15px 0; + padding-top: 15px; } @@ -1050,18 +1051,19 @@ img.alignleft{ margin-right: 20px; } border-bottom: 1px solid rgba(0, 0, 0, 0.15); font-weight: bold; padding: 5px; + display: none; } .admonition .last { - background-position: 10px 10px; + background-position: 15px 5px; background-size: 32px; background-repeat: no-repeat; - padding: 5px 5px 5px 50px; + padding: 0 15px 5px 60px; min-height: 36px; } .admonition .versionchanged, .admonition .versionadded { - padding-left: 50px; + padding-left: 60px; } .admonition-todo .first { @@ -1104,9 +1106,22 @@ img.alignleft{ margin-right: 20px; } background-color: #fefefe !important; } +.section:hover > * > .headerlink { + display: inline-block; +} + + .section:hover > dl > dt > .headerlink { + display: inline-block; + } + +.method:hover .headerlink { + display: inline-block; +} + .headerlink { - color: #dedede; + color: #ccc; margin-left: 5px; + display: none; } tt.file { @@ -1131,6 +1146,13 @@ tt.file:before { padding-left: 0; } + #menu-support > ul ul { + margin-left: 15px; + } + h3 { margin-top: 25px; } + +dd{margin-left: 0; padding:5px; background: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.15);} +dl > dt {background-color: #1D2D44; color: #fefefe; padding: 5px; border-top-left-radius: 3px; border-top-right-radius: 3px;}; diff --git a/developer_manual/templates.rst b/developer_manual/templates.rst index 605179c5d..142b55525 100644 --- a/developer_manual/templates.rst +++ b/developer_manual/templates.rst @@ -1,10 +1,5 @@ Templates ========= - -.. index:: - single: execution; context - - .. sectionauthor:: Bernhard Posselt .. warning::