Вот решил повторить теорию флексбоксов и затык в испытании палитра. в четвёртом квадрате не работает свойство align-items: flex-end. Почему?
вот весь код `
.palette-small {
display: flex;
}
.palette-box:nth-child(1) .palette-small {
flex-direction: column-reverse;
justify-content: center;
align-items: center;
}
.palette-box:nth-child(1) [class$="2"],
.palette-box:nth-child(1) [class$="5"]
{
align-self: stretch;
}
.palette-box:nth-child(1) [class$="4"] {
order: -1;
}
.palette-box:nth-child(1) [class$="3"] {
order: 1;
}
.palette-box:nth-child(2) .palette-small {
flex-direction: column-reverse;
justify-content: space-between;
align-items: flex-end;
}
.palette-box:nth-child(2) [class$="1"],
.palette-box:nth-child(2) [class$="4"]
{
align-self: flex-start;
}
.palette-box:nth-child(3) .palette-small {
justify-content: space-between;
align-items: space-between;
}
.palette-box:nth-child(3) .palette-small .part {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.palette-box:nth-child(4) .part {
display: flex;
}
.palette-box:nth-child(4) .part:last-child {
flex-direction: column-reverse;
justify-content: space-between;
align-items: flex-end;
} `