MDL-38923 theme_bootstrapbase: tidied up dock implementation

Also:
* Changed to a CSS based compacting solution
* Converted dock colours to variables
* RTL fixes for the dock
This commit is contained in:
Sam Hemelryk
2014-05-19 08:40:16 +12:00
parent 056b54ff63
commit 6ae3b201cc
11 changed files with 141 additions and 203 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* Customise the dock for this theme.
*/
function customise_dock_for_theme() {
// Add the "block" class to docked blocks.
// This prevents having to restyle all docked blocks and simply use standard block styling.
M.core_dock.on('dock:panelgenerated', function(){
Y.all('.dockeditempanel_content').addClass('block');
});
}