Skip to content
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

doc: style fixes for the TOC #4748

Closed
wants to merge 2 commits into from
Closed
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
13 changes: 11 additions & 2 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,18 +370,27 @@ span.type {
width: 234px;
background: #333;
position: fixed;
left: 0;
top: 0;
height: 100%;
overflow: hidden;
}

#column2 .no-scrollbar {
overflow-y: scroll;
height: 100%;
width: 100%;
padding-right: 20px;
}

#column2.interior:after {
#column2 .no-scrollbar:after {
content: '';
position: fixed;
bottom: 0;
left: 0;
width: 234px;
height: 4em;
background: linear-gradient(rgba(242,245,240, 0), rgba(51, 51, 51, 1));
background: linear-gradient(rgba(51, 51, 51, 0), rgba(51, 51, 51, 1));
pointer-events: none;
}

Expand Down
12 changes: 7 additions & 5 deletions doc/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
<body class="alt apidoc" id="api-section-__FILENAME__">
<div id="content" class="clearfix">
<div id="column2" class="interior">
<div id="intro" class="interior">
<a href="/" title="Go back to the home page">
Node.js (1)
</a>
<div class="no-scrollbar">
<div id="intro" class="interior">
<a href="/" title="Go back to the home page">
Node.js (1)
</a>
</div>
__GTOC__
</div>
__GTOC__
</div>

<div id="column1" data-id="__ID__" class="interior">
Expand Down