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 */
|
/* vim: ft=css et sw=2 ts=2 sts=2 */
|
||||||
/* Base Green is: #6C8C22 */
|
/* Base Green is: #6C8C22 */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--sidebar-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
.hide { display: none !important; }
|
.hide { display: none !important; }
|
||||||
|
|
||||||
* { padding: 0; margin: 0; }
|
* { padding: 0; margin: 0; }
|
||||||
@ -209,21 +213,15 @@ nav {
|
|||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
width: 300px;
|
width: var(--sidebar-width);
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: white;
|
background: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
nav {
|
|
||||||
min-height: unset;
|
|
||||||
height: calc(100vh - 100px); /* reduce the footer height */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
display: block;
|
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;
|
min-width: 340px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -232,8 +230,7 @@ main {
|
|||||||
|
|
||||||
@media (min-width: 1024px) {
|
@media (min-width: 1024px) {
|
||||||
main {
|
main {
|
||||||
margin-left: auto;
|
margin-left: var(--sidebar-width);
|
||||||
margin-right: auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -731,4 +728,8 @@ pre {
|
|||||||
font-family: "Source Code Pro", Monaco, monospace;
|
font-family: "Source Code Pro", Monaco, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
/* @end */
|
/* @end */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user