Skip to content

Commit b2c2df0

Browse files
committed
Build sample control button
1 parent 44160ac commit b2c2df0

8 files changed

+2715
-0
lines changed

index.html

+40
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<title>HackMD</title>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" type="text/css" href="vendor/font-awesome.min.css">
78
<style>
89
html, body {
910
margin: 0;
@@ -22,6 +23,27 @@
2223
flex: 1;
2324
}
2425

26+
#title-bar {
27+
-webkit-app-region: drag;
28+
padding: 0.3em 0.7em;
29+
display: flex;
30+
flex-direction: row;
31+
justify-content: space-between;
32+
33+
background-color: #f8f8f8;
34+
color: #484848;
35+
}
36+
37+
#title-bar.dark {
38+
background-color: #333333;
39+
color: white;
40+
}
41+
42+
#title-bar .window-control {
43+
float: right;
44+
-webkit-app-region: no-drag;
45+
}
46+
2547
navbar {
2648
height: 23px;
2749
align-items: center;
@@ -74,6 +96,24 @@
7496
</style>
7597
</head>
7698
<body>
99+
<div id="title-bar">
100+
<div class="window-control">
101+
<button>
102+
<i class="fa fa-bars" aria-hidden="true"></i>
103+
</button>
104+
</div>
105+
<div class="window-control">
106+
<button>
107+
<i class="fa fa-minus" aria-hidden="true"></i>
108+
</button>
109+
<button>
110+
<i class="fa fa-square-o" aria-hidden="true"></i>
111+
</button>
112+
<button>
113+
<i class="fa fa-times" aria-hidden="true"></i>
114+
</button>
115+
</div>
116+
</div>
77117
<navbar>
78118
<div id="navbar-container">
79119
<div class="control-buttons">

vendor/font-awesome.min.css

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/fonts/FontAwesome.otf

132 KB
Binary file not shown.

vendor/fonts/fontawesome-webfont.eot

162 KB
Binary file not shown.

vendor/fonts/fontawesome-webfont.svg

+2,671
Loading

vendor/fonts/fontawesome-webfont.ttf

162 KB
Binary file not shown.

vendor/fonts/fontawesome-webfont.woff

95.7 KB
Binary file not shown.
75.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)