July 2017
Intermediate to advanced
300 pages
5h 43m
English
Speaking of the view content, we are ready to populate the layout slots. We will start with the title bar:
./index.html
<header class="l-app__titlebar titlebar"> <span class="titlebar__path">/home/sheiko/Sites/file-explorer</span> <a class="titlebar__btn" >_</a> <a class="titlebar__btn is-hidden" > </a> <a class="titlebar__btn" ></a> <a class="titlebar__btn" ></a> </header>
Basically, we want the current path to be displayed on the left and window controls on the right. It can be achieved with Flexbox. It's a tiny layout that won't be reused, so it won't hurt if we mix it in the component module:
./assets/css/Component/titlebar.css
.titlebar { ... display: flex; flex-flow: row nowrap; align-items: stretch; ...Read now
Unlock full access