Utility classes
This framework includes various utilities—classes with a single purpose. They’re
designed to reduce the frequency of highly repetitive declarations in your CSS
down while allowing for quick and easy development.
Contents
Opacity control
Configure the opacity of a given element. This is styled in such a way that
browsers can animate the property when its value changes.
.opaque
: make an element fully visible with opacity: 1
.transparent
: make an element invisible with opacity: 0
Borders
This small utility follows on the spacing
utilities provided by the
core framework.
.b-a-0
: configure all borders (indicated by the b-a
) to be none (indicated
the 0
)
Backgrounds
You can use any of the following colours and opacities and mix them into any
other block elements to provide a coloured semi-transparent background.
Conveying meaning to assistive technologies
Ensure that any meaning conveyed through color is also conveyed in a format that
is not purely presentational.
For details on dealing with selector specificity, refer the Contextual Colors
and Backgrounds
documentation from Bootstrap.
Complete palette
.jcu-bg--pink-25pc
.jcu-bg--pink-50pc
.jcu-bg--pink-75pc
.jcu-bg--pink-90pc
.jcu-bg--pink
.jcu-bg--red-25pc
.jcu-bg--red-50pc
.jcu-bg--red-75pc
.jcu-bg--red-90pc
.jcu-bg--red
.jcu-bg--red-dark-25pc
.jcu-bg--red-dark-50pc
.jcu-bg--red-dark-75pc
.jcu-bg--red-dark-90pc
.jcu-bg--red-dark
.jcu-bg---orange-25pc
.jcu-bg---orange-50pc
.jcu-bg---orange-75pc
.jcu-bg---orange-90pc
.jcu-bg---orange
.jcu-bg---yellow-25pc
.jcu-bg--yellow-50pc
.jcu-bg--yellow-75pc
.jcu-bg--yellow-90pc
.jcu-bg--yellow
.jcu-bg--green-light-25pc
.jcu-bg--green-light-50pc
.jcu-bg--green-light-75pc
.jcu-bg--green-light-90pc
.jcu-bg--green-light
.jcu-bg--green-25pc
.jcu-bg--green-50pc
.jcu-bg--green-75pc
.jcu-bg--green-90pc
.jcu-bg--green
.jcu-bg--blue-light-25pc
.jcu-bg--blue-light-50pc
.jcu-bg--blue-light-75pc
.jcu-bg--blue-light-90pc
.jcu-bg--blue-light
.jcu-bg--blue-25pc
.jcu-bg--blue-50pc
.jcu-bg--blue-75pc
.jcu-bg--blue-90pc
.jcu-bg--blue
.jcu-bg--blue-dark-25pc
.jcu-bg--blue-dark-50pc
.jcu-bg--blue-dark-75pc
.jcu-bg--blue-dark-90pc
.jcu-bg--blue-dark
.jcu-bg--black-25pc
.jcu-bg--black-50pc
.jcu-bg--black-75pc
.jcu-bg--black-90pc
.jcu-bg--black
.jcu-bg--gray-25pc
.jcu-bg--gray-50pc
.jcu-bg--gray-75pc
.jcu-bg--gray-90pc
.jcu-bg--gray
.jcu-bg--gray-light-25pc
.jcu-bg--gray-light-50pc
.jcu-bg--gray-light-75pc
.jcu-bg--gray-light-90pc
.jcu-bg--gray-light
.jcu-bg--gray-lighter-25pc
.jcu-bg--gray-lighter-50pc
.jcu-bg--gray-lighter-75pc
.jcu-bg--gray-lighter-90pc
.jcu-bg--gray-lighter
.jcu-bg--white-25pc
.jcu-bg--white-50pc
.jcu-bg--white-75pc
.jcu-bg--white-90pc
.jcu-bg--white
Gradients
.jcu-bg--gradient-blue
.jcu-bg--gradient-blue-rev
.jcu-bg--gradient-orange
.jcu-bg--gradient-orange-rev
.jcu-bg--gradient-green
.jcu-bg--gradient-green-rev
.jcu-bg--gradient-red
.jcu-bg--gradient-red-rev
.jcu-bg--gradient-blue-45deg
.jcu-bg--gradient-orange-45deg
.jcu-bg--gradient-green-45deg
.jcu-bg--gradient-red-45deg
Images
There are a number of approved brand images that can be used as backgrounds as
well.
.jcu-bg--blue-buildings
.jcu-bg--blue-fish
.jcu-bg--blue-globe
.jcu-bg--blue-purple-fibre-optic
.jcu-bg--blue-skyscraper
.jcu-bg--fossil
.jcu-bg--brown-green-yellow-grass
.jcu-bg--brown-outback-road
.jcu-bg--didgeridoo
.jcu-bg--eucalyptus-flower
.jcu-bg--green-fern
.jcu-bg--green-grass
.jcu-bg--green-leaf-swirl
.jcu-bg--green-rainforest
.jcu-bg--green-outback
.jcu-bg--green-yellow-fibre-optic
.jcu-bg--iot-circuit-board
.jcu-bg--jigsaw
.jcu-bg--law-books
.jcu-bg--multicolor-fibre-optic
.jcu-bg--multicolor-fabric
.jcu-bg--orange-flower
.jcu-bg--pink-sunset
.jcu-bg--pink-waterdrops
.jcu-bg--rv-james-kirby
.jcu-bg--red-blood-cells
.jcu-bg--red-fibre-optic
.jcu-bg--red-flower
.jcu-bg--red-sand
.jcu-bg--silver-gears
.jcu-bg--sunset-windmill
.jcu-bg--tropics-map
.jcu-bg--turtle-and-reef
.jcu-bg--vet-horses
.jcu-bg--yellow-savannah
.jcu-bg--yellow-shell
.jcu-bg--yellow-sunflower
Covers
Use .jcu-bg--cover
to configure an image background to scale as large as
possible, whilst maintaining the aspect ratio, covering the entire width or
height of the container. Compare the two different examples below and note how
the cover example resizes the image and may clip the edges to maintain aspect
ratio.
.jcu-bg--blue-buildings .jcu-bg--cover
.jcu-bg--blue-buildings (no cover class)