ray/doc/source/_static/css/custom.css
Max Pumperla f9b71a8bf6
[docs] new structure (#21776)
This PR consolidates both #21667 and #21759 (look there for features), but improves on them in the following way:

- [x] we reverted renaming of existing projects `tune`, `rllib`, `train`, `cluster`, `serve`, `raysgd` and `data` so that links won't break. I think my consolidation efforts with the `ray-` prefix were a little overeager in that regard. It's better like this. Only the creation of `ray-core` was a necessity, and some files moved into the `rllib` folder, so that should be relatively benign.
- [x] Additionally, we added Algolia `docsearch`, screenshot below. This is _much_ better than our current search. Caveat: there's a sphinx dependency that needs to be replaced (`sphinx-tabs`) by another, newer one (`sphinx-panels`), as the former prevents loading of the `algolia.js` library. Will follow-up in the next PR (hoping this one doesn't get re-re-re-re-reverted).
2022-01-21 15:42:05 -08:00

101 lines
1.8 KiB
CSS

/* For Algolia*/
/*#site-navigation { overflow: visible; }*/
/*Extends the docstring signature box.*/
.rst-content dl:not(.docutils) dt {
display: block;
padding: 10px;
word-wrap: break-word;
padding-right: 100px;
}
/*Lists in an admonition note do not have awkward whitespace below.*/
.rst-content .admonition-note .section ul {
margin-bottom: 0px;
}
/*Properties become blue (classmethod, staticmethod, property)*/
.rst-content dl dt em.property {
color: #2980b9;
text-transform: uppercase;
}
.rst-content .section ol p,
.rst-content .section ul p {
margin-bottom: 0px;
}
div.sphx-glr-bigcontainer {
display: inline-block;
width: 100%;
}
td.tune-colab,
th.tune-colab {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
/* Adjustment to Sphinx Book Theme */
.table td {
/* Remove row spacing */
padding: 0;
}
table {
/* Force full width for all table */
width: 136% !important;
}
img.inline-figure {
/* Override the display: block for img */
display: inherit !important;
}
#version-warning-banner {
/* Make version warning clickable */
z-index: 1;
margin-left: 0;
/* 20% is for ToC rightbar */
/* 2 * 1.5625em is for horizontal margins */
width: calc(100% - 20% - 2 * 1.5625em);
}
span.rst-current-version > span.fa.fa-book {
/* Move the book icon away from the top right
* corner of the version flyout menu */
margin: 10px 0px 0px 5px;
}
/* Adjustment to Version block */
.rst-versions {
z-index: 1200 !important;
}
dt:target, span.highlighted {
background-color: #fbe54e;
}
/* allow scrollable images */
.figure {
max-width: 100%;
overflow-x: auto;
}
img.horizontal-scroll {
max-width: none;
}
.clear-both {
clear: both;
min-height: 100px;
margin-top: 15px;
}
.buttons-float-left {
width: 150px;
float: left;
}
.buttons-float-right {
width: 150px;
float: right;
}