.palette-small,
.part {
display: flex;
justify-content: space-around;
}
/*Первый*/
.palette-box:nth-child(1) .palette-small{
flex-direction: column;
}
.palette-box:nth-child(1) .color-3,
.palette-box:nth-child(1) .color-4 {
align-self: center;
}
.palette-box:nth-child(1) .color-3 {
order: -1;
}
.palette-box:nth-child(1) .color-4 {
order: 5;
}
.palette-box:nth-child(1) .color-2 {
order: 2;
}
.palette-box:nth-child(1) .color-5 {
order: 1;
}
/*Второй*/
.palette-box:nth-child(2) .palette-small{
flex-direction: column-reverse;
justify-content: space-between;
align-items: flex-start;
}
.palette-box:nth-child(2) .palette-small .color-2,
.palette-box:nth-child(2) .palette-small .color-6 {
align-self: flex-end;
}
/*Третий*/
.palette-box:nth-child(3) .palette-small {
justify-content: space-between;
}
.part{
flex-direction: column;
justify-content: space-between;
}
/*Четвертый*/
.palette-box:nth-child(4) .palette-small {
justify-content: space-between;
}
.palette-box:nth-child(4) .palette-small .part:nth-child(1) {
flex-direction: row;
}
.palette-box:nth-child(4) .palette-small .color-2 {
order: 1;
}
.palette-box:nth-child(4) .palette-small .color-3 {
order: -1;
}
в первый квадрат засуньте justify-content: center;
решение использовать направление column, чтобы потом каждому назначать новый порядок - ну такое.
ну и можно было всем оставить space-between, чем каждому отдельно прописывать потом.
1 лайк