-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed jekyll tabs plugin to allow compiling with github pages
- Loading branch information
1 parent
acdee17
commit d20a37b
Showing
7 changed files
with
163 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.tab-container { | ||
width: 100%; | ||
margin-bottom: 200pxpx; | ||
} | ||
|
||
.tab-list { | ||
list-style: none; | ||
padding: 0 !important; | ||
margin: 0 !important; | ||
display: flex; | ||
cursor: pointer; | ||
} | ||
|
||
.tab { | ||
padding: 5px 15px; | ||
background: #fff; | ||
border: 1px solid #ccc; | ||
margin-right: 2px; | ||
margin-left: 0px; | ||
color: #7253ed; | ||
margin: 0px; | ||
} | ||
|
||
.tab.active { | ||
background: #f5f6fa; | ||
border-bottom: none; | ||
font-weight: bold; | ||
color: #7253ed; | ||
} | ||
|
||
.tab-content { | ||
padding: 0px; | ||
display: none; | ||
margin: 0px; | ||
} | ||
|
||
.tab-content.active { | ||
display: block; | ||
width: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.tab-content.active > * > .sb { | ||
color: #000 !important; | ||
} | ||
|
||
.tab.active::before { | ||
content: '' !important; | ||
} | ||
|
||
.tab::before { | ||
content: '' !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
document.addEventListener("DOMContentLoaded", function () { | ||
const tabContainers = document.querySelectorAll(".tab-container"); | ||
|
||
tabContainers.forEach(container => { | ||
const tabs = container.querySelectorAll(".tab"); | ||
const contents = container.querySelectorAll(".tab-content"); | ||
|
||
tabs.forEach(tab => { | ||
tab.addEventListener("click", function () { | ||
const target = this.getAttribute("data-tab"); | ||
|
||
tabs.forEach(tab => tab.classList.remove("active")); | ||
this.classList.add("active"); | ||
|
||
contents.forEach(content => content.classList.remove("active")); | ||
container.querySelector(`#${target}`).classList.add("active"); | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.