V
V
ViT932020-08-14 14:33:58
HTML
ViT93, 2020-08-14 14:33:58

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


How to add an icon to this block?
<input class="input input_type_seach input_icon_user">


File structure scheme:
common.blocks
--input
----input.css (File content: .input {} .input_type_seach{} .input_icon_user{} )
----input.js
----input_icon_user.png

Is that how it works?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question