.palette-small {
display: flex;
flex-direction: column-reverse;
justify-content: center;
align-items: center;
}
.palette-box:nth-child(1) .color-4 {
order: -1;
}
.palette-box:nth-child(1) .color-3 {
order: 1;
}
.palette-box:nth-child(1) .color-5,
.palette-box:nth-child(1) .color-2 {
align-self: stretch;
}
.palette-box:nth-child(2) .palette-small {
justify-content: space-between;
}
.palette-box:nth-child(2) [class^=“color”] {
align-self: flex-start;
}
.palette-box:nth-child(2) [class$=“2”],
.palette-box:nth-child(2) [class$=“6”]
{
align-self: flex-end;
}
.palette-box:nth-child(3) .palette-small {
flex-direction: row;
justify-content: space-between;
align-items: stretch;
}
.palette-box:nth-child(3) .part {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.palette-box:nth-child(4) .palette-small {
flex-direction: row;
justify-content: space-between;
align-items: stretch;
}
.palette-box:nth-child(4) .part {
display: flex;
}
.palette-box:nth-child(4) .part:last-child {
flex-direction: column-reverse;
justify-content: space-between;
}
/красный-2, желтый-4, зелёный-3, синий-6, коричневый-5/