NavBar POC
by Chamster
HTML
<div class="header">
<div class="left">
<div>
<a class="action-button"><span>Linko Uno</span></a>
<a class="action-button"><span>Linko Duo</span></a>
<a class="action-button"><span>Linko trisso extendo</span></a>
</div>
</div>
<div class="center">
<div *ngIf="authenticated">lorem ipsum boinky plopp</div>
</div>
<div class="right">
<div *ngIf="authenticated">
shaba daba kaboom poof
</div>
</div>
</div>
CSS
a.action-button {
display: flex;
flex: 1 1 0;
font-size: 24px;
outline: none;
justify-content: space-between;
border: 4px solid thistle;
}
a.action-button>span {
display: flex;
flex: 1 1 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
div.header {
display: flex;
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
width: 100%;
height: 60px;
font-size: 24px;
justify-content: space-between;
align-items: center;
overflow: hidden;
white-space: nowrap;
border: 4px solid red;
}
div.header>div.left {
display: flex;
flex: 4 1 0;
overflow: hidden;
border: 4px solid rosybrown;
}
div.header>div.center {
display: flex;
flex: 1 1 0;
justify-content: center;
overflow: hidden;
border: 4px solid green;
}
div.header>div.right {
display: flex;
flex: 2 1 0;
overflow: hidden;
justify-content: flex-end;
border: 4px solid orange;
}
div.left>div,
div.center>div,
div.right>div {
display: flex;
flex: 1 1 0;
border: 4px solid royalblue;
}