user docs: Apply highlights to documentation indexes.

This commit is contained in:
Cynthia Lin
2017-12-28 10:12:14 -08:00
committed by showell
parent fa92a35f17
commit 5df9011ae5
2 changed files with 10 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ function registerCodeSection($codeSection) {
function highlight_current_article() {
$('.help .sidebar a').removeClass('highlighted');
var path = window.location.href.match(/\/(help|api)\/.+/);
var path = window.location.href.match(/\/(help|api)\/.*/);
if (!path) {
return;

View File

@@ -145,21 +145,25 @@ body {
.help .sidebar h1,
.help .sidebar h2 {
font-size: 1.2em;
font-weight: 400;
margin-bottom: 5px;
line-height: 105%;
}
.help .sidebar h1 {
font-size: 1.25em;
line-height: 1.5;
margin-bottom: 0px;
}
.help .sidebar h1:not(:first-of-type) {
margin-top: 20px;
}
.help .sidebar.slide h1,
.help .sidebar h2 {
font-size: 1.2em;
line-height: 1.05;
margin-bottom: 5px;
}
.help .sidebar.slide h2 {
cursor: pointer;
}
@@ -205,7 +209,7 @@ body {
display: block;
}
.help .sidebar li a.highlighted {
.help .sidebar a.highlighted {
background-color: hsl(152, 40%, 42%);
/* Extend highlight to entire width of sidebar, not just link area */