Skip to content

Commit 8ec07b2

Browse files
authored
Merge pull request algorithm-visualizer#206 from nadr0/tab-css-fix
Tab button css fix
2 parents 8ceb11e + f7ad1be commit 8ec07b2

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

css/stylesheet.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ button:hover {
6767

6868
.btn.active,
6969
button.active {
70-
background: rgb(38, 38, 38);
70+
background: rgb(36, 36, 36);
7171
}
7272

7373
.btn.active:hover,
7474
button.active:hover {
75-
background: rgba(38, 38, 38);
75+
background: rgba(36, 36, 36);
7676
color: rgba(187, 187, 187, .8);
7777
}
7878

@@ -90,6 +90,10 @@ button input {
9090
border: none;
9191
}
9292

93+
.tab_button{
94+
border-bottom: 1px solid #505050;
95+
}
96+
9397
.divider {
9498
position: absolute !important;
9599
z-index: 3;
@@ -396,7 +400,7 @@ section {
396400
border: none;
397401
top: 30px;
398402
height: 30px;
399-
background: rgb(38, 38, 38);
403+
background: rgb(36, 36, 36);
400404
padding: 8px;
401405
font-size: 12px;
402406
}

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ <h3>
117117
<div class="workspace">
118118
<div class="viewer_container">
119119
<section class="tab_bar">
120-
<button id="btn_doc" data-target="#tab_doc">Tracer API</button>
121-
<button class="active" id="btn_desc" data-target="#tab_desc">Description</button>
122-
<button id="btn_trace" data-target="#tab_module">Trace</button>
120+
<button class="tab_button" id="btn_doc" data-target="#tab_doc">Tracer API</button>
121+
<button class="tab_button active" id="btn_desc" data-target="#tab_desc">Description</button>
122+
<button class="tab_button" id="btn_trace" data-target="#tab_module">Trace</button>
123123
</section>
124124
<section class="tab_container">
125125
<div class="tab" id="tab_doc">
@@ -136,8 +136,8 @@ <h3>
136136
</div>
137137
<div class="editor_container">
138138
<section class="files_bar">
139-
<button class="btn-left"><i class="fa fa-angle-left" aria-hidden="true"></i></button>
140-
<button class="btn-right"><i class="fa fa-angle-right" aria-hidden="true"></i></button>
139+
<button class="tab_button btn-left"><i class="fa fa-angle-left" aria-hidden="true"></i></button>
140+
<button class="tab_button btn-right"><i class="fa fa-angle-right" aria-hidden="true"></i></button>
141141
<div class="wrapper"></div>
142142
</section>
143143
<section class="explanation_container">

js/dom/add_files.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ module.exports = (category, algorithm, files, requestedFile) => {
2424

2525
each(files, (file, explanation) => {
2626
var $file = addFileToDOM(category, algorithm, file, explanation);
27+
$file.addClass('tab_button');
2728
if (requestedFile && requestedFile == file) $file.click();
2829
});
2930

3031
if (!requestedFile) $('.files_bar > .wrapper > button').first().click();
3132
$('.files_bar > .wrapper').scroll();
32-
};
33+
};

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