diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 583bb2bb..c0d780be 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -12,6 +12,7 @@ // //= require jquery //= require jquery_ujs +//= require bootstrap-sprockets // Stuff in app/assets //= require tracks diff --git a/app/assets/javascripts/tracks_pages.js b/app/assets/javascripts/tracks_pages.js index d70bab20..30889742 100644 --- a/app/assets/javascripts/tracks_pages.js +++ b/app/assets/javascripts/tracks_pages.js @@ -124,18 +124,6 @@ var TracksPages = { }); }, setup_behavior: function () { - /* main menu */ - $('ul.sf-menu').superfish({ - delay: 250, - animation: { - opacity:'show', - height:'show' - }, - autoArrows: false, - dropShadows: false, - speed: 'fast' - }); - /* context menu */ $('ul.sf-item-menu').superfish({ delay: 100, diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index ae721c39..ac16ce79 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -30,6 +30,8 @@ // TODO: remove when dropping the .bootstrap namespace font-size: $font-size-base; line-height: $line-height-base; + + @import "tracks"; } // Hybrid Bootstrap/legacy styles applied to body diff --git a/app/assets/stylesheets/legacy.css.scss b/app/assets/stylesheets/legacy.css.scss index d0b2fe76..aa18bcb6 100644 --- a/app/assets/stylesheets/legacy.css.scss +++ b/app/assets/stylesheets/legacy.css.scss @@ -159,7 +159,7 @@ a.show_successors:hover, a.link_to_successors:hover {background-image: image-url /* Structural divs */ #content { - margin-top: 90px; + margin-top: 70px; } #display_box { @@ -239,78 +239,6 @@ a.show_successors:hover, a.link_to_successors:hover {background-image: image-url z-index:502; } -/* Navigation links at the top */ - -#navcontainer { - position: fixed; - top: 48px; - left: 0px; - a { color: #eee; } - a:hover { color: #ccc; } -} - -#navlist { - margin: 0; - padding: 0 0 20px 5px; - - ul, li { - margin: 0; - padding: 0; - display: inline; - list-style-type: none; - } - - a:link, a:visited { - float: left; - line-height: 14px; - font-weight: bold; - margin: 0 10px 4px 10px; - text-decoration: none; - color: #eee; - } - - a:link#current, a:visited#current, a:hover { - border-bottom: 4px solid #CCC; - padding-bottom: 2px; - background: transparent; - color: #CCC; - } - - a:hover { color: #CCC; } -} - -#topbar { - position: fixed; - top: 0px; - left: 0px; - height: 68px; - margin-bottom: 20px; - clear: both; - background-color: #000; - color: #eee; - width: 100%; - z-index:501; -} - -#date { - float: left; - width: 45%; - padding-left: 15px; - margin-top: 15px; - margin-bottom: 5px; - white-space: nowrap; /* added 2006-05-17 for safari display, timfm */ - - h1 { font-size: 152%; } -} - -#minilinks { - text-align: right; - position: fixed; - right: 15px; - top: 10px; - font-size: 0.9em; -} - .container { padding: 0px 5px 0px 5px; border: 1px solid #999; @@ -362,7 +290,7 @@ div#input_box { width: 265px; margin: 0; padding: 0px 0px 0px 0px; - top: 90px; + top: 70px; right: 40px; } @@ -650,7 +578,7 @@ span.tag a:hover { div#message_holder { position: absolute; - z-index: 502; + z-index: 1502; left: 60%; top: 30px; right: 0px; @@ -754,17 +682,6 @@ The colour of the background gets progressively yellower with age */ background: #ff0; } -/* Shows the number of undone next action */ -.badge { - color: #fff; - background: #f00; - padding: 3px 5px; - font-size: 12pt; - margin: 10px 10px 0px 0px; - height:26px; - border-radius: 2px; -} - ul { list-style-type: none; } diff --git a/app/assets/stylesheets/print.css.scss b/app/assets/stylesheets/print.css.scss index 82043e8b..ed9f79cf 100644 --- a/app/assets/stylesheets/print.css.scss +++ b/app/assets/stylesheets/print.css.scss @@ -16,8 +16,8 @@ img { border:0; } -#navcontainer, #input_box, #footer, .big-box, .refresh, .badge, h1, .icon, -#minilinks, .defer-container, .menu_sort, .position, .buttons, .sf-item-menu, +#input_box, #footer, .big-box, .refresh, .badge, h1, .icon, +.defer-container, .menu_sort, .position, .buttons, .sf-item-menu, .container_toggle, .grip, .show_notes, .recurring_icon, #project-next-prev, .project_settings, .link_in_container_header { display:none; diff --git a/app/assets/stylesheets/tracks.css.scss b/app/assets/stylesheets/tracks.css.scss new file mode 100644 index 00000000..41b3edef --- /dev/null +++ b/app/assets/stylesheets/tracks.css.scss @@ -0,0 +1,12 @@ +.navbar { + /* Shows the number of undone next action */ + .badge { + color: #fff; + background: #f00; + display: inline; + padding: 3px 5px; + font-size: 12pt; + height:26px; + border-radius: 2px; + } +} diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f710ed0a..916561ed 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -33,72 +33,18 @@
-