Bricks theme's CSS are intrusive

Bricks load its CSS as a normalize/reset kind of like.

For example:

The Bricks’ normalize

/* frontend-light.min.css */
[class*=brxe-] {
    max-width: 100%;
}

/* and all inside of this file */

Also, it chained the .brxe-* class to the user-defined class on the element.

For example:

.header-bold.brxe-heading {
    font-weight: 900;
}

This creates a higher level of specificity that is difficult to override with later-defined CSS.

With the latest CSS’ native feature @layer, we will have full control over which styles take priority in a project without relying on specificity hacks or !important.

Browser support:

This means this native feature is widely available on modern browsers.


Ref:

3 Likes

Hey @suabahasa,

the max-width topic has already been discussed for a long time here and will probably be adressed in version 2 (see Charaf’s comment).

Regarding class chaining: have a look at the settings. There is an option to disable the chaining (Settings > Performance > Disable class chaining).

Best,

André

3 Likes