I'm trying to set a card as the display wrapper inside a 'sidenav', as shown below:
<div class="content-container" width="100%" height="100%" >
<nav class="sidenav clr-flex-fill clr-flex-column clr-align-content-between" height="100%" >
<div class="card clr-flex-fill clr-flex-column clr-align-content-between" height="100%">
<div class="card-header clr-align-self-start">
Selections
</div>
<div class="card-block clr-align-self-auto">
<app-task-side-nav>
</app-task-side-nav>
</div>
<div iclass="card-footer clr-align-self-end">
<button class="btn btn-sm btn-link">Footer Action 1</button>
<button class="btn btn-sm btn-link">Footer Action 2</button>
</div>
</div>
</nav>
<div class="content-area" height="100%" width="100%" >
<router-outlet class="router-flex"></router-outlet>
</div>
</div>
I want the 'card footer' to be positioned at the vertical top of the available space, the 'card footer' to be displayed at the bottom of the available vertical space, and the 'card-block' to take up the available vertical space in between.
I've tried various 'clr-flex' related styles as shown above, but can't this to work. Any suggestions?
This is equivalent to ...
<div class="main-container">
<header class="header header-6">
...
</header>
<div class="content-container">
<nav class="sidenav">
<div class="card">
<div class="card-header">
Header
</div>
<div class="card-block">
<div class="card-title">
Block
</div>
<div class="card-text">
...
</div>
</div>
<div class="card-footer">
<button class="btn btn-sm btn-link">Footer Action 1</button>
<button class="btn btn-sm btn-link">Footer Action 2</button>
</div>
</div>
</nav>
<div class="content-area">
...
</div>
</div>
</div>