styling attribute supported by many App Studio markup tags.
Global styles
These styles can be applied to any element.Flex utilities
stretch-content: Uses flex box to stretch the child content
See thegridandpanelexamples in the gallery.stretch-row: Same as stretch-content but with auto height for use with rowscenter-content: Center child content vertically and horizontally
See thegridandpanelexamples in the gallery.flex-nowrap: Prevent flex wrappingflex-grow: Flex grow an element
Width utilities
width-1: 100%width-2-3: 66%width-1-2: 50%width-1-3: 33%width-1-4: 25%
Display utilities
inline-centerblockinlineinline-blockpull-left: float left
See thebuttonexample in the gallery.pull-right: float right
See thebuttonexample in the gallery.floated left: float element leftfloated right: float element rightborder: Add 1px border to elementborder right: Add 1px right border to elementborder left: Add 1px left border to elementborder bottom: Add 1px bottom border to elementborder top: Add 1px top border to elementcentercontent: adds padding that pushes in from page edges.centercontent-inner: adds borders and box-shadows etc. - should be used insidecentercontentcentercontent-inner-shadow: Same as centercontent but with a drop shadowfade: Fades out an element, add the class in to fade back inbg-stretch: Stretch a background image to the full element height and width
Headers
header header-fixed: position fixed headerheader header-shadow: header with drop shadowheader header-gradient: header with gradientheader header-border
Sizes
xs: Make the font-size the smallest - also works for making most elements smallersmmdlgxlbreak-text-all: Make text wrap mid wordbreak-text-normal: Text wraps at best fit
Border radius
border-radius: Adds rounded cornersborder-radius-top-left: Adds rounder corner to top leftborder-radius-top-rightborder-radius-bottom-leftborder-radius-bottom-right
Typography
text-centertext-righttext-leftcapitalizeuppercaselowercase
Colors
See these colors in the gallery.bg-lgrey: Light grey backgroundbg-mgreybg-dgreybg-charcoalbg-blackbg-whitetext-white: White textbg-lbgreybg-mbgreybg-dbgreybg-bluebg-sbluebg-yellowbg-orangebg-redbg-pinkbg-purplebg-greenbg-primarybg-primary-lightbg-primary-darkbg-primary-contrasttext-primarytext-primary-contrastbg-secondarybg-secondary-lightbg-secondary-darkbg-secondary-contrasttext-secondarytext-secondary-lighttext-secondary-darktext-secondary-contrastbg-tertiarybg-tertiary-lightbg-tertiary-darkbg-tertiary-contrasttext-tertiarytext-tertiary-lighttext-tertiary-darktext-tertiary-contrastbg-raspberrybg-raspberry-lightbg-raspberry-darktext-raspberrytext-raspberry-lighttext-raspberry-darkbg-strawberrybg-strawberry-lightbg-strawberry-darktext-strawberrytext-strawberry-lighttext-strawberry-darkbg-carrotbg-carrot-lightbg-carrot-darktext-carrottext-carrot-lighttext-carrot-darkbg-pumpkinbg-pumpkin-lightbg-pumpkin-darktext-pumpkintext-pumpkin-lighttext-pumpkin-darkbg-sunflower-lightbg-sunflowerbg-sunflower-darktext-sunflowertext-sunflower-lighttext-sunflower-darkbg-leafbg-leaf-lightbg-leaf-darktext-leaftext-leaf-lighttext-leaf-darkbg-grassbg-grass-lightbg-grass-darktext-grasstext-grass-lighttext-grass-darkbg-emeraldbg-emerald-lightbg-emerald-darktext-emeraldtext-emerald-lighttext-emerald-darkbg-mintbg-mint-lightbg-mint-darktext-minttext-mint-lighttext-mint-darkbg-aquabg-aqua-lightbg-aqua-darktext-aquatext-aqua-lighttext-aqua-darkbg-skybg-sky-lightbg-sky-darktext-skytext-sky-lighttext-sky-darkbg-royalbg-royal-lightbg-royal-darktext-royaltext-royal-lighttext-royal-darkbg-lavenderbg-lavender-lightbg-lavender-darktext-lavendertext-lavender-lighttext-lavender-darkbg-pinkbg-pink-lightbg-pink-darktext-pinktext-pink-lighttext-pink-darkbg-paperbg-paper-lightbg-paper-darktext-papertext-paper-lighttext-paper-darkbg-concretebg-concrete-lightbg-concrete-darktext-concretetext-concrete-lighttext-concrete-darkbg-asphaltbg-asphalt-lightbg-asphalt-darktext-asphalttext-asphalt-lighttext-asphalt-darkbg-duckeggbg-duckegg-lightbg-duckegg-darktext-duckeggtext-duckegg-lighttext-duckegg-darkbg-depth-dbluetext-depth-dbluebg-depth-lbluetext-depth-lblue
Switches
Usage:-
checkbox-switch: Default switch
Add styles to label: -
square -
flat
Switch colors
Also added to the labelpositivenegativewarninginfosecondarytertiary
Right-hand-side panel
Adds a wikipedia-esque smart panelrhspanelrhspanel-shadow
Tooltips
tooltip: Adds a tooltip using the aria-label attribute for the tooltip contenttooltip-top-left: Position tooltiptooltip-top-righttooltip-toptooltip-bottom-lefttooltip-bottom-righttooltip-bottomtooltip-lefttooltip-righttooltip-toptooltip-smalltooltip-mediumtooltip-largetooltip-errortooltip-warningtooltip-infotooltip-successtooltip-always: The tooltip is always showntooltip-rounded: Rounded cornerstooltip-no-animatetooltip-bounce
Hero banner
This style is useful for landing pages.hero-banner
Label
label
Buttons
button: Default buttonbutton-hover: Hover state always activebutton-secondary: Secondary colorbutton-greenbutton-bluebutton-whitebutton-disabledbutton-hiddenblock: Full width
Forms
checkboxradioinput-rounded: Applies only to inputsgroup: Form input groupform-stacked: Stacked form - should be applied to the formform-alignedlabelled-input: Labelled input e.g. an input with a dollar sign attached as a prefixlabelled-input label-right: Labelled input e.g. an input with a percentage sign attached as a suffixstyled-checkbox: CSS checkbox - should be applied to a checkbox input with a label as the next sibling
Lists
These styles can be applied to ordered (ol) or unordered (ul) HTML elements.
stripedlined
Grid utilities
hide-xs: Hide on XS size screensshow-xs: Show on XS size screensshow-smshow-mdshow-lgshow-xlshow-xshide-xshide-smshow-smhide-mdshow-mdhide-lgshow-lghide-xlshow-xl
Component styles
These styles can be applied to specific tags.Field styles
Styles for thesearch:field tag:
titleurllabel-leftlabel-left-alwayslabel-inlinelabel-abovedescriptionimage-top
Image
Styles for themedia:image tag:
square-cropcircle-crop
Facet
This style can be applied to thesearch:facet tag:
switches: Render switches instead of checkboxes.
Unlike the default checkboxes, only one switch can be selected at a time.
Facet list
Styles forsearch:facet-list tag:
shadowshadow-farrecessedstepsimplewrappedheaderhidemetadataindented
Search tabs and nav bars
These styles are for thesearch:tabs tag.
navbar: Navbar stylenavbar navbar-shadownavbar navbar-centerednavbar navbar-tabs: Tab style of navbarnavbar navbar-light: Light versiontabs: Tabs style
Comment list
Styles for thecollaborate:comment-list tag:
hide-avatars: Hides the comment avatars
Pagination
Styles forsearch:pagination tag.
pagination-wrapper-left: Align leftpagination-wrapper-centerpagination-wrapper-right
Alert box
Styles forsearch:alert tag.
alertbox: Style element as an alert boxalertbox-secondary: Secondary coloralertbox-positivealertbox-negativealertbox-warningalertbox-info
Interruptors
Apply to any element or use theblock:interruptor tag.
interruptor: Style element as an attention grabber
See themessageexample in the gallery.
Scroll to
Styles for thewidget:scroll-to tag:
bottom-left: Position bottom left of the pagebottom-rightbottom-center
Toggle panes
Styles to be used like:toggle:controls.
tabs-shadow: Adds shadow to tabscollapsible: Allows tabs to be collapsed by clicking the active tabpill: Pill stylelinesimplebordered
Cards
basic-card: Basic card stylecard: Default card style
Card results
The card widths are auto-generated. By default a maximum of 6 result cards can be shown on one row. By setting@maxCardsPerRow this can be increased or decreased.
On a search:result-list add the card styling in the following format:
Card styles
Styles for thesearch:result tag:
card-emphasiscard-shadowcard-step
Popover
Styles forwidget:popover tag:
popover-wrapper: Popover stylepopover-large: Large popoverpopover-mediumpopover-small