From aa0acf7db045f9ecc734f68fd5e0a9d88f1a7a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Tue, 21 Jan 2025 10:56:14 -0300 Subject: [PATCH] fix: advanced editor styling on library authoring --- .../sass/course-unit-mfe-iframe-bundle.scss | 18 +++++++++++++++- common/templates/xblock_v2/xblock_iframe.html | 21 ++++++++++++------- .../core/djangoapps/xblock/rest_api/views.py | 2 ++ 3 files changed, 32 insertions(+), 9 deletions(-) diff --git a/cms/static/sass/course-unit-mfe-iframe-bundle.scss b/cms/static/sass/course-unit-mfe-iframe-bundle.scss index bc0c3901b147..b3f018a6d7cd 100644 --- a/cms/static/sass/course-unit-mfe-iframe-bundle.scss +++ b/cms/static/sass/course-unit-mfe-iframe-bundle.scss @@ -200,7 +200,7 @@ body { } } - .modal-window.modal-editor { + .modal-window.modal-editor, &.xblock-iframe-content { background-color: $white; border-radius: 6px; @@ -381,6 +381,22 @@ body { .modal-lg.modal-window.confirm.openassessment_modal_window { height: 635px; } + + // Additions for the xblock editor on the Library Authoring + &.xblock-iframe-content .xblock-actions { + padding: ($baseline*0.75) 2% ($baseline/2) 2%; + + .action-item { + @extend %t-action3; + + display: inline-block; + margin-right: ($baseline*0.75); + + &:last-child { + margin-right: 0; + } + } + } } .view-container .content-primary { diff --git a/common/templates/xblock_v2/xblock_iframe.html b/common/templates/xblock_v2/xblock_iframe.html index 07d81b962a65..6bf6b6cd3fa0 100644 --- a/common/templates/xblock_v2/xblock_iframe.html +++ b/common/templates/xblock_v2/xblock_iframe.html @@ -81,8 +81,11 @@ href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> - - + + + + +