Skip to content

Using Parallel in combination with Bootstrap #3

Answered by Th3S4mur41
RebockraAtAtos asked this question in Q&A
Discussion options

You must be logged in to vote

Since Parallel was designed to be easily overwritten/customized, most of its styles come with a 0 specificity.
The downside is that every other style your application will import will most probably take precedence, no matter the order.

Cascade layers are indeed probably the best solution to avoid those specificity issues when combining Parallel with other 3rd-party stylesheets.
It's even a best practice worth documenting in our README.

In your example you would simply import both CSS in separate layers like this:

@import url('~bootstrap/dist/css/bootstrap.min.css') layer(bootstrap);
@import url('~@atos-parallel/core/dist/style.css') layer(parallel);

/*... the rest of your CSS*/

This will…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MikeKronewald
Comment options

@Th3S4mur41
Comment options

Answer selected by RebockraAtAtos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
📄 docs Improvements or additions to documentation 📦 package: core
3 participants