add gadjo-style top-menu

This commit is contained in:
Thomas NOËL 2017-05-21 15:00:41 +02:00
parent 8d147a610b
commit bf84ecbe05
3 changed files with 39 additions and 6 deletions

BIN
images/header-03.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -80,6 +80,10 @@ function sort_table() {
$(function() {
$('.wiki table tr:first-child td').on('click', sort_table).css('cursor', 'row-resize');
/* 440 is header image height (500px) - header height (60px) */
var timestamp = ((new Date().getTime() / 1000) % 86400 ) / (86400 / 440);
$('#top-menu').css('background-position', '0 -' + timestamp + 'px');
if ($('body.controller-issues.action-show').length == 0) {
return;
}
@ -130,4 +134,5 @@ $(function() {
}
}
});
});

View File

@ -29,14 +29,42 @@ body {
}
#top-menu {
font-size: 0.9em;
height: 1.5em;
padding-top: 0.2em;
background-color: #636770; /* #578bb8; */
font-size: 1em;
height: 40px;
padding: 0px;
background: #c2d1cc url(../images/header-03.jpeg);
font-family: sans-serif;
line-height: 40px;
border-bottom: 1px solid #888;
}
#top-menu a { font-weight: normal; }
#top-menu a.my-page, #top-menu a.help { display: none }
#top-menu #loggedas {
color: #fff;
margin: 0;
background-color: black;
padding-left: 1em;
}
#top-menu #account {
margin: 0;
padding-right: 1em;
padding-left: 1em;
height: 40px;
line-height: 40px;
background-color: black;
}
#top-menu a {
color: #000;
font-weight: normal;
text-shadow: 0 0 2px white;
}
#top-menu #account a, #top-menu #loggedas a {
color: #fff;
font-weight: normal;
text-shadow: none;
}
#top-menu > ul {
padding-left: 1em;
}
#top-menu a.help { display: none }
#header {
color: white;