提交 cdb9104e 编写于 作者: K Kevin Nadro

fixing css

上级 8d32b475
...@@ -63,6 +63,7 @@ button { ...@@ -63,6 +63,7 @@ button {
.btn:hover, .btn:hover,
button:hover { button:hover {
background: rgba(0, 0, 0, .15); background: rgba(0, 0, 0, .15);
border-bottom: 0px solid #505050;
} }
.btn.active, .btn.active,
...@@ -90,6 +91,10 @@ button input { ...@@ -90,6 +91,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;
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册