Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 8f50759

Browse files
authored
Merge pull request #4 from negar-binary/negar/header
fix header style
2 parents 149a7c7 + 166dc07 commit 8f50759

File tree

2 files changed

+41
-28
lines changed

2 files changed

+41
-28
lines changed

static/css/bot.css

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ th, td {
156156
margin-bottom: 5px;
157157
}
158158
#fixed-bar-right button {
159-
background-color: #F2F2F2;
159+
background-color: #F2F2F2;
160160
border: 1px solid #ddd;
161161
padding: 2.5px 6px;
162162
color: black;
@@ -251,28 +251,31 @@ button:focus {
251251
border-top: 2px solid #394171;
252252
border-bottom: 4px solid #e98024;
253253
font-size: 18px;
254-
}
255-
.wrapper {
256-
max-width: 960px;
257-
margin: 0 auto;
254+
padding: 0 20px;
258255
}
259256
#header #logo div {
260257
display: inline-block;
261258
}
262259
#topbar {
263260
background-color: #15212d;
264261
width: 100%;
265-
height: 20px;
266262
color: #fff;
267263
line-height: 1;
264+
font-size: 70%;
265+
text-align: right;
266+
padding: 3px 20px;
267+
display: table;
268268
}
269269
#logo {
270270
display: inline-block;
271-
margin-top: 15px;
271+
margin-top: 5px;
272+
}
273+
.symbol-logo {
274+
width: 22%;
272275
}
273276
.type-logo {
274-
width: 80%;
275-
margin-left: 10px;
277+
width: 57%;
278+
margin-left: 8px;
276279
}
277280

278281
.left-header {
@@ -283,12 +286,27 @@ button:focus {
283286
float: right;
284287
}
285288

289+
#header .right-header {
290+
margin-top: 5px;
291+
}
292+
286293
#logout, #accountSelect, #login{
287294
display: none;
288295
}
289296

297+
#logout, #login{
298+
display: inline-block;
299+
letter-spacing: .75px;
300+
padding: 6px;
301+
text-transform: uppercase;
302+
font-size: 0.7em;
303+
}
304+
290305
#login {
291-
margin-top: 25px;
306+
padding: 0 10px;
307+
font-size: 0.8em;
308+
line-height: 2em;
309+
margin: 0.8em 0;
292310
}
293311

294312
.btn-primary {
@@ -303,4 +321,4 @@ button:focus {
303321
text-decoration: none !important;
304322
background-color: #14602B !important;
305323
border-color: #14602B !important;
306-
}
324+
}

templates/bot.mustache

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,31 @@
1818
<div id="center"></div>
1919
<div class="spinning"><img src="image/binary-symbol-logo.svg"/></div>
2020
<div id="topbar">
21-
<div class="wrapper">
22-
<div class="right-header">
23-
{{> language }}
24-
<select id="tours">
25-
<option value="" data-i18n-text="Select a Tour"></option>
26-
<option value="welcome" data-i18n-text="Welcome!"></option>
27-
<option value="introduction" data-i18n-text="Introduction"></option>
28-
</select>
29-
</div>
30-
</div>
21+
<div class="right-header">
22+
{{> language }}
23+
<select id="tours">
24+
<option value="" data-i18n-text="Select a Tour"></option>
25+
<option value="welcome" data-i18n-text="Welcome!"></option>
26+
<option value="introduction" data-i18n-text="Introduction"></option>
27+
</select>
28+
</div>
3129
</div>
3230
<div id="header">
33-
<div class="wrapper">
3431
<div class="left-header">
3532
<a href="" id="logo">
36-
<div><img class="symbol-logo" src="image/binary-symbol-logo.svg" alt="Binary-logo" /></div>
37-
<div><img class="type-logo" src="image/binary-type-logo.svg" alt="Binary-logo"></div>
33+
<img class="symbol-logo" src="image/binary-symbol-logo.svg" alt="Binary-logo" />
34+
<img class="type-logo" src="image/binary-type-logo.svg" alt="Binary-logo">
3835
</a>
3936
</div>
4037
<div class="right-header">
4138
<div>
42-
<select id="accountSelect">
43-
</select>
39+
<select id="accountSelect"></select>
4440
</div>
4541
<div class="intro-token">
46-
<button id="logout" data-i18n-text="Logout"></button>
42+
<button id="logout" data-i18n-text="Log out"></button>
4743
<button title="Add your tokens to the bot" id="login" data-i18n-text="Login"></button>
4844
</div>
4945
</div>
50-
</div>
5146
</div>
5247
<div id="blocklyDiv"></div>
5348
<div id="summaryPanel" class="panel">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy