This file has been created as a style and reference guide for ux theming in Niagara. Please open this file in a browser and text editor so you can see what classes are being applied to which elements.
Load a theme:
.ux-fg
.ux-bg
.ux-disabled
.ux-highlight
.ux-shadow
.ux-shadow-inset
.ux-select-none
.ux-font-family-sans-serif (since Niagara 4.9)
sans-serif font family and let the browser choose.
.ux-font-family-serif (since Niagara 4.9)
serif font family and let the browser choose.
.ux-font-family-monospace (since Niagara 4.9)
monospace font family and let the browser choose.
.ux-window
.ux-container
.ux-fullscreen-support
Apply this class to a container element to declare it as supporting a fullscreen layout. This means that its content should expand to fill the entire container, rather than laying out dynamically.
One example of this is the Shell Hx Profile: the root element receives
the ux-fullscreen-support class, so the entire UI always
expands to fill the browser screen.
Another example would be a user-resizable window: as the user resizes the window, the content would always resize itself to fill the entire window.
I have the ux-fullscreen class.
Because my parent container has the
ux-fullscreen-support class, I will expand to fill
the entire element.
I have the ux-fullscreen class.
But my parent does not have ux-fullscreen-support, so
I will lay myself out dynamically.
.ux-fullscreen
.ux-fixed-header, .ux-body
Use the ux-fixed-header and ux-body classes
inside of a ux-fullscreen element to allow the body content
to scroll without scrolling the header.
You will need to determine the height of the header element and apply
the corresponding margin-top to the ux-body
element.
ux-fixed-header class.
My height is 4em.
I am the content body, with the ux-body class. My
margin-top is 4em.
My content is very tall, but you can scroll me independently of the header.
.ux-body
ux-fixed-header.
.ux-tab-bar
.ux-tb
.ux-border
.ux-border-top
.ux-border-right
.ux-border-bottom
.ux-border-left
.ux-btn
Use this class to make a
It can include an or an icon only:
It supports
It supports hyperlinks.
For proper alignment, wrap the contents in a span or other
element rather than an unwrapped text node.
.ux-btn-tb
Use this class to make a
It can include an or an icon only:
It supports
For proper alignment, wrap the contents in a span or other
element rather than an unwrapped text node.
.ux-btn-tb-group
Use this class to group a number of together.
.ux-toggled
.ux-select
ux-select and ux-option classes to
apply bajaux styling to a
.
.ux-option
ux-select.
.ux-table
Use this class to apply bajaux styling to a table element.
Will not do much without the corresponding header, row, and footer
classes.
| cell 1 | cell 2 |
| cell 3 | cell 4 |
.ux-table-head
Use this class to apply bajaux styling to a table header.
| header 1 | header 2 |
|---|
.ux-table-row
Use this class to apply bajaux styling to a table row. Note that rows have alternating background colors by default (can be turned off using the no-stripe class on the ux-table).
| cell 1 | cell 2 |
| cell 3 | cell 4 |
| cell 5 | cell 6 |
| cell 7 | cell 8 |
.no-stripe
Add the ux-table and no-stripe classes to
a table to remove the alternating background colors from
ux-table-rows.
| row 1 |
| row 2 |
| row 3 |
| row 4 |
.ux-table-foot
Use this class to apply bajaux styling to a table footer.
| footer 1 | footer 2 |
.ux-progress-bar
Use this class to apply styling to the progress bar used by the bajaux job bar.
| Column 1 | Column 2 |
|---|---|
| Some data | Some more data |
| Some data2 | Some more data2 |
| Some data3 | Some more data3 |
| Some data4 | Some more data4 |
| Some more data5 | |
| Some data6 | Some more data6 |
| This is a table footer. | |