Style

papyrus.logic.Style
object Style

Provides CSS style string builders for various visual properties

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Style.type

Members list

Value members

Concrete methods

def backgroundColor(color: ColorString): String

Sets the background color

Sets the background color

Attributes

def border(border: Border): String

Sets a solid black border with uniform width in px

Sets a solid black border with uniform width in px

Attributes

def border(top: Border, right: Border, bottom: Border, left: Border): String

Sets border width for top, right, bottom, and left in px

Sets border width for top, right, bottom, and left in px

Attributes

def font(font: FontFamily): String

Sets the font family

Sets the font family

Attributes

def fontSize(size: FontSize): String

Sets the font size in px

Sets the font size in px

Attributes

def fontStyle(fontStyle: FontStyle): String

Sets the font style ("normal", "italic", etc.)

Sets the font style ("normal", "italic", etc.)

Attributes

def fontWeight(fontWeight: FontWeight): String

Sets the font weight ("normal", "bold", etc.)

Sets the font weight ("normal", "bold", etc.)

Attributes

def height(height: Height): String

Sets element height in px

Sets element height in px

Attributes

def letterSpacing(spacing: LetterSpacing): String

Sets letter spacing in px

Sets letter spacing in px

Attributes

def lineHeight(lineHeight: LineHeight): String

Sets line height

Sets line height

Attributes

def margin(margin: Margin): String

Sets all margins equally in px

Sets all margins equally in px

Attributes

def margin(top: Margin, right: Margin, bottom: Margin, left: Margin): String

Sets margin for top, right, bottom, and left in px

Sets margin for top, right, bottom, and left in px

Attributes

def padding(padding: Padding): String

Sets all paddings equally in px

Sets all paddings equally in px

Attributes

def padding(top: Padding, right: Padding, bottom: Padding, left: Padding): String

Sets padding for top, right, bottom, and left in px

Sets padding for top, right, bottom, and left in px

Attributes

def textAlign(position: Alignment): String

Sets horizontal text alignment ("left", "right", "center", "justify")

Sets horizontal text alignment ("left", "right", "center", "justify")

Attributes

def textColor(color: ColorString): String

Sets the text color

Sets the text color

Attributes

def textDecoration(textDecoration: TextDecoration): String

Sets the text decoration ("underline", "none", etc.)

Sets the text decoration ("underline", "none", etc.)

Attributes

def textTransform(textTransform: TextTransform): String

Applies a text transformation ("uppercase", "lowercase", etc.)

Applies a text transformation ("uppercase", "lowercase", etc.)

Attributes

def width(width: Width): String

Sets element width in px

Sets element width in px

Attributes

def wordSpacing(spacing: WordSpacing): String

Sets word spacing in px

Sets word spacing in px

Attributes