Better CSS fix for menu bar obscuring the target when following intra-document links.
[arvados.git] / doc / _layouts / default.html
index b9918cffcd0128b517273316262197595c5e1f0f..a7b561031cd215956cc432820f552e01112034b2 100644 (file)
 <html>
   <head>
     <meta charset="utf-8">
-    <title>{{ page.title }}</title>
+    <title>{% unless page.title == "Arvados | Documentation" %} Arvados | Documentation | {% endunless %}{{ page.title }}</title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta name="description" content="">
     <meta name="author" content="">
-    <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap.min.css" rel="stylesheet">
+    <link rel="icon" href="{{ site.baseurl }}/images/favicon.ico" type="image/x-icon">
+    <link rel="shortcut icon" href="{{ site.baseurl }}/images/favicon.ico" type="image/x-icon">
+    <link href="{{ site.baseurl }}/css/bootstrap.css" rel="stylesheet">
     <style>
       body {
-      padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
+      padding-top: 41px;
+      }
+      div.frontpagehero {
+      background: #fff;
+      height: 270px;
+      background-image: url('images/doc-bg.jpg');
+      background-repeat: no-repeat;
+      color: #fff;
+      margin-top:0;
+      margin-left:0;
+      z-index: -1000;
+      opacity: 0.8;
+      }
+      @media (max-width: 979px) {
+      div.frontpagehero {
+      margin-left: -20px;
+      margin-right: -20px;
+      padding-left: 20px;
+      }
+      }
+      .sidebar-nav {
+        padding: 9px 0;
+      }
+      .section-block {
+      background: #eeeeee;
+      padding: 1em;
+      -webkit-border-radius: 12px;
+      -moz-border-radius: 12px;
+      border-radius: 12px;
+      margin: 0 2em;
+      }
+      .row-fluid :first-child .section-block {
+      margin-left: 0;
+      }
+      .row-fluid :last-child .section-block {
+      margin-right: 0;
+      }
+      .rarr {
+      font-size: 1.5em;
+      }
+      .darr {
+      font-size: 4em;
+      text-align: center;
+      margin-bottom: 1em;
+      }
+      .userinput {
+      color: #d14;
+      }
+      :target {
+      padding-top: 41px;
+      margin-top: -41px;
       }
     </style>
-    <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">
+    <link href="{{ site.baseurl }}/css/bootstrap-responsive.min.css" rel="stylesheet">
     <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
     <!--[if lt IE 9]>
         <script src="../assets/js/html5shiv.js"></script>
         <![endif]-->
   </head>
-  <body>
-    <div class="navbar navbar-inverse navbar-fixed-top">
-      <div class="navbar-inner">
-        <div class="container">
-          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-            <span class="icon-bar"></span>
-          </button>
-          <a class="brand" href="{{ site.baseurl }}/">Arvados Docs</a>
-          <div class="nav-collapse collapse">
-            <ul class="nav">
-              <li {% if page.layout == 'userguide' %} class="active" {% endif %}><a href="{{ site.baseurl }}/user/">User</a></li>
-              <li {% if page.layout == 'adminguide' %} class="active" {% endif %}><a href="{{ site.baseurl }}/admin/">Admin</a></li>
-              <li {% if page.layout == 'installguide' %} class="active" {% endif %}><a href="{{ site.baseurl }}/install/">Install</a></li>
-            </ul>
-          </div><!--/.nav-collapse -->
-        </div>
-      </div>
-    </div>
+  <body class="nopad">
+    {% include navbar_top.html %}
+
+    {% if page.navsection == 'top' %}
+    {{ content }}
+    {% else %}
 
-    <div class="container">
+    <div style="height:19px;"></div>
 
-      {% if page.navsection == 'top' %}
-      {{ content }}
-      {% else %}
-      <div class="row">
-        <div class="span3">
-          <ul class="nav nav-tabs nav-stacked affix span3">
-            {% for navorder in (0..100) %}
-            {% for p in site.pages %}
-            {% if p.navsection == page.navsection and p.navorder == navorder %}
-            <li><a href="{{ site.baseurl }}{{ p.url }}" {% if p.url == page.url %} class="active"{% endif %} >{{ p.title }}</a></li>
-            {% endif %}
-            {% endfor %}
-            {% endfor %}
-          </ul>
-        </div>
+    <div class="container-fluid">
+      <div class="row-fluid">
+        {% include navbar_left.html %}
         <div class="span9"><div style="padding-left: 2em;">
           {{ content }}
         </div></div>
       </div>
-      {% endif %}
 
       <div style="height: 2em"></div>
 
     </div>
-    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
-    <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
+    {% endif %}
+    <script src="{{ site.baseurl }}/js/jquery.min.js"></script>
+    <script src="{{ site.baseurl }}/js/bootstrap.min.js"></script>
+    <script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+  ga('create', 'UA-40055979-1', 'arvados.org');
+  ga('send', 'pageview');
+
+    </script>
+
+<p style="text-align: center">
+The content of this documentation is licensed under a
+<a href="https://creativecommons.org/licenses/by-sa/3.0/us/">Creative
+  Commons Attribution-Share Alike 3.0 United States</a> licence.
+</p>
+
   </body>
 </html>