From c788b032ceae8bc6e74466975cbe8d8ea7ece70a Mon Sep 17 00:00:00 2001 From: Bas Brands Date: Tue, 8 Feb 2022 13:05:11 +0100 Subject: [PATCH] MDL-73805 theme_boost: remove left icon margin Reverted from MDL-73543 since it was causing multiple icon alignment issues, Fixed the alignment issue for the recently accessed courses block --- theme/boost/scss/moodle/blocks.scss | 1 + theme/boost/scss/moodle/icons.scss | 2 -- theme/boost/style/moodle.css | 4 ++-- theme/classic/style/moodle.css | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/theme/boost/scss/moodle/blocks.scss b/theme/boost/scss/moodle/blocks.scss index cb7f4e9b198..0ff7415b578 100644 --- a/theme/boost/scss/moodle/blocks.scss +++ b/theme/boost/scss/moodle/blocks.scss @@ -249,6 +249,7 @@ $card-gutter : $card-deck-margin * 2; .block_recentlyaccessedcourses { .paging-bar-container { margin-top: -2.4rem; + padding-right: 0.5rem; justify-content: flex-end; } diff --git a/theme/boost/scss/moodle/icons.scss b/theme/boost/scss/moodle/icons.scss index 4c2dfa5e974..8e8f0bb1b79 100644 --- a/theme/boost/scss/moodle/icons.scss +++ b/theme/boost/scss/moodle/icons.scss @@ -26,12 +26,10 @@ $iconsizes: map-merge(( font-size: $icon-height; width: $icon-width; height: $icon-height; - // vertical-align: middle; margin: 0; padding: 0; box-sizing: content-box; margin-right: 0.5rem; - margin-left: 0.5rem; &.spacer { margin-right: 0; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 05853e3acd0..7b4e284bb3d 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -12235,8 +12235,7 @@ body.dragging .dragging { margin: 0; padding: 0; box-sizing: content-box; - margin-right: 0.5rem; - margin-left: 0.5rem; } + margin-right: 0.5rem; } .icon.spacer { margin-right: 0; } .icon.iconsize-big { @@ -13075,6 +13074,7 @@ body.dragging .dragging { .block_recentlyaccessedcourses .paging-bar-container { margin-top: -2.4rem; + padding-right: 0.5rem; justify-content: flex-end; } @media (max-width: 575.98px) { diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index b9346f43348..5f2dfaa9b96 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -12235,8 +12235,7 @@ body.dragging .dragging { margin: 0; padding: 0; box-sizing: content-box; - margin-right: 0.5rem; - margin-left: 0.5rem; } + margin-right: 0.5rem; } .icon.spacer { margin-right: 0; } .icon.iconsize-big { @@ -13075,6 +13074,7 @@ body.dragging .dragging { .block_recentlyaccessedcourses .paging-bar-container { margin-top: -2.4rem; + padding-right: 0.5rem; justify-content: flex-end; } @media (max-width: 575.98px) {