px-code-design
The Predix UI Code module provides styling for code snippets.
Dependencies
The px-code-design
module depends on two other Px modules:
Installation
Install this module and its dependencies using bower:
bower install --save px-code-design
Once installed, @import
into your project's Sass file in its Base layer:
@import "px-code-design/_base.code.scss";
Usage
This flag is available and, if needed, should be set to true
prior to importing the module:
$inuit-enable-code--inline
The following color variables can be customized:
$inuit-code-color
$inuit-code-background
$inuit-code-border-color
Basic usage of the Code object uses a required class:
<figure class="code">
<code>
…
</code>
</figure>
Options
Another, optional class can supplement the required base class. This class is available if the variable flag listed above is set to true
:
code--inline
: style for inline code snippets.
View the full API here