Skip to content

Commit caeb77e

Browse files
authored
Merge pull request algorithm-visualizer#154 from nem035/css-improvements
Css improvements
2 parents 4ec34be + 0c26637 commit caeb77e

10 files changed

+85
-35
lines changed

AlgorithmVisualizer.wiki

css/stylesheet.css

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ button:not([disabled]):hover {
6363
button.active {
6464
background: rgb(38, 38, 38);
6565
}
66-
6766
.btn input,
6867
button input {
6968
outline: none;
@@ -89,6 +88,7 @@ nav {
8988
height: 30px;
9089
width: 100%;
9190
padding: 0 16px;
91+
box-shadow: 0px 0px 3px 1px black;
9292
}
9393

9494
nav h3 {
@@ -200,6 +200,9 @@ section {
200200

201201
.tab_container {
202202
top: 30px;
203+
background: #242424;
204+
border: 1px solid #505050;
205+
border-top: none;
203206
}
204207

205208
.tab {
@@ -221,6 +224,9 @@ section {
221224

222225
.module_wrapper {
223226
overflow: scroll;
227+
font-family: monospace;
228+
border: none;
229+
border-bottom: 1px solid #505050;
224230
}
225231

226232
.module_wrapper .name {
@@ -249,15 +255,28 @@ section {
249255

250256
.tab_bar {
251257
height: 30px;
258+
border-left: none;
259+
border-bottom: 1px solid #505050;
252260
}
253261

254-
.files_bar {
255-
height: 30px;
262+
.tab_bar button,
263+
.files_bar button {
264+
height: 29px;
265+
float: left;
266+
position: relative;
267+
border-top-left-radius: 3px;
268+
border-top-right-radius: 3px;
256269
}
257270

258-
.files_bar > * {
259-
position: absolute;
260-
height: 100%
271+
.tab_bar button.active,
272+
.files_bar button.active {
273+
border: 1px solid #505050;
274+
border-bottom: none;
275+
}
276+
277+
.files_bar {
278+
height: 30px;
279+
border-bottom: 1px solid #505050;
261280
}
262281

263282
.files_bar > button {
@@ -268,12 +287,12 @@ section {
268287
background: rgba(0, 0, 0, .15);
269288
}
270289

271-
.files_bar > .btn-left {
272-
left: 0;
290+
.files_bar .btn-right {
291+
float: right;
273292
}
274293

275-
.files_bar > .btn-right {
276-
right: 0;
294+
.files_bar .btn-left {
295+
float: left;
277296
}
278297

279298
.files_bar > .wrapper {
@@ -399,6 +418,7 @@ pre {
399418
display: inline-table;
400419
color: white;
401420
table-layout: fixed;
421+
border: 1px solid #505050;
402422
}
403423

404424
.mtbl-row {
@@ -425,11 +445,11 @@ pre {
425445
}
426446

427447
.mtbl-col.selected {
428-
background: #00f;
448+
background: #2962ff;
429449
}
430450

431451
.mtbl-col.notified {
432-
background: #f00;
452+
background: #f50057;
433453
}
434454

435455
.mchrt-chart {
@@ -550,3 +570,8 @@ button[disabled] {
550570
from { background: rgba(0, 174, 255, 0.1); }
551571
to { background: rgba(0, 174, 255, 0.4); }
552572
}
573+
574+
.ace_editor {
575+
border-left: none;
576+
border-bottom: none;
577+
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ <h3>
117117
<div class="editor_container">
118118
<section class="files_bar">
119119
<button class="btn-left"><i class="fa fa-angle-left" aria-hidden="true"></i></button>
120-
<div class="wrapper"></div>
121120
<button class="btn-right"><i class="fa fa-angle-right" aria-hidden="true"></i></button>
121+
<div class="wrapper"></div>
122122
</section>
123123
<section class="explanation_container">
124124
<span id="explanation"></span>

js/module/tracer/directed_graph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class DirectedGraphTracer extends Tracer {
1515
super(name);
1616

1717
this.color = {
18-
selected: '#0f0',
19-
visited: '#f00',
18+
selected: '#2962ff',
19+
visited: '#f50057',
2020
left: '#000',
2121
default: '#888'
2222
};

public/algorithm_visualizer.css

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ button:not([disabled]):hover {
183183
button.active {
184184
background: rgb(38, 38, 38);
185185
}
186-
187186
.btn input,
188187
button input {
189188
outline: none;
@@ -209,6 +208,7 @@ nav {
209208
height: 30px;
210209
width: 100%;
211210
padding: 0 16px;
211+
box-shadow: 0px 0px 3px 1px black;
212212
}
213213

214214
nav h3 {
@@ -320,6 +320,9 @@ section {
320320

321321
.tab_container {
322322
top: 30px;
323+
background: #242424;
324+
border: 1px solid #505050;
325+
border-top: none;
323326
}
324327

325328
.tab {
@@ -341,6 +344,9 @@ section {
341344

342345
.module_wrapper {
343346
overflow: scroll;
347+
font-family: monospace;
348+
border: none;
349+
border-bottom: 1px solid #505050;
344350
}
345351

346352
.module_wrapper .name {
@@ -369,15 +375,28 @@ section {
369375

370376
.tab_bar {
371377
height: 30px;
378+
border-left: none;
379+
border-bottom: 1px solid #505050;
372380
}
373381

374-
.files_bar {
375-
height: 30px;
382+
.tab_bar button,
383+
.files_bar button {
384+
height: 29px;
385+
float: left;
386+
position: relative;
387+
border-top-left-radius: 3px;
388+
border-top-right-radius: 3px;
376389
}
377390

378-
.files_bar > * {
379-
position: absolute;
380-
height: 100%
391+
.tab_bar button.active,
392+
.files_bar button.active {
393+
border: 1px solid #505050;
394+
border-bottom: none;
395+
}
396+
397+
.files_bar {
398+
height: 30px;
399+
border-bottom: 1px solid #505050;
381400
}
382401

383402
.files_bar > button {
@@ -388,12 +407,12 @@ section {
388407
background: rgba(0, 0, 0, .15);
389408
}
390409

391-
.files_bar > .btn-left {
392-
left: 0;
410+
.files_bar .btn-right {
411+
float: right;
393412
}
394413

395-
.files_bar > .btn-right {
396-
right: 0;
414+
.files_bar .btn-left {
415+
float: left;
397416
}
398417

399418
.files_bar > .wrapper {
@@ -520,6 +539,7 @@ pre {
520539
display: inline-table;
521540
color: white;
522541
table-layout: fixed;
542+
border: 1px solid #505050;
523543
}
524544

525545
.mtbl-row {
@@ -546,11 +566,11 @@ pre {
546566
}
547567

548568
.mtbl-col.selected {
549-
background: #00f;
569+
background: #2962ff;
550570
}
551571

552572
.mtbl-col.notified {
553-
background: #f00;
573+
background: #f50057;
554574
}
555575

556576
.mchrt-chart {
@@ -690,3 +710,8 @@ button[disabled] {
690710
from { background: rgba(0, 174, 255, 0.1); }
691711
to { background: rgba(0, 174, 255, 0.4); }
692712
}
713+
714+
.ace_editor {
715+
border-left: none;
716+
border-bottom: none;
717+
}

public/algorithm_visualizer.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/algorithm_visualizer.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)