For consistency with archweb. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- web/html/css/containers.css | 8 ++++++ web/template/footer.php | 1 + web/template/header.php | 55 ++++++++++++++++++++++--------------------- 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/web/html/css/containers.css b/web/html/css/containers.css index 977e215..ab1356b 100644 --- a/web/html/css/containers.css +++ b/web/html/css/containers.css @@ -267,3 +267,11 @@ input[type=image] { font-size: 0.9em; font-style: italic; } + +/* scale fonts down to a sane default (16 * .812 = 13px) */ +#content { + margin: 0 auto; + text-align: left; + width: 95%; + font-size: 0.812em; +} diff --git a/web/template/footer.php b/web/template/footer.php index 435de5c..e3497f6 100644 --- a/web/template/footer.php +++ b/web/template/footer.php @@ -5,5 +5,6 @@ echo "<div class=\"pgbox version\">$ver</div>"; } ?> + </div> </body> </html> diff --git a/web/template/header.php b/web/template/header.php index 73486b4..150982a 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -29,34 +29,35 @@ </div> </div><!-- #archnavbar --> - <div id="archdev-navbar"> - <ul> - <li><a href="index.php">AUR <?php print __("Home"); ?></a></li> - <li><a href="account.php"><?php print __("Accounts"); ?></a></li> - <li><a href="packages.php"><?php print __("Packages"); ?></a></li> - <li><a href="http://bugs.archlinux.org/index.php?tasks=all&project=2"><?php print __("Bugs"); ?></a></li> - <li><a href="http://archlinux.org/mailman/listinfo/aur-general"><?php print __("Discussion"); ?></a></li> - <?php if (isset($_COOKIE['AURSID'])): ?> - <?php if (check_user_privileges()): ?><li><a href="tu.php"><?php print __("Trusted User"); ?></a></li><?php endif; ?> - <li><a href="packages.php?SeB=m&K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li> - <li><a href="pkgsubmit.php"><?php print __("Submit"); ?></a></li> - <?php endif; ?> - </ul> - </div><!-- #archdev-navbar --> + <div id="content"> + <div id="archdev-navbar"> + <ul> + <li><a href="index.php">AUR <?php print __("Home"); ?></a></li> + <li><a href="account.php"><?php print __("Accounts"); ?></a></li> + <li><a href="packages.php"><?php print __("Packages"); ?></a></li> + <li><a href="http://bugs.archlinux.org/index.php?tasks=all&project=2"><?php print __("Bugs"); ?></a></li> + <li><a href="http://archlinux.org/mailman/listinfo/aur-general"><?php print __("Discussion"); ?></a></li> + <?php if (isset($_COOKIE['AURSID'])): ?> + <?php if (check_user_privileges()): ?><li><a href="tu.php"><?php print __("Trusted User"); ?></a></li><?php endif; ?> + <li><a href="packages.php?SeB=m&K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li> + <li><a href="pkgsubmit.php"><?php print __("Submit"); ?></a></li> + <?php endif; ?> + </ul> + </div><!-- #archdev-navbar --> - <?php include("login_form.php"); ?> + <?php include("login_form.php"); ?> - <div id="lang_sub"> -<?php -reset($SUPPORTED_LANGS); -foreach ($SUPPORTED_LANGS as $lang => $lang_name) { - print '<a href="' - . htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES) - ."?setlang=$lang\" title=\"$lang_name\">" - . strtolower($lang) . "</a>\n"; -} -?> - </div> - <!-- Start of main content --> + <div id="lang_sub"> + <?php + reset($SUPPORTED_LANGS); + foreach ($SUPPORTED_LANGS as $lang => $lang_name) { + print '<a href="' + . htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES) + ."?setlang=$lang\" title=\"$lang_name\">" + . strtolower($lang) . "</a>\n"; + } + ?> + </div> + <!-- Start of main content --> -- 1.7.7.2