community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1664158 - in /comdev/reporter.apache.org/site: index.html render.js
Date Wed, 04 Mar 2015 21:42:56 GMT
Author: humbedooh
Date: Wed Mar  4 21:42:56 2015
New Revision: 1664158

URL: http://svn.apache.org/r1664158
Log:
better resizing for smaller screens (<= 720p)

Modified:
    comdev/reporter.apache.org/site/index.html
    comdev/reporter.apache.org/site/render.js

Modified: comdev/reporter.apache.org/site/index.html
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/index.html?rev=1664158&r1=1664157&r2=1664158&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/index.html (original)
+++ comdev/reporter.apache.org/site/index.html Wed Mar  4 21:42:56 2015
@@ -72,7 +72,11 @@
       background: linear-gradient(to bottom, #b7deed 0%,#71ceef 50%,#21b4e2 51%,#b7deed 100%);
       z-index: 3;
     }
+    #contents {
+      height: calc(100% - 200px)
+    }
     
+   
     #tabcontents {
       background: #fff;
       padding: 2em;
@@ -91,6 +95,22 @@
       text-align: center;
       width: 100%;
     }
+    
+    @media only screen and (max-height: 680px) {
+      #footer {
+        display: none;
+      }
+      
+      h2 {
+        font-size: 18px;
+        font-weight: bold;
+        margin: 5px;
+      }
+      #contents {
+        height: calc(100% - 120px);
+      }
+    }
+    
    </style>
    <title>Apache Project Report Helper</title>
 </head>

Modified: comdev/reporter.apache.org/site/render.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/render.js?rev=1664158&r1=1664157&r2=1664158&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/render.js (original)
+++ comdev/reporter.apache.org/site/render.js Wed Mar  4 21:42:56 2015
@@ -160,8 +160,7 @@ function addLine(pmc, line) {
 function renderFrontPage(json) {
     jsdata = json
     var container = document.getElementById('contents')
-	container.style.height = "calc(100% - 200px)"
-    container.innerHTML = "<h2 style='text-align: center; margin-bottom: 10px;'>Apache
Project Report Helper</h2>Click on a project name to view statistics:"
+    container.innerHTML = "<h2 style='text-align: center; margin-bottom: 10px;' class='hide-for-small-only'>Apache
Project Report Helper</h2>Click on a project name to view statistics:"
     var top = document.createElement('div');
     container.appendChild(top)
     



Mime
View raw message