Skip to content

Tab button css fix #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions css/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ button:hover {

.btn.active,
button.active {
background: rgb(38, 38, 38);
background: rgb(36, 36, 36);
}

.btn.active:hover,
button.active:hover {
background: rgba(38, 38, 38);
background: rgba(36, 36, 36);
color: rgba(187, 187, 187, .8);
}

Expand All @@ -90,6 +90,10 @@ button input {
border: none;
}

.tab_button{
border-bottom: 1px solid #505050;
}

.divider {
position: absolute !important;
z-index: 3;
Expand Down Expand Up @@ -396,7 +400,7 @@ section {
border: none;
top: 30px;
height: 30px;
background: rgb(38, 38, 38);
background: rgb(36, 36, 36);
padding: 8px;
font-size: 12px;
}
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ <h3>
<div class="workspace">
<div class="viewer_container">
<section class="tab_bar">
<button id="btn_doc" data-target="#tab_doc">Tracer API</button>
<button class="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_doc" data-target="#tab_doc">Tracer API</button>
<button class="tab_button active" id="btn_desc" data-target="#tab_desc">Description</button>
<button class="tab_button" id="btn_trace" data-target="#tab_module">Trace</button>
</section>
<section class="tab_container">
<div class="tab" id="tab_doc">
Expand All @@ -136,8 +136,8 @@ <h3>
</div>
<div class="editor_container">
<section class="files_bar">
<button class="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-left"><i class="fa fa-angle-left" 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>
</section>
<section class="explanation_container">
Expand Down
3 changes: 2 additions & 1 deletion js/dom/add_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ module.exports = (category, algorithm, files, requestedFile) => {

each(files, (file, explanation) => {
var $file = addFileToDOM(category, algorithm, file, explanation);
$file.addClass('tab_button');
if (requestedFile && requestedFile == file) $file.click();
});

if (!requestedFile) $('.files_bar > .wrapper > button').first().click();
$('.files_bar > .wrapper').scroll();
};
};
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