From 60ff24c0f1626b73b2b51a0fea49e0a7b43196b6 Mon Sep 17 00:00:00 2001 From: Ryan Wyllie Date: Mon, 28 Nov 2016 03:18:48 +0000 Subject: [PATCH] MDL-57158 theme: fix icon margin in action menus --- theme/boost/scss/moodle/icons.scss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/theme/boost/scss/moodle/icons.scss b/theme/boost/scss/moodle/icons.scss index 14a2042620e..34aaeff9c72 100644 --- a/theme/boost/scss/moodle/icons.scss +++ b/theme/boost/scss/moodle/icons.scss @@ -14,6 +14,12 @@ a:first-of-type > .icon { margin-left: 0.5rem; } +// Fix the first icon for an action menu. This rule exists to reverse the +// icon margin defined in the a:first-of-type > .icon rule. +.action-menu .dropdown a:first-of-type > .icon { + margin-left: 0; +} + .pull-xs-right { .icon { margin-right: 0; @@ -21,11 +27,6 @@ a:first-of-type > .icon { } } -// Fix the cog icon for an action menu. -.action-menu > .dropdown .icon { - margin-left: 0; -} - // Fix the space between the dropdown icon and the caret. .action-menu { .dropdown-toggle {