[31/31] 100% Прошу оценить код и дать советы по оптимизации

.palette-box .palette-small,
.palette-box:nth-child(4) .part:nth-child(1) {
display: flex;
}

.palette-box:nth-child(1) .palette-small {
flex-direction: column;
justify-content: center;
}

.palette-box:nth-child(1) .color-2 {
order: 4;
}

.palette-box:nth-child(1) .color-3 {
align-self: center;
}

.palette-box:nth-child(1) .color-4 {
order: 5;
align-self: center
}

.palette-box:nth-child(2) .palette-small {
flex-direction: column-reverse;
justify-content: space-between;
}

.palette-box:nth-child(2) .color-1,
.palette-box:nth-child(2) .color-4 {
align-self: flex-start;
}

.palette-box:nth-child(2) .color-2,
.palette-box:nth-child(2) .color-6 {
align-self: flex-end;
}

.palette-box:nth-child(3) .palette-small {
justify-content: space-between;
}

.palette-box:nth-child(3) .part:nth-child(1) {
display: flex;
flex-direction: column;
justify-content: space-between;
}

.palette-box:nth-child(3) .part:nth-child(2) {
display: flex;
flex-direction: column;
justify-content: space-between;
}

.palette-box:nth-child(4) .palette-small {
justify-content: space-between;
}

.palette-box:nth-child(4) .part:nth-child(2) {
display: flex;
flex-direction: column-reverse;
justify-content: space-between;
}

В комментах читал, что достаточно 40 строк, чтобы задать стили в этом испытании…

для .part , можно указать display:flex в самом начале

1 лайк