提交 856798b6 编写于 作者: N Nemanja Stojanovic 提交者: GitHub

Merge pull request #206 from nadr0/tab-css-fix

Tab button css fix
...@@ -67,12 +67,12 @@ button:hover { ...@@ -67,12 +67,12 @@ button:hover {
.btn.active, .btn.active,
button.active { button.active {
background: rgb(38, 38, 38); background: rgb(36, 36, 36);
} }
.btn.active:hover, .btn.active:hover,
button.active:hover { button.active:hover {
background: rgba(38, 38, 38); background: rgba(36, 36, 36);
color: rgba(187, 187, 187, .8); color: rgba(187, 187, 187, .8);
} }
...@@ -90,6 +90,10 @@ button input { ...@@ -90,6 +90,10 @@ button input {
border: none; border: none;
} }
.tab_button{
border-bottom: 1px solid #505050;
}
.divider { .divider {
position: absolute !important; position: absolute !important;
z-index: 3; z-index: 3;
...@@ -396,7 +400,7 @@ section { ...@@ -396,7 +400,7 @@ section {
border: none; border: none;
top: 30px; top: 30px;
height: 30px; height: 30px;
background: rgb(38, 38, 38); background: rgb(36, 36, 36);
padding: 8px; padding: 8px;
font-size: 12px; font-size: 12px;
} }
......
...@@ -117,9 +117,9 @@ ...@@ -117,9 +117,9 @@
<div class="workspace"> <div class="workspace">
<div class="viewer_container"> <div class="viewer_container">
<section class="tab_bar"> <section class="tab_bar">
<button id="btn_doc" data-target="#tab_doc">Tracer API</button> <button class="tab_button" id="btn_doc" data-target="#tab_doc">Tracer API</button>
<button class="active" id="btn_desc" data-target="#tab_desc">Description</button> <button class="tab_button active" id="btn_desc" data-target="#tab_desc">Description</button>
<button id="btn_trace" data-target="#tab_module">Trace</button> <button class="tab_button" id="btn_trace" data-target="#tab_module">Trace</button>
</section> </section>
<section class="tab_container"> <section class="tab_container">
<div class="tab" id="tab_doc"> <div class="tab" id="tab_doc">
...@@ -136,8 +136,8 @@ ...@@ -136,8 +136,8 @@
</div> </div>
<div class="editor_container"> <div class="editor_container">
<section class="files_bar"> <section class="files_bar">
<button class="btn-left"><i class="fa fa-angle-left" aria-hidden="true"></i></button> <button class="tab_button btn-left"><i class="fa fa-angle-left" aria-hidden="true"></i></button>
<button class="btn-right"><i class="fa fa-angle-right" aria-hidden="true"></i></button> <button class="tab_button btn-right"><i class="fa fa-angle-right" aria-hidden="true"></i></button>
<div class="wrapper"></div> <div class="wrapper"></div>
</section> </section>
<section class="explanation_container"> <section class="explanation_container">
......
...@@ -24,9 +24,10 @@ module.exports = (category, algorithm, files, requestedFile) => { ...@@ -24,9 +24,10 @@ module.exports = (category, algorithm, files, requestedFile) => {
each(files, (file, explanation) => { each(files, (file, explanation) => {
var $file = addFileToDOM(category, algorithm, file, explanation); var $file = addFileToDOM(category, algorithm, file, explanation);
$file.addClass('tab_button');
if (requestedFile && requestedFile == file) $file.click(); if (requestedFile && requestedFile == file) $file.click();
}); });
if (!requestedFile) $('.files_bar > .wrapper > button').first().click(); if (!requestedFile) $('.files_bar > .wrapper > button').first().click();
$('.files_bar > .wrapper').scroll(); $('.files_bar > .wrapper').scroll();
}; };
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册