From e90083304147e3c1b9278c6e875278f2eb7dd4de Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sat, 6 Aug 2011 13:58:29 +0000 Subject: improved the way tabs are displayed inside the description entry --- h-source/Application/Include/myFunctions.php | 10 +++--- h-source/Application/Views/header.php | 2 +- h-source/Public/Css/main.css | 54 +++++++++++++++++++++++++++- 3 files changed, 59 insertions(+), 7 deletions(-) (limited to 'h-source') diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php index 5603c97..385923a 100644 --- a/h-source/Application/Include/myFunctions.php +++ b/h-source/Application/Include/myFunctions.php @@ -278,8 +278,8 @@ function decodeWikiText($string) function createTabs($match) { $label = Lang::getLabel($match[3]); - Tabs::$tabList[] = "
  • ".$label."
  • \n"; - Tabs::$htmlList[] = "
    ".$match[5]."
    \n"; + Tabs::$tabList[] = "
  • ".$label."
  • \n"; + Tabs::$htmlList[] = "
    ".$match[5]."
    \n"; return null; } @@ -295,17 +295,17 @@ class Tabs if (count(self::$tabList) > 0) { $html .= "
    \n"; - $html .= "\n
    \n"; foreach (self::$htmlList as $content) { $html .= $content; } - $html .= "
    "; + $html .= "
    \n\n"; } return $html; } diff --git a/h-source/Application/Views/header.php b/h-source/Application/Views/header.php index d8cbcbb..af2db37 100644 --- a/h-source/Application/Views/header.php +++ b/h-source/Application/Views/header.php @@ -65,7 +65,7 @@ $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index'; $(document).ready(function() { // $(function() { - $( "#description_tabs" ).tabs(); +// $( "#description_tabs" ).tabs(); // }); }); diff --git a/h-source/Public/Css/main.css b/h-source/Public/Css/main.css index 43c130a..2c2512c 100644 --- a/h-source/Public/Css/main.css +++ b/h-source/Public/Css/main.css @@ -250,7 +250,7 @@ div#right } .notebooks_insert_form { - width:660px; + width:710px; margin-left:10px; } .notebooks_insert_form .entry_label @@ -1868,6 +1868,58 @@ span.entry_label_small /* text-decoration:none; */ font-weight:normal; } + +/*tabs*/ +#description_tabs +{ + margin-top:10px; +} +div#description_tabs_content +{ + clear:left; +/* width:707px; */ +/* padding-left:5px; */ + border:1px solid #DCDCDC; + position:relative; + z-index:1; +} +.description_tabs_page +{ + margin:10px; +} +#description_tabs ul.desc_menu +{ + width:700px; +/* border-bottom:1px solid #DCDCDC; */ +/* overflow:hidden; */ + margin:0px; +/* height:34px; */ + padding:0px; + position:relative; + z-index:4; +/* background-color:red; */ + top:1px; +/* padding-left:10px; */ +} +#description_tabs li.desc_tabs +{ + display:block; + float:left; + width:70px; + text-align:center; + padding:6px 8px; + border:1px solid #DCDCDC; + background-color:#E6E6FA; + position:relative; + margin-right:8px; + z-index:5; +} +#description_tabs li.desc_tabs a +{ +/* text-decoration:none; */ + color:#000; +/* font-weight:bold; */ +} /* Start - temporarily added due to transformation of help pages 2011-05-29 joeko -- cgit v1.2.3