From 71fa2be9321b512f11e4be0d85d4f401b3313f8e Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Thu, 8 Dec 2016 15:41:04 +0800 Subject: [PATCH] MDL-57114 filemanager: apply btn-sm class to buttons This commit also creates a new css rule to fix the file picker icons misalignment. --- theme/boost/scss/moodle/icons.scss | 5 +++++ .../filemanager_modal_generallayout.mustache | 18 +++++++++--------- .../filemanager_page_generallayout.mustache | 14 +++++++------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/theme/boost/scss/moodle/icons.scss b/theme/boost/scss/moodle/icons.scss index 65b0c5c87fe..0e040c27b42 100644 --- a/theme/boost/scss/moodle/icons.scss +++ b/theme/boost/scss/moodle/icons.scss @@ -61,3 +61,8 @@ span:first-of-type > .icon { [data-action=toggle-drawer] .icon { margin: 0; } + +// Apply in special cases where the default icons styles does not work properly. Eg file picker buttons. +.icon-no-spacing a > .icon { + margin: 0; +} diff --git a/theme/boost/templates/core/filemanager_modal_generallayout.mustache b/theme/boost/templates/core/filemanager_modal_generallayout.mustache index e7f40bab2a7..e3b41e22026 100644 --- a/theme/boost/templates/core/filemanager_modal_generallayout.mustache +++ b/theme/boost/templates/core/filemanager_modal_generallayout.mustache @@ -7,45 +7,45 @@
-
+
diff --git a/theme/boost/templates/core/filemanager_page_generallayout.mustache b/theme/boost/templates/core/filemanager_page_generallayout.mustache index a24fba5675e..15c2223ec36 100644 --- a/theme/boost/templates/core/filemanager_page_generallayout.mustache +++ b/theme/boost/templates/core/filemanager_page_generallayout.mustache @@ -4,20 +4,20 @@ - {{#str}}dndnotsupported_insentence{{/str}}{{{helpicon}}}