[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: developer.kde.org/media
From: Christoph Cullmann <crossfire () babylon2k ! de>
Date: 2004-03-02 21:09:32
Message-ID: 20040302210932.21ADB996F () office ! kde ! org
[Download RAW message or body]
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 .= "<b>";
-
- $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 .= "<b>";
-
- $s .= $this->items[$i]->sectionLink ();
-
- if ($i == $actives)
- $s .= "</b>";
-
- print "<li>".$s."</li>\n";
- }
+ print "<li>".$this->items[$i]->sectionLink ()."</li>\n";
print "</ul>\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 "<a href=\"/\">".$this->name."</a>";
+ return "<a $s href=\"/\">".$this->name."</a>";
else
- return "<a href=\"/".$this->dir."/\">".$this->name."</a>";
+ return "<a $s href=\"/".$this->dir."/\">".$this->name."</a>";
}
--- 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;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic