Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ec07b2

Browse files
authored
Merge pull requestalgorithm-visualizer#206 from nadr0/tab-css-fix
Tab button css fix
2 parents8ceb11e +f7ad1be commit8ec07b2

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
<divclass="workspace">
118118
<divclass="viewer_container">
119119
<sectionclass="tab_bar">
120-
<buttonid="btn_doc"data-target="#tab_doc">Tracer API</button>
121-
<buttonclass="active"id="btn_desc"data-target="#tab_desc">Description</button>
122-
<buttonid="btn_trace"data-target="#tab_module">Trace</button>
120+
<buttonclass="tab_button"id="btn_doc"data-target="#tab_doc">Tracer API</button>
121+
<buttonclass="tab_buttonactive"id="btn_desc"data-target="#tab_desc">Description</button>
122+
<buttonclass="tab_button"id="btn_trace"data-target="#tab_module">Trace</button>
123123
</section>
124124
<sectionclass="tab_container">
125125
<divclass="tab"id="tab_doc">
@@ -136,8 +136,8 @@ <h3>
136136
</div>
137137
<divclass="editor_container">
138138
<sectionclass="files_bar">
139-
<buttonclass="btn-left"><iclass="fa fa-angle-left"aria-hidden="true"></i></button>
140-
<buttonclass="btn-right"><iclass="fa fa-angle-right"aria-hidden="true"></i></button>
139+
<buttonclass="tab_buttonbtn-left"><iclass="fa fa-angle-left"aria-hidden="true"></i></button>
140+
<buttonclass="tab_buttonbtn-right"><iclass="fa fa-angle-right"aria-hidden="true"></i></button>
141141
<divclass="wrapper"></div>
142142
</section>
143143
<sectionclass="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)

[8]ページ先頭

©2009-2025 Movatter.jp