Force MT to save CSS it doesn't support/recognize

Author Posts

oddZilla

Hi,

I’m trying to add an @supports rule to my stylesheet, however MT doesn’t appear to support this and won’t save it. Is there a way to force MT to save it anyway? Or an alternative way to add this rule? I’ve noticed this before with certain other (non at-rule CSS) styles it doesn’t recognize and consequently save.

The @supports rule:

@supports not (aspect-ratio: 16 / 9) { 
  div::before {
    float: left;
    padding-top: 56.25%;
    content: '';
  }
  
  div::after {
    display: block;
    content: '';
    clear: both;
  }
}

Sebastian

Hey,

The code editor to the left of the Font property group only support single selectors. You can’t add other CSS rules like @support, @media, @font-face etc. However, you can add that code via the full code view:

Settings > View > Full code editor

And in a future update, you will be able to add CSS/Sass snippets to folders in the main UI view for adding raw code more freely.

I hope that helps for now.

Cheers,
Sebastian

You must login or register to reply to this topic.