3 ms·
One question about this approach: If I understand correctly, if I have some text that is bold, and later I want to change it into italic, I have to go into temp
by ivanhoe 7y ago
One question about this approach: If I understand correctly, if I have some text that is bold, and later I want to change it into italic, I have to go into templates, locate all instances of the text and rename all the classes from font-weight--bold to font-style--italic? Seems like "quick to build, but hard to maintain" approach?
- meerita 7y agoBefore I answer, do you want to change a particular module, particular text or you want to change site-wide things?
- ivanhoe 7y agoLet's for starter say that we need to change something site-wide?
- meerita 7y agoWell, I assume is a component. Can be a layout or a partial, you go there, read the classes, make your changes according to the new design. In case you need extra clases, let's say, you need to introduce something like pointer-events, you go to the framework, you activate it in the config file, then use the class on the div. In case you need extra customization, you write a custom class ex. c-10 and you apply interactions needed (:hover, :focus, etc.).
- meerita 7y agoThe approach is like programing with inline-css but using classes. Once you start working, you will realize you will reuse more classes and your code will be 100% redeable. Anyone coming behind your work can easily work it. Otherwise he needs to re-learn all the architectural tidbits and change it to his way to architecture it. This doesn't stop you to code small and repetitive components like "buttons". There's an article where you can see how it works.