31/31

Подскажите, а можно в последнем квадрате голубой и зеленый шар отодвинуть не с помощью margin?

`.palette-box:nth-child(1) .palette-small {
display: flex;
flex-direction: column;
justify-content: center;
}
.palette-box:nth-child(1) .palette-small .color-2 {
order: 1;
}
.palette-box:nth-child(1) .palette-small .color-3 {
order:-1;
align-self: center;
}
.palette-box:nth-child(1) .palette-small .color-4 {
order:2;
align-self: center;
}
.palette-box:nth-child(1) .palette-small .color-5 {
order:0;
}

.palette-box:nth-child(2) .palette-small {
display: flex;
flex-direction: column-reverse;
justify-content: space-between;
align-items: center;
}
.palette-box:nth-child(2) .palette-small .color-2 {
align-self: flex-end;
}
.palette-box:nth-child(2) .palette-small .color-6 {
align-self: flex-end;
}
.palette-box:nth-child(2) .palette-small .color-4 {
align-self: flex-start;
}
.palette-box:nth-child(2) .palette-small .color-1 {
align-self: flex-start;
}

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

.palette-box:nth-child(4) .palette-small {
display: flex;
}
.palette-box:nth-child(4) .palette-small .part:nth-child(1) {
display: flex;
flex-direction: row;
}
.palette-box:nth-child(4) .palette-small .part:nth-child(2) {
display: flex;
flex-direction: column-reverse;
justify-content: space-between;
margin-left: 41px;
}

`

Можно:
.palette-box:nth-child(4) .palette-small {
display: flex;
justify-content: space-between;
}
.palette-box:nth-child(4) .palette-small .part:nth-child(2) {
display: flex;
flex-direction: column-reverse;
justify-content: space-between;
/margin-left: 41px;/
}

1 лайк

Спасибо)