Add support for sphinx sidebar role
The ".. sidebar::" directive generates a <div class="sidebar"> which is expected to float to the right of the text. This adds the CSS from the oslosphinx theme to support it. Change-Id: If03ea2a3892746a0590f831989b2ada4a1850385
This commit is contained in:
parent
5c1714c234
commit
a17640aab6
@ -11,6 +11,12 @@ Demo documentation
|
||||
|
||||
The demo documentation provides example markup for looking at the expected output.
|
||||
|
||||
.. sidebar:: Sidebar
|
||||
|
||||
This is a sidebar which may be used to provide related or reference
|
||||
material. It is displayed in proximity to, but outside the main
|
||||
text.
|
||||
|
||||
The project aims for simple implementation, massive scalability, and a rich set
|
||||
of features. Cloud computing experts from around the world contribute to the project.
|
||||
|
||||
|
@ -4165,6 +4165,19 @@ pre .cl {
|
||||
.popover {
|
||||
color: #2A4E68; }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em;
|
||||
border: 1px solid #ddb;
|
||||
padding: 7px 7px 0 7px;
|
||||
background-color: #ffe;
|
||||
width: 40%;
|
||||
float: right;
|
||||
}
|
||||
|
||||
p.sidebar-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.admonition {
|
||||
background: #eee;
|
||||
border-left: 4px solid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user