# MD Composer extras

**URL:** https://meta.discourse.org/t/md-composer-extras/118912
**Category:** Theme component
**Created:** [May 28, 2019, 8:08pm UTC](https://meta.discourse.org/t/md-composer-extras/118912 "2019-05-28T20:08:37Z")
**Posts on this page:** 1
**Showing post:** 60

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [April 3, 2024, 1:02pm UTC](https://meta.discourse.org/t/md-composer-extras/118912/60 "2024-04-03T13:02:52Z")

</div>

A `staff` class is applied to the `<body>` element.

So, you can target any buttons like:

```css
body:not(.staff) .d-editor-button-bar {
    /* Hides everything 
     * (visible buttons, including the popup menu button) 
     */
    button, 
    .toolbar-popup-menu-options {
        display: none; 
    }
}

```

```css
body:not(.staff) .d-editor-button-bar {
    /* Hide specific buttons */
    button {    
        /* Inline buttons */
        &.align_justify_button, 
        &.align_right_button 
        /* ... */
        {
            display: none;
        }
        
        /* Popup menu */
        &.toolbar-popup-menu-options {
            [data-name="Float left"],
            /* ... */ {
                display: none;
            }
        }
    }
}

```

Would that help?

On a side-note, you might be interested in this component:

> [@CSS Classes for Current User's Groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068):
>
> discourse2Summary CSS Classes for Current User’s Groups adds the groups that a member is a part of as CSS classes on the \<body\> tag.eyeglassesPreview [Preview on theme-creator.discourse.org](https://discourse.theme-creator.io/theme/Johani/user-groups-css-classes)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-groups-css-classes-in-body](https://github.com/discourse/discourse-groups-css-classes-in-body)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Before: [image] After: [image] Discourse only adds the current us…

---

_[View the full topic](https://meta.discourse.org/t/md-composer-extras/118912)._
