Испытание: сложные палитры [31/31] - 100%

Возможно ли ещё сократить код?

CSS

.palette-small, .part {
display: flex;
justify-content: space-between;
}

.palette-box:first-of-type .palette-small {
flex-direction: column-reverse;
justify-content: center;
}

.palette-box:first-of-type .color-4 {
order:-1;
align-self: center;
}

.palette-box:first-of-type .color-3 {
order:2;
align-self: center;
}

.palette-box:nth-of-type(2) .palette-small,
.palette-box:last-of-type .part:last-child {
flex-direction: column-reverse;
align-items: flex-start;
}

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

.palette-box:nth-of-type(3) .part {
flex-direction: column;
}

1 лайк