MDL-62365 Theme Boost: default navigation item to empty
authorBas Brands <bas@moodle.com>
Mon, 14 May 2018 07:08:42 +0000 (09:08 +0200)
committerBas Brands <bas@moodle.com>
Mon, 14 May 2018 07:08:42 +0000 (09:08 +0200)
    - use fa-fw as default navigation item (empty)
    - change indentation for 2nd level dropdown items

lib/classes/output/icon_system_fontawesome.php
theme/boost/classes/output/core_course/management/renderer.php
theme/boost/classes/output/core_renderer.php

index c494d0e..70430d0 100644 (file)
@@ -255,7 +255,7 @@ class icon_system_fontawesome extends icon_system_font {
             'core:i/mnethost' => 'fa-external-link',
             'core:i/moodle_host' => 'fa-graduation-cap',
             'core:i/move_2d' => 'fa-arrows',
-            'core:i/navigationitem' => 'fa-circle-thin',
+            'core:i/navigationitem' => 'fa-fw',
             'core:i/ne_red_mark' => 'fa-remove',
             'core:i/new' => 'fa-bolt',
             'core:i/news' => 'fa-newspaper-o',
index 236de1c..0f00dbe 100644 (file)
@@ -314,7 +314,7 @@ class renderer extends \core_course_management_renderer {
             );
         } else {
             $icon = $this->output->pix_icon(
-                'i/navigationitem',
+                'i/empty',
                 '',
                 'moodle',
                 array('class' => 'tree-icon', 'title' => get_string('showcategory', 'moodle', $text))
index 7ad1bc1..8c850c1 100644 (file)
@@ -678,7 +678,7 @@ class core_renderer extends \core_renderer {
                     $link = new action_link(new moodle_url('#'), $menuitem->text, null, ['disabled' => true], $menuitem->icon);
                 }
                 if ($indent) {
-                    $link->add_class('ml-2');
+                    $link->add_class('ml-4');
                 }
                 if (!empty($menuitem->classes)) {
                     $link->add_class(implode(" ", $menuitem->classes));