Sync rdoc
This commit is contained in:
parent
a6581114b0
commit
908305a297
@ -677,7 +677,6 @@ class RDoc::Generator::Darkfish
|
|||||||
return body if body =~ /<html/
|
return body if body =~ /<html/
|
||||||
|
|
||||||
head_file = @template_dir + '_head.rhtml'
|
head_file = @template_dir + '_head.rhtml'
|
||||||
footer_file = @template_dir + '_footer.rhtml'
|
|
||||||
|
|
||||||
<<-TEMPLATE
|
<<-TEMPLATE
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@ -687,8 +686,6 @@ class RDoc::Generator::Darkfish
|
|||||||
#{head_file.read}
|
#{head_file.read}
|
||||||
|
|
||||||
#{body}
|
#{body}
|
||||||
|
|
||||||
#{footer_file.read}
|
|
||||||
TEMPLATE
|
TEMPLATE
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -24,7 +24,9 @@ body {
|
|||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body > :last-child {
|
body > :last-child {
|
||||||
@ -209,16 +211,35 @@ nav {
|
|||||||
border-right: 1px solid #ccc;
|
border-right: 1px solid #ccc;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
overflow: auto;
|
bottom: 0;
|
||||||
|
overflow: hidden;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
width: var(--sidebar-width);
|
width: var(--sidebar-width);
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: white;
|
background: white;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav[hidden] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav #project-metadata {
|
||||||
|
overflow: auto; /* Make the content scrollable */
|
||||||
|
flex: 1; /* Take up remaining space */
|
||||||
|
}
|
||||||
|
|
||||||
|
nav footer {
|
||||||
|
padding: 1em;
|
||||||
|
border-top: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
flex: 1;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 3em auto 1em;
|
margin: 3em auto 1em;
|
||||||
padding: 0 1em; /* Add padding to keep space between main content and sidebar/right side of the screen */
|
padding: 0 1em; /* Add padding to keep space between main content and sidebar/right side of the screen */
|
||||||
@ -728,8 +749,4 @@ pre {
|
|||||||
font-family: "Source Code Pro", Monaco, monospace;
|
font-family: "Source Code Pro", Monaco, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
|
||||||
z-index: 20;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* @end */
|
/* @end */
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<%= render '_sidebar_pages.rhtml' %>
|
<%= render '_sidebar_pages.rhtml' %>
|
||||||
<%= render '_sidebar_classes.rhtml' %>
|
<%= render '_sidebar_classes.rhtml' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<%= render '_footer.rhtml' %>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<main role="main">
|
<main role="main">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user