CssBuilder

oxygen.ui.web.create.CssBuilder
See theCssBuilder companion object
sealed abstract class CssBuilder(val key: String)

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object accentColor
object alignContent
object alignItems
object alignSelf
object aspectRatio
object background
object border
object borderBottom
object borderColor
object borderLeft
object borderRadius
object borderRight
object borderSpacing
object borderStyle
object borderTop
object borderWidth
object bottom
object boxShadow
object boxSizing
object caretColor
object clear
object clipPath
object color
object columnGap
object content
object counterReset
object cursor
object direction
object display
object filter
object flex
object flexBasis
object flexDirection
object flexFlow
object flexGrow
object flexShrink
object flexWrap
object float
object fontFamily
object fontSize
object fontStretch
object fontStyle
object fontVariant
object fontWeight
object gap
object grid
object gridArea
object gridAutoFlow
object gridAutoRows
object gridColumn
object gridColumnEnd
object gridRow
object gridRowEnd
object gridRowStart
object gridTemplate
object height
object hyphens
object inset
object insetBlock
object insetBlockEnd
object insetInline
object isolation
object justifyItems
object justifySelf
object left
object letterSpacing
object lineHeight
object listStyle
object listStyleType
object margin
object marginBottom
object marginLeft
object marginRight
object marginTop
object maxHeight
object maxWidth
object minHeight
object minWidth
object objectFit
object opacity
object order
object outline
object outlineColor
object outlineStyle
object outlineWidth
object overflow
object overflowX
object overflowY
object padding
object paddingBottom
object paddingLeft
object paddingRight
object paddingTop
object pointerEvents
object position
object quotes
object resize
object right
object rowGap
object scrollMargin
object scrollPadding
object tabIndex
object textAlign
object textOverflow
object textTransform
object top
object touchAction
object transform
object transition
object unicodeBidi
object userSelect
object verticalAlign
object visibility
object whiteSpace
object width
object willChange
object wordBreak
object wordSpacing
object wordWrap
object zIndex
Show all
Self type

Members list

Type members

Classlikes

abstract class InlinePseudoAttr(pseudoSuffix: String, varSuffix: String)

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object active
object focus
object hover
object hoverActive
object hoverFocus
object dynamic
Show all
object dynamic extends InlinePseudoAttr

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
dynamic.type

Value members

Concrete methods

final def :=(value: String): CSSAttr
final def :=(value: Int): CSSAttr
def csss(strs: String*): CSSAttr
final def inherit: CSSAttr
final def initial: CSSAttr
final def removeInline: CSSAttr

Removes any previously set inline values. Imagine you have a component which sets a borderColor := "red", and you really want to do fragment(borderColor.dynamic := "red", borderColor.dynamic.hover := "green"). Because borderColor := "red" is a const inline style, it will override any of the dynamic styling capabilities.

Removes any previously set inline values. Imagine you have a component which sets a borderColor := "red", and you really want to do fragment(borderColor.dynamic := "red", borderColor.dynamic.hover := "green"). Because borderColor := "red" is a const inline style, it will override any of the dynamic styling capabilities.

imagine you had:

val myComponent: Widget = div(borderColor := "red")

you could do:

myComponent(borderColor.removeInline, borderColor.dynamic := "red", borderColor.dynamic.hover := "green")

this would remove the const borderColor

Attributes

final def revert: CSSAttr
final def revertLayer: CSSAttr
final def unset: CSSAttr