Dear Ralph,
On 11/23/2010 06:00 AM, Ralph Angenendt wrote:
Am 22.11.10 22:25, schrieb Marcus Moeller:
Dear Ralph,
<http://wiki.dev.centos.org/> to your liking? I like it :)
Looks fine so far. Only the CSS of the top menu is a bit broken.
Where exactly? I ripped out an ad which crept into there, but that is
the same solution we have on the original, too.
I now realize that CentOS have customized the Modern theme quite a bit.
Please find attached a patch against CentOS' screen.css. The CSS
declarations for ".navibar" and "#langbar" are now shared to ease future
maintenance. The broken top menu should also be fixed.
The patch was made against
http://wiki.centos.org/wiki/modern-CentOS/css/screen.css
Regards,
Timothy
--- screen.css.orig 2010-11-23 09:25:42.000000000 +0800
+++ screen.css 2010-11-23 09:32:08.000000000 +0800
@@ -280,10 +280,13 @@
}
.navibar {
+ clear: both;
+ }
+
+.navibar, #langbar {
/* Problem: clear: right; aligns nicely right of
* logo, but lets it float high in the header,
* disconnected from ground */
- clear: both;
display: block;
height: 20px;
padding: 0;
@@ -296,8 +299,17 @@
zoom: 1;
}
+#langbar {
+ margin-top: -20px;
+ padding-right: 3px;
+ }
+
.navibar li {
float: left;
+ }
+
+.navibar li, #langbar li {
+ float: left;
display: inline;
white-space: nowrap;
margin-left: 3px;
@@ -312,11 +324,19 @@
background-repeat: repeat-x;
}
+#langbar li {
+ float: right;
+ }
+
*[dir="rtl"] .navibar li {
float: right;
}
-.navibar li.wikilink {
+*[dir="rtl"] #langbar li {
+ float: left;
+ }
+
+.navibar li.wikilink, #langbar li.wikilink {
/*background: #3967a3; /*url(../img/tab-wiki.png) repeat-x;*/
}
@@ -324,14 +344,14 @@
/*background: #E6EAF0; /*url(../img/tab-user.png) repeat-x;*/
}
-.navibar li a {
+.navibar li a, #langbar li a {
/* To cover the box area as linkable */
padding: 8px;
padding-top: 4px;
padding-bottom: 5px;
}
-.navibar a, .navibar a:visited {
+.navibar a, .navibar a:visited, #langbar a, #langbar a:visited {
color: #204C8D;
text-decoration: none;
}
@@ -342,14 +362,14 @@
font-weight: bold;
}
-.navibar li:hover {
+.navibar li:hover, #langbar li:hover {
background-color: #628ECA;
background-image: url("../img/moin-navibartop-hover-bg.png");
background-position: left top;
background-repeat: repeat-x;
}
-.navibar li:hover a {
+.navibar li:hover a, #langbar li:hover a {
color: #FFFFFF;
text-decoration: none;
}
@@ -368,6 +388,7 @@
background-repeat: repeat-x;
}
+
.pageline {
clear: both;
margin: 0;
_______________________________________________
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs