[ckan-changes] commit/ckanext-datano: r... at Rustam-PC.computas.int: Replaced header (logo+menu) with the one we use on drupal.

Bitbucket commits-noreply at bitbucket.org
Sat Jun 18 10:21:41 UTC 2011


1 new changeset in ckanext-datano:

http://bitbucket.org/okfn/ckanext-datano/changeset/aaa925b8d179/
changeset:   aaa925b8d179
user:        r... at Rustam-PC.computas.int
date:        2011-06-18 12:20:32
summary:     Replaced header (logo+menu) with the one we use on drupal.
affected #:  2 files (5.1 KB)

--- a/ckanext/datano/theme/public/css/extra.css	Fri Jun 17 12:15:23 2011 +0200
+++ b/ckanext/datano/theme/public/css/extra.css	Sat Jun 18 12:20:32 2011 +0200
@@ -1,1 +1,198 @@
+#menu {
+    background: url("/sites/all/themes/danland/images/menu_dnn.png") repeat-x scroll 0 0 transparent;
+    height: 35px;
+    margin: 10px auto;
+    width: 943px;
+}
 
+#header-middle {
+    float: left;
+    padding-top: 5px;
+}
+
+#header-first {
+    float: left;
+}
+
+.logo-text {
+    display: inline;
+    color: #336699;
+    font-family: Verdana,Tahoma;
+    font-size: 14px;
+    font-weight: bold;
+    padding-left: 15px;
+    position: relative;
+}
+
+.logo-name {
+    background: url("/sites/all/themes/danland/datano/images/gradient-bak-overskrift.png") no-repeat scroll 0 0 transparent;
+    display: block;
+    font-family: Cambria,"Times New Roman";
+    font-size: 34px;
+    line-height: 50px;
+    padding-left: 15px;
+    padding-top: 0;
+    position: relative;
+}
+.logo-name a {
+    color: #FF6600 !important;
+    font-family: Cambria,"Times New Roman";
+    font-style: normal;
+    font-weight: normal !important;
+}
+
+.logo-name a:hover {
+    text-decoration: none;
+}
+
+.logo IMG {
+    height: 75px;
+}
+
+/*
+a:link {
+    color: #005A8C;
+    font-weight: bold;
+    text-decoration: none;
+}
+
+a:visited {
+    color: #005A8C;
+    font-weight: bold;
+    text-decoration: none;
+}
+
+a:hover {
+    text-decoration: underline;
+}
+*/
+
+#fad-header {
+    color: #000000;
+    font-family: Verdana,Arial,Helvetica,sans-serif;
+    line-height: 1.5em;
+    clear: both;
+    margin: 0 auto;
+    position: relative;
+}
+
+#rounded-menu-left {
+    background: url("/sites/all/themes/danland/images/menu_dnn.png") no-repeat scroll 0 0 transparent;
+    float: left;
+    font-size: 0;
+    height: 35px;
+    line-height: 0;
+    width: 1px;
+}
+
+#rounded-menu-right {
+    background: url("/sites/all/themes/danland/images/menu_dnn.png") no-repeat scroll 0 0 transparent;
+    float: right;
+    font-size: 0;
+    height: 35px;
+    line-height: 0;
+    width: 14px;
+}
+
+#nav {
+    background: url("/sites/all/themes/danland/images/menu_dnn.png") repeat-x scroll 0 0 transparent;
+    float: left;
+    height: 35px;
+}
+
+
+#nav li:first-child {
+    background: url("/sites/all/themes/danland/images/menu_dnn.png") repeat-x scroll 0 0 transparent;
+    float: left;
+    height: 35px;
+    padding: 0 1px 0 0;
+}
+
+
+#nav li {
+    background: url("/sites/all/themes/danland/images/menu_dnn_separator.png") no-repeat scroll left top transparent;
+    float: left;
+    height: 35px;
+    padding: 0 1px 0 0;
+}
+
+#nav li a:hover {
+    color: #FF6600;
+}
+
+/*
+#nav li.active-trail a {
+    color: #FF6600;
+}
+*/
+
+#nav li a {
+    font-family: Arial,Helvetica,sans-serif;
+    color: #000000;
+    display: inline-block;
+    font-size: 12px;
+    font-weight: bold;
+    height: 25px;
+    padding: 7px 29px 0;
+    text-decoration: none;
+}
+
+ul.links {
+    margin: 0;
+    padding: 0;
+}
+
+ul.links li.first {
+    border: medium none;
+}
+
+ul.links li, ul.inline li {
+    background-image: none;
+}
+
+ul.inline li, ul.links li {
+    background: none repeat scroll 0 0 transparent;
+    margin: 0;
+    padding: 0 1em 0 0;
+}
+
+ul.links li {
+    display: inline;
+    list-style-type: none;
+    padding: 0 0.5em;
+}
+
+.links li {
+    margin: 0;
+    padding: 0;
+}
+
+ul.links li, ul.menu li, .item-list ul.links li, li.leaf {
+    background: url("/sites/all/themes/danland/images/menu-leaf.gif") no-repeat scroll 1px 0.35em transparent;
+    list-style-image: none;
+    list-style-type: none;
+    padding: 0 0 0.2em 1.5em;
+}
+
+body {
+    font-size: 84%;
+}
+
+div.header-first {
+ width: 73px;
+}
+
+#top-bar { 
+position: relative;
+top: -130px;
+white-space: nowrap;
+}
+
+#top-bar-login {
+max-width: 200px;
+}
+
+#access {
+position: relative;
+top: -38px;
+}


--- a/ckanext/datano/theme/templates/layout.html	Fri Jun 17 12:15:23 2011 +0200
+++ b/ckanext/datano/theme/templates/layout.html	Sat Jun 18 12:20:32 2011 +0200
@@ -23,7 +23,61 @@
       <a href="${g.site_url}/user/login?oauth_login=1">Login</a></span></py:match>
-  
+
+<!-- ! override header div: add data.norge.no header and tabs -->
+  <py:match path="//div[@id='branding']">
+
+    <div id="fad-header">
+	<div id="header-wrapper">
+		<div id="header-first">
+			<div class="logo">
+				<a title="Hjem" href="/"><img height="50" alt="Hjem" src="${g.site_url}/../sites/all/themes/danland/datano/images/FAD_logo.gif" /></a>
+			</div>
+		</div>
+		<!-- /header-first -->
+		<div id="header-middle">
+			<div class="logo-text">FORNYINGS-, ADMINISTRASJONS- OG KIRKEDEPARTEMENTET</div>
+			<div class="logo-name">
+				<a title="Hjem" href="/">data.norge.no</a>
+			</div>
+		</div>
+	<!-- /header-wrapper -->
+	</div>
+	<div style="clear: both"></div>
+	<div id="menu">
+		<div id="rounded-menu-left"></div>
+		<!-- PRIMARY -->
+		<div id="nav">
+			<ul class="links">
+				<li class="menu-2620"><a title="Hjem" href="/">Hjem</a>
+				</li>
+				<li class="menu-2574"><a title="Data" href="/data">Data</a>
+				</li>
+				<li class="menu-2575"><a title="Apps" href="/apps">Apps</a>
+				</li>
+				<li class="menu-2560"><a title="" href="/blogg">Blogg</a>
+				</li>
+				<li class="menu-2563"><a title="Ideer" href="/ideer">Ideer</a>
+				</li>
+				<li class="menu-2565"><a title="Forespørsler" href="/foresporsler">Forespørsler</a>
+				</li>
+				<li class="menu-1309"><a title="Ressurser" href="/ressurser">Ressurser</a>
+				</li>
+				<li class="menu-2566"><a title="" href="/oppdrag">Oppdrag</a>
+				</li>
+				<li class="menu-548 last"><a title="Om" href="/om">Om</a>
+				</li>
+			</ul>
+		</div>
+		<!-- /primary -->
+		<div id="rounded-menu-right"></div>
+	</div>
+	<div style="clear: both"></div>
+    </div>
+
+  </py:match>
+
+<!-- ! override language links (remove them) --><py:match path="//div[@id='footer-widget-area']/div/ul[4]"><!-- this comment replaces the language selector --></py:match>

Repository URL: https://bitbucket.org/okfn/ckanext-datano/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list