Answer the question
In order to leave comments, you need to log in
How to properly store block icons in the Flat schema?
Welcome all! I use a simplified Flat file structure organization scheme. As I understand it, when using this scheme, a separate directory is created for each block, while the styles and scripts of all elements and modifiers are stored in one file.
Block:
File Structure Diagram:
<input class="input input_type_seach">
common.blocks
--input
----input.css (File content: .input {} .input_type_seach{} )
----input.js
<input class="input input_type_seach input_icon_user">
common.blocks
--input
----input.css (File content: .input {} .input_type_seach{} .input_icon_user{} )
----input.js
----input_icon_user.png
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question