Styled
An abstract base class for a document node that has styling applied to it and/or its content.
This class is very similar to the Math
abstract base class but has styleLanguage
instead
of mathLanguage
and compiled css
instead of mathml
.
Note also that styleLanguage
is optional.
This type is marked as unstable and is subject to change.
Properties
The Styled
type has these properties:
Name | Description | Type | Inherited from | JSON-LD @id |
Aliases |
---|---|---|---|---|---|
id |
The identifier for this item. | String |
Entity |
schema:id |
- |
code |
The code of the equation in the styleLanguage . |
Cord |
- | stencila:code |
- |
styleLanguage |
The language used for the style specification e.g. css, tw | String |
- | stencila:styleLanguage |
style-language , style_language |
authors |
The authors of the code and content in the styled node. | Author * |
- | schema:author |
author |
provenance |
A summary of the provenance of the code and content in the styed node. | ProvenanceCount * |
- | stencila:provenance |
- |
compilationDigest |
A digest of the code and styleLanguage . |
CompilationDigest |
- | stencila:compilationDigest |
compilation-digest , compilation_digest |
compilationMessages |
Messages generated while parsing and transpiling the style. | CompilationMessage * |
- | stencila:compilationMessages |
compilation-messages , compilation_messages , compilationMessage , compilation-message , compilation_message |
css |
A Cascading Style Sheet (CSS) transpiled from the code property. |
String |
- | stencila:css |
- |
classList |
A space separated list of class names associated with the node. | String |
- | stencila:classList |
class-list , class_list |
Related
The Styled
type is related to these types:
- Parents:
Entity
- Children:
StyledBlock
,StyledInline
Bindings
The Styled
type is represented in:
- JSON-LD
- JSON Schema
- Python class
Styled
- Rust struct
Styled
- TypeScript class
Styled
Source
This documentation was generated from Styled.yaml
by docs_types.rs
.