]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Fix broken firefox. Damn you, firefox!
authorAnt Zucaro <azucaro@gmail.com>
Wed, 5 Sep 2012 03:00:08 +0000 (23:00 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 5 Sep 2012 03:00:08 +0000 (23:00 -0400)
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!

xonstat/static/css/img/web_background_2.jpg [new file with mode: 0644]
xonstat/static/css/style.css
xonstat/templates/main_index.mako

diff --git a/xonstat/static/css/img/web_background_2.jpg b/xonstat/static/css/img/web_background_2.jpg
new file mode 100644 (file)
index 0000000..870773f
Binary files /dev/null and b/xonstat/static/css/img/web_background_2.jpg differ
index 0e7ff885bd283acd31a2451f6ebd3aa2b1b7374d..7eac4319d4fa441b5b8ead5ae13b1dd8028a5f59 100755 (executable)
@@ -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 {
index 3b9d4537974ec98684d8b0b741b7766862f6a144..64cca8919bd504bc9bc15976ab51481330c2098a 100644 (file)
@@ -9,7 +9,6 @@ Leaderboard
         <img src="/static/css/img/web_background_l2.png" />
         #####<p id="statline">Tracking <a href="#">12345</a> players, <a href="#">12345</a> games (<a href="#">123</a> duels, <a href="#">123</a> ctfs, <a href="#">123</a> dms), <a href="#">12345</a> servers, and <a href="#">12345</a> maps since November 2011.</p>
         <p id="statline">Tracking Xonotic statistics since October 2011.</p>
-        <p><a class="btn btn-primary btn-large" href="http://www.xonotic.org/download" title="Download Xonotic">Get the game &raquo;</a></p>
       </div>
 </%block>