官术网_书友最值得收藏!

Styling the title bar

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;
}
.titlebar__path {
flex: 1 1 auto;
}
.titlebar__btn {
flex: 0 0 25px;
cursor: pointer;
}
主站蜘蛛池模板: 阜阳市| 扬州市| 荔波县| 连江县| 万盛区| 凌云县| 永顺县| 吉首市| 财经| 台江县| 安远县| 东丰县| 吉隆县| 五莲县| 大洼县| 自治县| 邮箱| 石台县| 岳池县| 台湾省| 金湖县| 鸡泽县| 南溪县| 玛纳斯县| 汾阳市| 宿州市| 瑞金市| 潼关县| 故城县| 景宁| 邵武市| 武陟县| 金坛市| 巢湖市| 尼勒克县| 子长县| 永修县| 靖宇县| 陕西省| 铜梁县| 湛江市|