Skip to content

Better Sidebar UX #27

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

Merged
merged 2 commits into from
Sep 5, 2019
Merged
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
24 changes: 24 additions & 0 deletions src/_includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -3635,6 +3635,14 @@

</li>

<li>


<a href="/files/activemodel/lib/active_model/type/helpers/timezone_rb.html">timezone.rb</a>


</li>

</ul>


Expand Down Expand Up @@ -7748,6 +7756,14 @@

<ul style="display:none;">

<li>


<a href="/files/activesupport/lib/active_support/core_ext/range/compare_range_rb.html">compare_range.rb</a>


</li>

<li>


Expand Down Expand Up @@ -15350,6 +15366,14 @@

</li>

<li>


<a href="/classes/ActiveModel/Type/Helpers/Timezone.html">Timezone</a>


</li>

</ul>


Expand Down
10 changes: 7 additions & 3 deletions src/_sass/railsdoc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ code {
position: sticky;
order: 2;
top: $navbar-height;
height: calc(100vh - #{$navbar-height});
max-height: calc(100vh - #{$navbar-height});
z-index: 100; /* Behind the navbar */
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
overflow-y: auto;

.toc-content {
padding-top: 20px;
Expand All @@ -60,7 +61,7 @@ code {
}

.section-nav {
padding-left: 1rem;
padding-left: .5rem;
border-left: 1px solid #eee;

ul {
Expand All @@ -80,6 +81,9 @@ code {

.toc-entry {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.sidebar-content {
Expand Down Expand Up @@ -177,7 +181,7 @@ code {
margin-top: 1rem;
}

h2[id]::before, h3[id]::before, h4[id]::before, h5[id]::before {
h2[id]::before, h3[id]::before, h4[id]::before, h5[id]::before, h6[id]::before {
display: block;
height: $hacky-div-height;
margin-top: -$hacky-div-height;
Expand Down
2 changes: 1 addition & 1 deletion src/created.rid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Fri, 17 May 2019 23:08:50 +0900
Sun, 19 May 2019 01:05:25 +0900
railties/RDOC_MAIN.rdoc Wed, 13 Feb 2019 05:46:11 +0900
activesupport/README.rdoc Wed, 13 Feb 2019 05:46:11 +0900
activesupport/lib/active_support/all.rb Wed, 16 Jan 2019 00:38:48 +0900
Expand Down