abstract class Inline extends Base with Mixin
An inline stylesheet has the following properties:
- Intent is to create styles that can be applied directly to HTML in Scala/Scala.JS.
- Each style is stored in a
val
of typeStyleA
. - Styles are applied to HTML by setting the
class
attribute of the HTML to the class(es) in aStyleA
. - Style class names / CSS selectors are automatically generated.
- All style types (StyleS, StyleF) are usable.
- Alphabetic
- By Inheritance
- Inline
- Mixin
- Base
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
MFontFace
extends DslMacros.MFontFace
- Attributes
- protected
-
class
MKStyle
extends DslMacros.MStyle
- Attributes
- protected
-
class
MKeyframes
extends DslMacros.MKeyframes
- Attributes
- protected
-
class
MStyle
extends DslMacros.MStyle
- Attributes
- protected
-
class
MStyleF
extends DslMacros.MStyleF
- Attributes
- protected
Value Members
-
object
dsl
extends DslBase
- Attributes
- protected
- Definition Classes
- Base
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
&: Cond
- Attributes
- protected
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def __macroFontFace: MFontFace
- def __macroKeyframe: MKStyle
- def __macroKeyframes(name: String): MKeyframes
- def __macroStyle(name: String): MStyle
- def __macroStyleF(name: String): MStyleF
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
implicit
val
classNameHint: ClassNameHint
- Attributes
- protected
- Definition Classes
- Base
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
css(implicit env: Env): Css
- Definition Classes
- Base
- implicit val cssRegister: Register
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fontFace: DslMacros.MFontFace
- Attributes
- protected
- Definition Classes
- Mixin
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
initInnerObjects(a: StyleA*): Unit
Objects in Scala are lazy.
Objects in Scala are lazy. If you put styles in inner objects you need to make sure they're initialised before your styles are rendered. To do so, call this at the end of your stylesheet with one style from each inner object.
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
keyframe: DslMacros.MStyle
- Attributes
- protected
- Definition Classes
- Mixin
-
final macro
def
keyframes: DslMacros.MKeyframes
- Attributes
- protected
- Definition Classes
- Mixin
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
render[Out](implicit r: Renderer[Out], env: Env): Out
Render registered styles into some format, usually a String of plain CSS.
Render registered styles into some format, usually a String of plain CSS.
- env
The target environment in which the styles are to be used. Allows customisation of required CSS.
- Definition Classes
- Base
-
final
def
renderA[Out](implicit r: Renderer[Out]): Out
Render registered styles into some format, usually a String of plain CSS.
-
final macro
def
style: DslMacros.MStyle
- Attributes
- protected
- Definition Classes
- Mixin
-
final macro
def
styleF: DslMacros.MStyleF
- Attributes
- protected
- Definition Classes
- Mixin
-
final
def
styles: Vector[StyleA]
- Definition Classes
- Base
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )