Sync rdoc to fix master doc's display issue (#11345)
Sync rdoc This syncs changes made in https://github.com/ruby/rdoc/pull/1148, which will fix https://docs.ruby-lang.org/en/master/'s display on certain screens.
This commit is contained in:
parent
0bff07644b
commit
64a7b87e1d
Notes:
git
2024-08-08 20:03:06 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
@ -9,6 +9,10 @@
|
||||
/* vim: ft=css et sw=2 ts=2 sts=2 */
|
||||
/* Base Green is: #6C8C22 */
|
||||
|
||||
:root {
|
||||
--sidebar-width: 300px;
|
||||
}
|
||||
|
||||
.hide { display: none !important; }
|
||||
|
||||
* { padding: 0; margin: 0; }
|
||||
@ -209,21 +213,15 @@ nav {
|
||||
z-index: 10;
|
||||
|
||||
/* Layout */
|
||||
width: 300px;
|
||||
width: var(--sidebar-width);
|
||||
min-height: 100vh;
|
||||
background: white;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
nav {
|
||||
min-height: unset;
|
||||
height: calc(100vh - 100px); /* reduce the footer height */
|
||||
}
|
||||
}
|
||||
|
||||
main {
|
||||
display: block;
|
||||
margin: 3em 1em 1em;
|
||||
margin: 3em auto 1em;
|
||||
padding: 0 1em; /* Add padding to keep space between main content and sidebar/right side of the screen */
|
||||
min-width: 340px;
|
||||
font-size: 16px;
|
||||
width: 100%;
|
||||
@ -232,8 +230,7 @@ main {
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
main {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-left: var(--sidebar-width);
|
||||
}
|
||||
}
|
||||
|
||||
@ -731,4 +728,8 @@ pre {
|
||||
font-family: "Source Code Pro", Monaco, monospace;
|
||||
}
|
||||
|
||||
footer {
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
/* @end */
|
||||
|
Loading…
x
Reference in New Issue
Block a user