Trumbowyg: Is it possible to add custom class on “trumbowyg-button-group” div?

Created on 16 Jul 2018  ·  3Comments  ·  Source: Alex-D/Trumbowyg

I've trying add custom class to trumbowyg-button-group.

Yes I know it's easy to add though btnsDef using class: attribute to a button. But I need to add to the button group not to the button.

screen shot 2018-07-16 at 4 35 35 pm

Any help would be appreciable.

question

Most helpful comment

Use :nth-child :)

All 3 comments

No option allows that.

What are trying to do?

Umm, I'm actually trying to remove some margin of a ::before inside a trumbowyg-button-group which contains a specific button which has class: trumbowyg-link-button.

Have a look, I'm modifying the style of the buttons:

screen shot 2018-07-17 at 11 23 35 am

I want to remove the margin this ::before:

screen shot 2018-07-17 at 11 19 38 am

Yes, I've tried to write some css to achieve that, like this:

.trumbowyg-button-group > button.trumbowyg-link-button {
  &:before {
    content: none !important;
  }
}

But as far I understand, it is not possible to select parent of pseudo element. So, I think there is the only way to achieve this by putting a custom class on this specific button group.

Use :nth-child :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DirkOlten picture DirkOlten  ·  3Comments

btecu picture btecu  ·  3Comments

MACscr picture MACscr  ·  6Comments

karovska picture karovska  ·  5Comments

dohomi picture dohomi  ·  5Comments