Answer the question
In order to leave comments, you need to log in
And again about bam - in which cases is it redundant, in which not?
Once again, I wondered when the use of bam is redundant, and when not.
For example, I'm building a website with a fairly simple "business" design. I don't use any frameworks.
I have modifiers like
.--mark {
color: #24408d;
}
.--mark-2 {
color: rgb(255, 229, 0);
}
.title {
font-size: rem(40);
font-weight: 400;
text-align: center;
}
.icon {
display: inline-block;
background-position: center center;
background-repeat: no-repeat;
}
.icon--search {
width: 23px;
height: 23px;
background-image: url("../images/icons/search.png");
}
ul.menu.flex-container.flex--between.--reset
li.menu__logo-box
.flex-container {
display: flex;
flex-flow: wrap;
}
.flex--between {
justify-content: space-between;
}
.menu {
list-style: none;
}
.--reset {
margin: 0;
padding: 0;
}
.sub-menu {
position: absolute;
z-index: 10;
list-style: none;
padding-top: 10px;
padding-bottom: 10px;
white-space: nowrap;
background-color: rgba(0, 0, 0, 0.9);
color: rgb(255, 255, 255);
min-width: 100%;
}
Answer the question
In order to leave comments, you need to log in
It's Atomic CSS in a BEM wrapper!
I actually find it really useful to mix them up sometimes, but for layout on flex I just use a separate grid component and it's more than enough for now.
Yes, if you like Atomic CSS in general and are aware of its advantages and disadvantages, then the answer to your questions about "dividing" classes into pseudo-modifiers is naturally yes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question