Add tabs for chapters and other segments

This commit is contained in:
Ajay
2021-12-24 02:13:25 -05:00
parent c38cc07e0a
commit 798fd8b3f3
4 changed files with 93 additions and 2 deletions

View File

@@ -25,6 +25,12 @@
"Segments": {
"message": "segments"
},
"SegmentsCap": {
"message": "Segments"
},
"Chapters": {
"message": "Chapters"
},
"upvoteButtonInfo": {
"message": "Upvote this submission"
},

View File

@@ -409,3 +409,37 @@ label>p, #disableExtension>p, #usernameValue, #usernameElement > div > p,#sponso
border-radius: 5px;
}
#issueReporterTabs {
margin: 5px;
}
#issueReporterTabs > span {
padding: 2px 4px;
margin: 0 3px;
cursor: pointer;
background-color: #444848;
border-radius: 10px;
}
#issueReporterTabs > span > span {
position: relative;
padding: 0.2em 0;
}
#issueReporterTabs > span > span::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 0.1em;
background-color: rgb(145, 0, 0);
transition: transform 300ms;
transform: scaleX(0);
transform-origin: center;
}
#issueReporterTabs > span.sbSelected > span::after {
transform: scaleX(0.8);
}

View File

@@ -24,6 +24,14 @@
</button>
</div>
<div id="issueReporterContainer">
<div id="issueReporterTabs" class="hidden">
<span id="issueReporterTabSegments" class="sbSelected">
<span>__MSG_SegmentsCap__</span>
</span>
<span id="issueReporterTabChapters">
<span>__MSG_Chapters__</span>
</span>
</div>
<div id="issueReporterTimeButtons"></div>
</div>
</div>