Mailinglist Archive: opensuse-wiki (116 mails)

< Previous Next >
Re: [opensuse-wiki] Small CSS issue
  • From: Thomas Schmidt <tschmidt@xxxxxxx>
  • Date: Tue, 25 May 2010 12:45:14 +0200
  • Message-id: <4BFBAA3A.8010207@xxxxxxx>
On 24.05.2010 00:30, Christian Boltz wrote:
Hello,

I noticed a small issue with the CSS at wiki.o.o.

If I reduce the width of the browser window (say: to 800px width), the
main menu moves below the dark bar at the top - even if there is enough
space left to display it.

The search box also moves down, but this is the smaller issue ;-)

The fix is easy:

http://wiki.opensuse.org/skins/bento/css_local/style.css line 5 to 7
contain

#header ul#global-navigation {
width: 650px; /* to get space for advanced search */
}

Changing it to "width: auto" fixes the issue - the menu stays in the
dark bar, and the search box also only moves down if there isn't enough
space in the dark bar left.

BTW: https://static.opensuse.org/themes/bento/css/base.css has
#header ul#global-navigation {
...
width: 700px;
}
so you'll really need the "width: auto;" in style.css.

I'm not sure what the comment "to get space for advanced search" in
style.css means (maybe it refers to 650px vs. 700px), but as far as I
can tell, my change doesn't break anything ;-)

Thanks, I applied your patch, it will get online with the next deployment.

Greetings

--
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development :: Tools
"Don't Panic", Douglas Adams (1952 - 11.05.2001)
--
To unsubscribe, e-mail: opensuse-wiki+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-wiki+help@xxxxxxxxxxxx

< Previous Next >
References