Show
Ignore:
Timestamp:
08/30/2007 01:06:24 AM (15 months ago)
Author:
Shadowhand
Message:

Updated User Guide styles and effects, slightly less annoying now with the loading thingy. I need to sleep.....zz...

Location:
trunk/modules/user_guide/views/user_guide
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/user_guide/views/user_guide/css/layout.php

    r451 r452  
    2222Template Styles 
    2323*/ 
    24 #loading { position: absolute; top: 0; left: 50%; z-index: 9999; width: 12em; margin-left: -6em; padding: 0.5em 2em; background: #fff; border: solid 1 #444; border-top: 0; text-align: center; font-size: 2em; color: #494; } 
    2524#container { position: relative; width: 70%; min-width: 30em; max-width: 60em; margin: 0 auto; } 
    2625#menu { position: absolute; right: -10.1em; width: 10em; padding: 0.2em 0; } 
     
    3736#body ul { list-style: circle; } 
    3837#body li { padding: 0.1em 0; } 
     38#loading { position: absolute; top: 0; right: 0; z-index: 9999; padding: 0.5em 2em; background: #fff; border: solid 0 #aaa; border-width: 0 0 1px 1px; text-align: center; text-transform: uppercase; font-size: 0.7em; } 
     39#loading span { color: #400; } 
    3940/* 
    4041Content Styles 
  • trunk/modules/user_guide/views/user_guide/js/effects.php

    r450 r452  
    22$(document).ready(function(){ 
    33        // Append the AJAX loader 
    4         $('body').append('<div id="loading">&hellip;loading&hellip;</div>'); 
     4        $('#container').append('<div id="loading"><span>&hellip;loading</span></div>'); 
    55        // To prevent extra querying 
    66        Kohana.loading = $('#loading').hide().css('opacity', 0.85); 
     
    3939                // Fetch the current link 
    4040                var link = $(this); 
    41                 // Remove the "lite" class from the active link 
    42                 $('#menu li.active li.lite').removeClass('lite'); 
    4341                // Make AJAX request 
    4442                $.get(link.attr('href'), {ajax: 'true'}, function(data) { 
    4543                        // Add the "lite" class to the current link 
     44                        $('#menu li.active li.lite').removeClass('lite'); 
    4645                        link.parent().addClass('lite'); 
    4746                        // Load new AJAX content 
     
    6362                // If we are waiting for an animation, retry in 5ms 
    6463                if (Kohana.waiting == true) { 
    65                         setTimeout('Kohana.toggleLoading('+on+')', 5); 
     64                        setTimeout('Kohana.toggleLoading('+on+')', 100); 
    6665                        return false; 
    6766                }