nicer header line display

- all items levelled in one line
- flags better centered in msie and in firefox
- removed three white pixel lines (line 0-2) in firefox
- all flags shown with a bit shadow, instead of only spain [and sweden]
- nicer display of "logged in as <user>"
- all labels in the same font instead of two fonts
- smoother gradient background, espacially in winter

Still not optimally vertical centered in chrome

also fixed print css for some earlier changes to screen css
This commit is contained in:
following
2013-02-27 03:11:00 +01:00
parent eb6ac249f4
commit f9e2dfa9fd
33 changed files with 114 additions and 106 deletions
+17 -24
View File
@@ -99,31 +99,24 @@
<body>
<div id="overall">
<div id="langstripe">
<div id="langstripe">
<!-- Navigation Level 1 -->
<div class="nav1-container">
<div class="nav1" style="text-align: right; margin-right: 20px;">
{loginbox}
</div>
</div>
<div class="navflag">
<ul>
<li><strong>{t}Language:{/t}</strong></li>
<table class="nav1" cellspacing=0>
<tr>
<td width="100%">
&nbsp; {loginbox}
</td>
<td><strong>{t}Language:{/t}&nbsp;</strong></td>
<td>
<?php
$nbsp = "";
foreach ($opt['template']['locales'] AS $k => $lang)
{
if ($lang['show'] == true)
echo '<li>' . $nbsp . '<a style="text-decoration: none;" href="index.php?locale=' . $k . '"><img src="' . $lang['flag'] . '" alt="' . $lang['name'] . '" width="24px" height="24px" /></a></li>';
// insert space between flags to match search.php layout with other pages (see RT ticket #4505);
// reason of different flag spacing is unknown
$nbsp = "&nbsp;";
}
echo '<a style="text-decoration: none;" href="index.php?locale=' . $k . '"><img src="' . $lang['flag'] . '" alt="' . $lang['name'] . '" width="24px" height="18px" /></a> ';
?>
<li>&nbsp;&nbsp;&nbsp;&nbsp;<strong>{t}Country:{/t}</strong></li>
<li>
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;<strong>{t}Country:{/t}&nbsp;</strong></td>
<td>
<select id="usercountry" onclick="javascript:usercountry_change()">
<?php
global $tpl_usercountries;
@@ -148,11 +141,11 @@
echo '<option value="' . htmlspecialchars($tpl_usercountries[$i]['country'], ENT_COMPAT, 'UTF-8') . '"' . (($sUserCountry==$tpl_usercountries[$i]['country']) ? ' selected="selected"' : '') . '>' . htmlspecialchars($tpl_usercountries[$i]['name'], ENT_COMPAT, 'UTF-8') . '</option>';
}
?>
</select>
</li>
</ul>
</div>
</div>
</select>&nbsp;
</td>
</tr>
</table>
</div>
<div class="page-container-1" style="position: relative;">
<div id="bg1">&nbsp;</div>
<div id="bg2">&nbsp;</div>