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 thegrid
andpanel
examples 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 thegrid
andpanel
examples 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-center
block
inline
inline-block
pull-left
: float left
See thebutton
example in the gallery.pull-right
: float right
See thebutton
example 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 insidecentercontent
centercontent-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 smallersm
md
lg
xl
break-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-right
border-radius-bottom-left
border-radius-bottom-right
Typography
text-center
text-right
text-left
capitalize
uppercase
lowercase
Colors
See these colors in the gallery.bg-lgrey
: Light grey backgroundbg-mgrey
bg-dgrey
bg-charcoal
bg-black
bg-white
text-white
: White textbg-lbgrey
bg-mbgrey
bg-dbgrey
bg-blue
bg-sblue
bg-yellow
bg-orange
bg-red
bg-pink
bg-purple
bg-green
bg-primary
bg-primary-light
bg-primary-dark
bg-primary-contrast
text-primary
text-primary-contrast
bg-secondary
bg-secondary-light
bg-secondary-dark
bg-secondary-contrast
text-secondary
text-secondary-light
text-secondary-dark
text-secondary-contrast
bg-tertiary
bg-tertiary-light
bg-tertiary-dark
bg-tertiary-contrast
text-tertiary
text-tertiary-light
text-tertiary-dark
text-tertiary-contrast
bg-raspberry
bg-raspberry-light
bg-raspberry-dark
text-raspberry
text-raspberry-light
text-raspberry-dark
bg-strawberry
bg-strawberry-light
bg-strawberry-dark
text-strawberry
text-strawberry-light
text-strawberry-dark
bg-carrot
bg-carrot-light
bg-carrot-dark
text-carrot
text-carrot-light
text-carrot-dark
bg-pumpkin
bg-pumpkin-light
bg-pumpkin-dark
text-pumpkin
text-pumpkin-light
text-pumpkin-dark
bg-sunflower-light
bg-sunflower
bg-sunflower-dark
text-sunflower
text-sunflower-light
text-sunflower-dark
bg-leaf
bg-leaf-light
bg-leaf-dark
text-leaf
text-leaf-light
text-leaf-dark
bg-grass
bg-grass-light
bg-grass-dark
text-grass
text-grass-light
text-grass-dark
bg-emerald
bg-emerald-light
bg-emerald-dark
text-emerald
text-emerald-light
text-emerald-dark
bg-mint
bg-mint-light
bg-mint-dark
text-mint
text-mint-light
text-mint-dark
bg-aqua
bg-aqua-light
bg-aqua-dark
text-aqua
text-aqua-light
text-aqua-dark
bg-sky
bg-sky-light
bg-sky-dark
text-sky
text-sky-light
text-sky-dark
bg-royal
bg-royal-light
bg-royal-dark
text-royal
text-royal-light
text-royal-dark
bg-lavender
bg-lavender-light
bg-lavender-dark
text-lavender
text-lavender-light
text-lavender-dark
bg-pink
bg-pink-light
bg-pink-dark
text-pink
text-pink-light
text-pink-dark
bg-paper
bg-paper-light
bg-paper-dark
text-paper
text-paper-light
text-paper-dark
bg-concrete
bg-concrete-light
bg-concrete-dark
text-concrete
text-concrete-light
text-concrete-dark
bg-asphalt
bg-asphalt-light
bg-asphalt-dark
text-asphalt
text-asphalt-light
text-asphalt-dark
bg-duckegg
bg-duckegg-light
bg-duckegg-dark
text-duckegg
text-duckegg-light
text-duckegg-dark
bg-depth-dblue
text-depth-dblue
bg-depth-lblue
text-depth-lblue
Switches
Usage:-
checkbox-switch
: Default switch
Add styles to label: -
square
-
flat
Switch colors
Also added to the labelpositive
negative
warning
info
secondary
tertiary
Right-hand-side panel
Adds a wikipedia-esque smart panelrhspanel
rhspanel-shadow
Tooltips
tooltip
: Adds a tooltip using the aria-label attribute for the tooltip contenttooltip-top-left
: Position tooltiptooltip-top-right
tooltip-top
tooltip-bottom-left
tooltip-bottom-right
tooltip-bottom
tooltip-left
tooltip-right
tooltip-top
tooltip-small
tooltip-medium
tooltip-large
tooltip-error
tooltip-warning
tooltip-info
tooltip-success
tooltip-always
: The tooltip is always showntooltip-rounded
: Rounded cornerstooltip-no-animate
tooltip-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-green
button-blue
button-white
button-disabled
button-hidden
block
: Full width
Forms
checkbox
radio
input-rounded
: Applies only to inputsgroup
: Form input groupform-stacked
: Stacked form - should be applied to the formform-aligned
labelled-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.
striped
lined
Grid utilities
hide-xs
: Hide on XS size screensshow-xs
: Show on XS size screensshow-sm
show-md
show-lg
show-xl
show-xs
hide-xs
hide-sm
show-sm
hide-md
show-md
hide-lg
show-lg
hide-xl
show-xl
Component styles
These styles can be applied to specific tags.Field styles
Styles for thesearch:field
tag:
title
url
label-left
label-left-always
label-inline
label-above
description
image-top
Image
Styles for themedia:image
tag:
square-crop
circle-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:
shadow
shadow-far
recessed
step
simple
wrappedheader
hidemetadata
indented
Search tabs and nav bars
These styles are for thesearch:tabs
tag.
navbar
: Navbar stylenavbar navbar-shadow
navbar navbar-centered
navbar 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-center
pagination-wrapper-right
Alert box
Styles forsearch:alert
tag.
alertbox
: Style element as an alert boxalertbox-secondary
: Secondary coloralertbox-positive
alertbox-negative
alertbox-warning
alertbox-info
Interruptors
Apply to any element or use theblock:interruptor
tag.
interruptor
: Style element as an attention grabber
See themessage
example in the gallery.
Scroll to
Styles for thewidget:scroll-to
tag:
bottom-left
: Position bottom left of the pagebottom-right
bottom-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 styleline
simple
bordered
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-emphasis
card-shadow
card-step
Popover
Styles forwidget:popover
tag:
popover-wrapper
: Popover stylepopover-large
: Large popoverpopover-medium
popover-small