Skip to content

Commit

Permalink
Merge pull request #177 from Teradata/devportal-715
Browse files Browse the repository at this point in the history
update TOC Color-task 718
  • Loading branch information
ObedVega authored Mar 7, 2024
2 parents 06f991a + 2171eb4 commit 2dfac36
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 9 deletions.
70 changes: 62 additions & 8 deletions supplemental_ui/partials/head-meta.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ main.article {
*/
.toc .toc-menu a:hover {
/* color: #f3743f; */
color: #FF5F02;
color: #3053F4;
}
.nav-container {
Expand Down Expand Up @@ -676,20 +676,74 @@ aside.toc.sidebar {
.is-current-page>.nav-link,
.is-current-page>.nav-text {
font-weight: initial;
color: #00233C;
font-weight: 400;
color: #171A2C;
}
.is-current-page {
background: rgba(255, 125, 2, 0.08);
border-radius: 0px 16px 16px 0px;
background: #ECECFE;
border-radius: 16px 16px 16px 16px;
padding: 2px 10px;
margin-left: -10px;
}
.nav-item.is-active{
padding: 2px 10px;
margin-left: -10px;
width: 170px;
}
.toc .toc-menu a.is-active {
border-left-color: #FF5F02;
color: rgba(0, 0, 0, 0.87);
/* Hover effect in menu */
.nav-item.is-active a:hover {
text-decoration: none;
}
.nav-item.is-active[data-depth="2"]:not(:has(> ul.nav-list > li[data-depth="3"])):hover {
background: rgba(30, 29, 30, 0.08);
border-radius: 16px;
padding: 2px 10px;
margin-left: -10px;
width: 170px;
}
.nav-item.is-active[data-depth="3"]:hover {
background: rgba(30, 29, 30, 0.08);
border-radius: 16px;
padding: 2px 10px;
margin-left: -10px;
width: 170px;
}
.nav-item.is-active[data-depth="2"]:has(> ul.nav-list > li[data-depth="3"]):hover {
background: transparent;
}
.nav-item.is-active[data-depth="2"]:last-child:hover {
background: rgba(30, 29, 30, 0.08);
border-radius: 16px;
padding: px 10px;
margin-left: -10px;
width: 125%;
}
/* Hover effect in menu */
.toc .toc-menu a.is-active {
border-left-color: #3053F4;
color: rgba(51, 68, 62, 1);
font-weight: 700;
}
.toc .toc-menu a {
border-left: 2px solid rgba(48, 83, 244, 0.2);
}
.sidebar.toc .toc-menu a {
line-height: 20px;
}
.toc .toc-menu h3 {
color: #333A3E;
font-weight: 600;
font-size: 20px;
line-height: 28px;
letter-spacing: 0.15px;
}
.page-controls {
padding-top: 12px;
font-size: 14px;
Expand Down
2 changes: 1 addition & 1 deletion supplemental_ui/partials/toc.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<aside class="toc sidebar" data-title="{{or page.attributes.toctitle 'Contents'}}" data-levels="{{{or page.attributes.toclevels 2}}}">
<aside class="toc sidebar" data-title="{{#if (ne page.attributes.lang 'ja')}}{{or page.attributes.toctitle 'Contents'}}{{else}}コンテンツ{{/if}}" data-levels="{{{or page.attributes.toclevels 2}}}">
<div class="page-controls">
{{#if (ne page.attributes.lang 'ja')}}
<a href="https://github.com/Teradata/quickstarts/issues"><div class="report-an-issue">Report an issue</div></a>
Expand Down

0 comments on commit 2dfac36

Please sign in to comment.