Answer the question
In order to leave comments, you need to log in
What does it mean to encapsulate rules?
The client requested to use the https://simplegrid.io grid and said to encapsulate the rules so that there are no conflicts with the current layout. Tell me how to encapsulate the rules correctly?
Answer the question
In order to leave comments, you need to log in
You need to take the grid file https://github.com/zachacole/Simple-Grid/blob/mast...
Remove common classes and tags from there, leave only the grid.
Add some prefix to all grid classes (container, row, col). For example sg-
.
Compile file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question