From: Ant Zucaro Date: Wed, 5 Sep 2012 03:00:08 +0000 (-0400) Subject: Fix broken firefox. Damn you, firefox! X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7d82663b49dbd6b8656b6a7d9ce3b95a762fb1a3;p=xonotic%2Fxonstat.git Fix broken firefox. Damn you, firefox! The latest firefox update broke the web borders. This is a workaround. It compresses the main header by removing the "get the game" button (not really needed). This change also swaps out the backgrounds to match xonotic.org and a move of the title accordingly. All in all I think it looks pretty decent! --- diff --git a/xonstat/static/css/img/web_background_2.jpg b/xonstat/static/css/img/web_background_2.jpg new file mode 100644 index 0000000..870773f Binary files /dev/null and b/xonstat/static/css/img/web_background_2.jpg differ diff --git a/xonstat/static/css/style.css b/xonstat/static/css/style.css index 0e7ff88..7eac431 100755 --- a/xonstat/static/css/style.css +++ b/xonstat/static/css/style.css @@ -107,7 +107,7 @@ textarea { } body { background-color: #000000; - background:#000 url('img/web_background.png') 0 0 no-repeat; + background:#000 url('img/web_background_2.jpg') 0 0 no-repeat; background-size: 100%; color: #d0d0d0; font-family: "XoloniumNormal", "Helvetica Neue", Helvetica, Arial, sans-serif; @@ -3356,7 +3356,7 @@ a.thumbnail:hover { color: #ffffff; } .hero-unit { - margin-bottom: 30px; + margin-top: -15px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; @@ -3395,20 +3395,17 @@ a.thumbnail:hover { top: -25px; } #xonborder { - //border-width: 56px 56px 56px; - -moz-border-image: url(img/web_border.png) 85 85 85 stretch; - -webkit-border-image: url(img/web_border.png) 72 85 85 stretch; - -o-border-image: url(img/web_border.png) 96 96 96 stretch; - background-color: #000000; - border-image: url(img/web_border.png) 96 96 96 stretch; - border-width: 40px; - left: -40px; - position: relative; + background: none repeat scroll 0 0 rgba(0, 0, 0, 0.4); + border-radius: 6px 6px 6px 6px; + margin-bottom: 30px; + padding: 20px; } #title { - font-size: 16px; + color: #0088CC; + font-size: 30px; + font-style: italic; + margin-bottom: 15px; position: relative; - top: -35px; text-align: center; } #navsearch { diff --git a/xonstat/templates/main_index.mako b/xonstat/templates/main_index.mako index 3b9d453..64cca89 100644 --- a/xonstat/templates/main_index.mako +++ b/xonstat/templates/main_index.mako @@ -9,7 +9,6 @@ Leaderboard #####

Tracking 12345 players, 12345 games (123 duels, 123 ctfs, 123 dms), 12345 servers, and 12345 maps since November 2011.

Tracking Xonotic statistics since October 2011.

-

Get the game »