j Ulysses Style Sheet Reference

Media

Media classes are used to style image-like contents. To style figure-like images there is a special paragraph style paragraph-figures that is applied to all paragraphs only consisting of images, whitespaces and comments.

Selectors

  • Definitions:

    • media-image

Style Settings

See also: Inline

Setting Type Examples Description
margin-left Length 1em The left margin of the element. (PDF only.)
margin-right Length 1em The right margin of the element. (PDF only.)

Pseudoclasses

See also: Inline

Example

// Set left and right margins for all images
media-image {
	margin-left:   10pt
	margin-right:  10pt
}

// Paragraph style used for all figure-like images
paragraph-figure {
	margin-top:      1em
	margin-bottom:   1em
}