Author: rwesten
Date: Tue Jun 26 14:53:47 2012
New Revision: 1354042

URL: http://svn.apache.org/viewvc?rev=1354042&view=rev
Log:
STANBOL-647: added a parent div for logo and navigation to correctly detect the 
screen size

Modified:
    incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css
    incubator/stanbol/site/trunk/templates/skeleton.html

Modified: incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css?rev=1354042&r1=1354041&r2=1354042&view=diff
==============================================================================
--- incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css (original)
+++ incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css Tue Jun 26 
14:53:47 2012
@@ -24,6 +24,12 @@ h1,h2,h3,h4,h5,h6 {
      padding: 0 30px 40px;
      background-color: #fff;
   }
+  #left {
+    top: 0px;
+    padding: 0px 0px 0px 0px;
+    position: fixed;
+    height: 100%;
+  }
   #logo {
     top: 10px;
     color: #333;
@@ -39,7 +45,6 @@ h1,h2,h3,h4,h5,h6 {
     position: fixed;
     top: 111px;
     overflow-y: auto;
-    height: 100%;
   }
 }
 @media print 
@@ -47,6 +52,9 @@ h1,h2,h3,h4,h5,h6 {
   #content {
     background-color: #fff;
   }
+  #left {
+    display: none;
+  }
   #logo {
     display: none;
   }

Modified: incubator/stanbol/site/trunk/templates/skeleton.html
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/templates/skeleton.html?rev=1354042&r1=1354041&r2=1354042&view=diff
==============================================================================
--- incubator/stanbol/site/trunk/templates/skeleton.html (original)
+++ incubator/stanbol/site/trunk/templates/skeleton.html Tue Jun 26 14:53:47 
2012
@@ -38,12 +38,13 @@
 </head>
 
 <body>
-  <div id="logo"> <!-- do not scroll the logo -->
-  <a href="/stanbol/index.html"><img alt="Apache Stanbol" width="220" 
height="101" border="0" 
src="/stanbol/images/stanbol-logo/stanbol-2010-12-14.png"/></a></div>
-  <div id="navigation"> <!-- but auto scroll the menue -->
-  {% filter markdown %}{% include "sidenav.mdtext" %}{% endfilter %}
+  <div id="left"> <!-- just to get the screen size right -->
+      <div id="logo"> <!-- do not scroll the logo -->
+      <a href="/stanbol/index.html"><img alt="Apache Stanbol" width="220" 
height="101" border="0" 
src="/stanbol/images/stanbol-logo/stanbol-2010-12-14.png"/></a></div>
+      <div id="navigation"> <!-- but auto scroll the menue -->
+          {% filter markdown %}{% include "sidenav.mdtext" %}{% endfilter %}
+      </div>
   </div>
-  
   <div id="content">
     <h1 class="title">{% block title %}{{ headers.title }}{% endblock %}</h1>
     {% block content %}{{ content|markdown }}{% endblock %}


Reply via email to