S
S
Sergey Sobol2021-08-04 14:41:48
Layout
Sergey Sobol, 2021-08-04 14:41:48

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

1 answer(s)
S
Sergey delphinpro, 2021-08-04
@Dikkkey

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 question

Ask a Question

731 491 924 answers to any question