.sidebar { display: flex; flex-direction: column; } .sidebar-footer { margin-top: auto; } .sidebar-small { min-width: 60px; max-width: 60px; } .sidebar-hidden > .sidebar-footer { position: absolute; bottom: 0; }