diff --git a/images/header-03.jpeg b/images/header-03.jpeg new file mode 100644 index 0000000..669106e Binary files /dev/null and b/images/header-03.jpeg differ diff --git a/javascripts/theme.js b/javascripts/theme.js index 648a80e..b5af264 100644 --- a/javascripts/theme.js +++ b/javascripts/theme.js @@ -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() { } } }); + }); diff --git a/stylesheets/application.css b/stylesheets/application.css index 35cc59f..c276cb5 100644 --- a/stylesheets/application.css +++ b/stylesheets/application.css @@ -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;