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

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;
}
主站蜘蛛池模板: 吐鲁番市| 芦山县| 博爱县| 九龙县| 南雄市| 米脂县| 云安县| 普兰店市| 乌兰浩特市| 来安县| 阿图什市| 巫溪县| 沧州市| 陆河县| 沧州市| 阳西县| 石棉县| 宕昌县| 嘉荫县| 通山县| 华蓥市| 镇坪县| 民勤县| 高密市| 徐汇区| 老河口市| 奎屯市| 绩溪县| 宁海县| 蓬莱市| 奉贤区| 双城市| 巴楚县| 贵南县| 孙吴县| 云霄县| 那坡县| 平江县| 建湖县| 家居| 霍州市|