Search Unity

Feature Request CSS Transitions + CSS Shortcuts/Shorthand + Child inheritance

Discussion in 'UI Toolkit' started by Stardog, Jan 18, 2019.

  1. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,913
    Will CSS Transitions be supported?

    Will CSS shorthand, e.g. 'margin: 5, 10, 15, 20' and 'border: 2 2 1 1' be supported.

    Will child elements inherit the CSS such as font/color from uppermost parents, or do we just use the '.class * '?
     
  2. jonathanma_unity

    jonathanma_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    229
    Some CSS shorthands have been introduced for UIElements into 2019.1. This include : margin, padding, border-width and border-radius.

    Another feature coming for 2019.1 is that properties that are inherited will also be applied to child elements so no need for '.class * '.

    Finally, there are no concrete plans for CSS transitions at the moment but it's on our radar.
     
    Mauri likes this.