Brick Styles

How the theme and the brick combine

Everything the theme defines for bricks applies to every brick in the content. Each brick can change some of those values for itself only; whatever it doesn't change, it keeps taking from the theme. So if you change the theme later, the bricks with no values of their own update automatically.

Brick styles

In Theme > Brick styles:

  • Global values — The width and padding of each lesson's content (see Cover & Layout).
  • By brick type, grouped into Text, Multimedia, Interactive, Evaluation and General — Font sizes, line heights, weights, spacing, heights, corner radii and colors of each brick's parts.
  • Container for all blocks — The band and the look of the box that apply to every brick type; the container of each type can change them.
  • Container of each type — The block box (the brick itself) and the full-width band behind it (see The box and the band).
  • Instructions and Blocker — The look of the instruction message and the blocking message, each with its own background.

The box and the band

Every brick is drawn on two levels:

  • The block box is the brick itself, limited by its maximum width. Its container defines the maximum width, the inner and outer spacing, the text case, the background (color, gradient or image, with a color layer on top), the border, the corner radius and the shadow.
  • The full-width band runs from edge to edge of the lesson, behind the box: use it for a color or image background that fills the whole width. It has its own background and its own inner and outer spacing (the outer one only above and below).

By default the band has no background and no spacing, so bricks look the same as before. Each field is taken from the brick, if it has a value of its own; otherwise from the container of its type; otherwise from the container for all blocks; and otherwise from the default value.

Brick defaults

In Theme > Brick defaults you define how bricks behave:

  • Global defaults — Whether instructions are shown and whether the brick must be completed to continue, separately for interactive, evaluation and game bricks; and whether evaluation requires a correct answer.
  • By brick type — The instruction message and icon, the blocking message and icon, the continue button text, their layout and, depending on the type, other behaviors such as Disable forward seeking for video and audio.

Each value of a type can follow the Global value or have its own.

Icons

At the end of Brick defaults, Icons sets the icons of the parts no brick chooses: the carousel arrows, the accordion indicator (it turns when a panel opens), the close button of an enlarged image, the flip hint of cards, the download icon of a file attachment and the Wordle delete key. Each one can be an icon from the library or an uploaded one. A single-colour SVG is painted in the text colour of that part, also on hover and in dark mode; a multicolour SVG or a PNG, JPEG or WebP image is shown as it is. Reset field brings back the usual icon.

In the Note and Labelled graphic sections, the theme also sets the default icon of notes and markers. With no icon in the theme, a note has none and a marker shows its number. Each note, and each marker, can use the theme's icon, its own or No icon. The same goes for the instruction icon, the blocking icon and the bullet of lists and bulleted separators.

Customize a single brick

  1. Select the brick in the editor.
  2. In its panel, change the fields you want. The ones you don't touch show the value that comes from the theme.
  3. For the brick's container, open Container styles from its action bar: there you can change its styles, its entrance animation and add custom CSS. The brick's custom CSS also reaches the band: whatever starts with #brick-band-… applies to the band that runs from edge to edge of the lesson; everything else applies to the block box.
  4. Reset to defaults removes the container's own values and the brick goes back to taking the theme's.
Brick Styles