From kde-commits Tue Mar 02 21:09:32 2004 From: Christoph Cullmann Date: Tue, 02 Mar 2004 21:09:32 +0000 To: kde-commits Subject: developer.kde.org/media Message-Id: <20040302210932.21ADB996F () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=107826179126804 CVS commit by cullmann: use style for the active secion M +9 -20 includes/classes/menu.inc 1.3 M +15 -14 styles/standard.css 1.2 --- developer.kde.org/media/includes/classes/menu.inc #1.2:1.3 @@ -67,8 +67,6 @@ for($i=0; $i < count($this->items); $i++) { - if ($i == $actives) - $s .= ""; - - $s .= $this->items[$i]->sectionLink (); + + $s .= $this->items[$i]->sectionLink ($actives == $i); if ($i == $actives) @@ -96,17 +94,5 @@ for($i=0; $i < count($this->items); $i++) - { - $s = ""; - - if ($i == $actives) - $s .= ""; - - $s .= $this->items[$i]->sectionLink (); - - if ($i == $actives) - $s .= ""; - - print "
  • ".$s."
  • \n"; - } + print "
  • ".$this->items[$i]->sectionLink ()."
  • \n"; print "\n"; @@ -243,10 +229,13 @@ * generate a link to this section */ - function sectionLink () + function sectionLink ($active = false) { + if ($active) + $s = "id=\"nav_header_sections_active\""; + if ($this->dir == "") - return "".$this->name.""; + return "".$this->name.""; else - return "dir."/\">".$this->name.""; + return "dir."/\">".$this->name.""; } --- developer.kde.org/media/styles/standard.css #1.1:1.2 @@ -28,6 +28,5 @@ text-align: center; margin-top: 10px; - border-top: 1px solid #000000; - background-color: #cfdcfe; + border-top: 1px dashed #000000; } @@ -71,12 +70,17 @@ #nav_header_sections { - position: absolute; - top: 54px; - left: 0px; + position: absolute; + top: 50px; + left: 0px; + margin-left: 84px; + + text-align: left; + vertical-align: middle; + font-size: small; +} - margin-left: 84px; - text-align: left; - vertical-align: middle; - font-size: small; +#nav_header_sections_active { + color: #000000; + font-weight: bold; } @@ -90,8 +94,5 @@ padding-bottom: 0px; - border-left: 1px solid #000000; - border-right: 1px solid #000000; - border-top: 1px solid #000000; - border-bottom: 1px solid #000000; + border: 1px solid #000000; } @@ -103,5 +104,5 @@ color: black; margin-top: 0; -background-color: #cfdcfe; +background-color: #efefef; border-bottom: 1px solid #000000; }