Add alignment styling for figures and images

Add CSS styling to left, right, and center align
images and figures correctly.

Change-Id: Ia3c1d00ef283a4aac6a0faec5bfd0b11f0997841
Closes-Bug: #1672274
This commit is contained in:
Brian Moss
2017-03-13 16:43:27 +10:00
parent 29c8765bfe
commit ceb56ab094
3 changed files with 39 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@@ -6,6 +6,11 @@
.. highlight: python
:linenothreshold: 5
.. figure:: figures/doc-logo-fox.jpg
:alt: Documentation Logo
:scale: 30%
:align: center
Demo documentation
==================

View File

@@ -4680,3 +4680,37 @@ table.highlighttable {
.docs-top-contents ul li a {
text-decoration: underline; }
img.align-left, .figure.align-left {
display: table;
margin-left: 0;
margin-right: auto;
}
img.align-center, .figure.align-center {
display: table;
margin: auto;
}
img.align-right, .figure.align-right {
display: table;
margin-left: auto;
margin-right: 0;
}
/*img.align-left {*/
/* display: table;*/
/* margin-left: 0;*/
/* margin-right: auto;*/
/*}*/
/**/
/*img.align-center {*/
/* display: table;*/
/* margin: auto;*/
/*}*/
/**/
/*img.align-right {*/
/* display: table;*/
/* margin-left: auto;*/
/* margin-right: 0;*/
/*}*/