flex-box часть-1, испытание [31/31] - 100%, нужен Ваш фидбэк.

Всем привет! Подскажите как избавиться от фиксированного марджин-топ’а в 3-м .palette-box’е и применить что-то универсальное и более подходящее. Спасибо!

.palette-small {
    display: flex;
}

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

.palette-box:nth-child(1) .palette-small .color-3,
.palette-box:nth-child(1) .palette-small .color-4
{
    width: 10px;
}

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

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

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

.palette-box:nth-child(1) .palette-small .color-5 {
    order: 3;
}

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

.palette-box:nth-child(2) .palette-small div
{
    width: 10px;
}

.palette-box:nth-child(2) .palette-small div:nth-child(1),
.palette-box:nth-child(2) .palette-small div:nth-child(2)
{
    align-self: flex-end;
}

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

.palette-box:nth-child(3) .palette-small .part div {
    width: 10px;
}

.palette-box:nth-child(3) .palette-small .part div:nth-child(2) {
    margin-top: 77px;
}

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

.palette-box:nth-child(4) .palette-small .part:last-child {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    margin-left: auto;
}
.palette-box:nth-child(3) .palette-small .part {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

А это лишнее:

1 лайк

Спасибо. Удалил лишнее - все осталось на своих местах.

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

.palette-box:nth-child(3) .palette-small .part div:nth-child(2) {
    margin-top: 77px;
}