Zeromax / contao-sb-admin

Contao CMS Backend Theme
GNU Lesser General Public License v3.0
7 stars 0 forks source link

Long input fields in subpalettes not full width #40

Closed agoat closed 8 years ago

agoat commented 8 years ago

If a text input field with the class long (in DCA 'eval'=> array('tl_class'=>'long')) is inside a subpalette than the field is not rendered with full width. This is because in the style.css the selector is set to the direct div.long childs from .tl_box.

.tl_box>div.long,.tl_tbox>div.long {
    width: 97.5%
}

.tl_box>div.long .tl_text,.tl_box>div.long .tl_select,.tl_tbox>div.long .tl_text,.tl_tbox>div.long .tl_select {
    width: 100%
}

But when the field is inside a subpalette (e.g. like in my piwik extension) than the .tl_text input field is another level down. It works when removing the direct child selector to somehting like this:

.tl_box div.long {
    width: 97.5%
}

.tl_box div.long .tl_text, .tl_box div.long .tl_select {
    width: 100%
}

And it´s strange that the selectors exists twice.

Zeromax commented 8 years ago

So can you give me a DCA sample or a HTML sample on how to reproduce?