From 2c00caa15e13e29affa72acf9e7336e327e9ee3f Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 9 Apr 2025 14:11:18 +0200 Subject: [PATCH] STYLE Refactored CSS for user roles, adjusting visibility of elements for editors and authors in the admin interface. --- resources/css/admin-style.css | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/resources/css/admin-style.css b/resources/css/admin-style.css index b6898f5..d7c0b61 100644 --- a/resources/css/admin-style.css +++ b/resources/css/admin-style.css @@ -607,7 +607,7 @@ select[data-enpassusermodified='yes'] { /* ------------------------------------ CUSTOMIZATION BASED ON USER ROLE ------------------------------------*/ - +.role-author, .role-editor, .role-conseiller { #toplevel_page_tm-menu-main, @@ -621,11 +621,8 @@ select[data-enpassusermodified='yes'] { #submitdiv .handle-order-lower, #submitdiv #preview-action, #rank_math_metabox, - li a[href='my-sites.php'] { - @apply !hidden; - } -} -.role-editor { + #menu-tools, + li a[href='my-sites.php'], .rank-math-lock-modified-date, .misc-pub-curtime, .misc-pub-revisions, @@ -645,6 +642,8 @@ select[data-enpassusermodified='yes'] { .row-actions .inline.hide-if-no-js { @apply !hidden; } +} +.role-editor { .post-type-artisans #post-body { @apply !mr-12 2xl:!mr-32 !max-w-screen-2xl; }