Closed MarPostovik closed 6 months ago
In our project, we have three pages, all of which have an intro block. But they have some differences such as padding and max-width. I created modifiers for block intro and for its element intro__title to list those changes in separate files.
intro
padding
max-width
intro__title
Link to Figma
index.html
intro.css
intro_page_index.css
form.html
intro__title.css
intro__title_page_form.css
index.css
form.css
Here is a quick instruction on how to use the modifiers.
Modifiers for block intro:
intro_page_index
intro_page_form
intro_page_catalog
They should be used along with the class intro where common styles for all intro blocks are placed.
Modifiers for element intro__title:
intro__title_page_form
intro__title_page_catalog
They should be used along with the class intro__title.
Example:
<div class="intro intro_page_form"> <h1 class="intro__title intro__title_page_form">Your title</h1> </div>
I've already added those modifiers on pages index.html and form.html but you may need this information for page catalog.html
catalog.html
Description
In our project, we have three pages, all of which have an
intro
block. But they have some differences such aspadding
andmax-width
. I created modifiers for blockintro
and for its elementintro__title
to list those changes in separate files.Task Link
Link to Figma
Changes Made
intro
andintro__title
(Listed below in usage)index.html
, from theintro.css
. (These styles now are inintro_page_index.css
).form.html
fromintro__title.css
. (Now these styles are inintro__title_page_form.css
)index.html
andform.html
.index.css
andform.css
with imports for new modifiers.Usage
Here is a quick instruction on how to use the modifiers.
Modifiers for block
intro
:intro_page_index
intro_page_form
intro_page_catalog
They should be used along with the class
intro
where common styles for all intro blocks are placed.Modifiers for element
intro__title
:intro__title_page_form
intro__title_page_catalog
They should be used along with the class
intro__title
.Example:
I've already added those modifiers on pages
index.html
andform.html
but you may need this information for pagecatalog.html
Checklist