properties that is duplicate should i separate them or not?
btn {
display: flex;
align-items: center;
justify-content: center;
}
card {
display: flex;
align-items: center;
justify-content: center;
}
alert{
display: flex;
align-items: center;
justify-content: center;
}
should i separate them like this:
.btn, .alert, . card{
display: flex;
align-items: center;
justify-content: center;
}
Yeah, use judgement to decide at what point they benefit from being grouped
sorry for bothering you with my repetitive question, my judgement after all of this conversation says that i should group all related styles that have duplicate properties. for example if i have three separate style for header i should group all related styles. and what about separate css styles like this. button.css card.css alert.css and so on. is that better when come to readability?
if there is other answer for this. i want to know. because after 1 ~ 2 hours i want re create my first project. i don't want doing it in wrong way. and have to re build it.
Обсуждают сегодня