Commit graph

17 commits

Author SHA1 Message Date
Sam Hemelryk
892e21aadd MDL-36296 block_navigation: consistency fixes
This change fixes a couple of consistency issues in the navigation block.
At the same time it fixes it the CSS for the navigation block as it had
really degraded over the last years.
Notable points about this change:

* Fixed icon display by wrapping content in a span allowing columns to
  be styled.
* Re-wrote the CSS entirely as it could be done much better.
* Fixed inconsistencies between the php and JS for rendering nodes.
2015-02-04 09:04:50 +13:00
Dan Poltawski
03e93abad8 MDL-48277 css: enable duplicate definitions lint rule
And remove duplicates found in code which were detected by this rule
(leaving the last rule defined as this would take precidence).

https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-properties
2014-11-18 22:11:36 +00:00
Frederic Massart
e40bd74620 MDL-36550 usability: CSS updates on course page 2012-11-26 17:00:29 +08:00
Frederic Massart
11f8718780 MDL-36323 usability: Normalising icons used in blocks 2012-11-14 14:07:40 +08:00
Nadav Kavalerchik
b41fc49c26 CSS MDL-26013 Fixed several display bugs when using right to left languages 2011-04-14 15:56:10 +08:00
Sam Hemelryk
553669ae17 navigation MDL-26908 Fixed up positioning of icons for items that are both expandable and have an icon 2011-03-21 10:45:23 +08:00
Sam Hemelryk
48d8d09063 navigation MDL-25596 Improvements for the navigation blocks JS
The biggest change is that the navigation block has been converted to a proper YUI module.
The following are the other changes made at the same time:
 * A loading icon is displayed when a branch is being loaded by AJAX.
 * Fixed a bug where you could trigger multiple AJAX requests by rapidly clicking an unloaded branch.
 * Fixed a bug where empty branches weren't being marked as such after a successful AJAX load.
 * When docked the width of the blocks dock panel is now inspected an increased if required to try avoid horizontal scrolling.
 * Removed the no longer needed inclusion of the YUI2 dom library from the navigation and settings block.
 * Expandable nodes are now passed as JS data allowing the navigation JS to be initialised through block_navigation::get_required_javascript.
 * AJAX is now focused around the branch in question rather than the tree in general.
 * Expansion of branches is now delegated to the tree rather than being an individual event on all branches.
 * Tidied up the code in general removing unneeded-unused parameters.
2010-12-23 11:21:07 +08:00
Sam Hemelryk
c55e1d2945 navigation MDL-25410 Fixed up marking of active item/items and fixed blog links on navigation so they only display for current user. 2010-11-26 06:04:59 +00:00
Sam Hemelryk
006051fda4 theme MDL-24013 Tiding up CSS and JS for IE compatability 2010-08-31 05:40:27 +00:00
Sam Hemelryk
290da00e48 NOBUG minor CSS adjustments for IE6.... grrrr IE6 2010-08-31 04:10:50 +00:00
Sam Hemelryk
ea2bc3599b navigation MDL-23831 Always show activity icons on the navigation 2010-08-17 02:43:09 +00:00
Sam Hemelryk
0310e15f87 navigation MDL-22979 Altered position of expand/collapse icons as asked in the nav/settings blocks 2010-07-23 07:33:51 +00:00
Rossiani Wijaya
43c90b9b0f MDL-22952 (bulk commit) - Fixed bidirectional page problems (right to left) 2010-07-13 09:01:58 +00:00
Sam Hemelryk
a6338a134b themes MDL-22826 Some minor changes to improve the IE user experience 2010-07-07 09:10:10 +00:00
Sam Hemelryk
7081714dc4 navigation MDL-22322 Icons not used for navigation branches and fixed indenting of navigation items 2010-05-05 05:59:57 +00:00
Sam Hemelryk
d24016944f block-navigation MDL-22044 Level 1 branches are no longer indented, and home/myhome link is no longer collapsible. Also fixed the everything bold issue 2010-04-22 07:51:52 +00:00
Sam Hemelryk
3406acdef9 navigation MDL-22044 Major navigation structure changes.
Navigation has now been re-ordered in accordance with http://docs.moodle.org/en/Development:Navigation_2.0_structure.
This has led to several changes in the way in which navigation is generated included API changes, most notably using the
navigation_nodes add method now returns the newly added node rather than the key.
At the same time the global_navigation_tree block has been renamed to navigation and settings_navigation_tree to settings.
2010-04-19 06:30:30 +00:00