In addition to this: [WIP] Remove Bricks selector from CSS output on custom classes so the class can be used on different elements
There are more to be improved here:
If you look at the code below, apart from adding multiple classes as explained in the topic above. It also does add a media query around each class rather than having all classes for a specific breakpoint in the same media query. And, it does not need the CSS comment in there for each class.
Potential bug: Its also inlining the code even when I select external css. Yes, I have regenerated css and cleared all caches, still doesn’t work.
/* BREAKPOINT: Desktop (BASE) */
.text-center.brxe-heading {text-align: center}
/* BREAKPOINT: Tablet portrait /
@media (max-width: 991px) {
.text-center.brxe-heading {text-align: justify}
}
/ BREAKPOINT: Mobile landscape /
@media (max-width: 767px) {
.text-center.brxe-heading {text-align: center}
}
/ BREAKPOINT: Mobile portrait */
@media (max-width: 478px) {
.text-center.brxe-heading {text-align: right}
}
/* BREAKPOINT: Desktop (BASE) */
.text-center.brxe-text-basic {text-align: center}
/* BREAKPOINT: Tablet portrait /
@media (max-width: 991px) {
.text-center.brxe-text-basic {text-align: justify}
}
/ BREAKPOINT: Mobile landscape /
@media (max-width: 767px) {
.text-center.brxe-text-basic {text-align: center}
}
/ BREAKPOINT: Mobile portrait */
@media (max-width: 478px) {
.text-center.brxe-text-basic {text-align: right}
}
/* BREAKPOINT: Desktop (BASE) */
.text-center.brxe-div {text-align: center}
/* BREAKPOINT: Tablet portrait /
@media (max-width: 991px) {
.text-center.brxe-div {text-align: justify}
}
/ BREAKPOINT: Mobile landscape /
@media (max-width: 767px) {
.text-center.brxe-div {text-align: center}
}
/ BREAKPOINT: Mobile portrait */
@media (max-width: 478px) {
.text-center.brxe-div {text-align: right}
}
/* BREAKPOINT: Desktop (BASE) */
.text-center.brxe-text {text-align: center}
.text-center.brxe-text a {text-align: center}
/* BREAKPOINT: Tablet portrait /
@media (max-width: 991px) {
.text-center.brxe-text {text-align: justify}
.text-center.brxe-text a {text-align: justify}
}
/ BREAKPOINT: Mobile landscape /
@media (max-width: 767px) {
.text-center.brxe-text {text-align: center}
.text-center.brxe-text a {text-align: center}
}
/ BREAKPOINT: Mobile portrait */
@media (max-width: 478px) {
.text-center.brxe-text {text-align: right}
.text-center.brxe-text a {text-align: right}
}