Skip to content

Commit 469a882

Browse files
committed
[UG] Improve the way images are rendered (especially on mobile devices)
1 parent dffa698 commit 469a882

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • user_guide_src/source/_themes/sphinx_rtd_theme/static/css

user_guide_src/source/_themes/sphinx_rtd_theme/static/css/citheme.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,27 @@ h2, h3 {
99
margin-top: 3rem;
1010
}
1111

12+
.rst-content img {
13+
-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
14+
-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
15+
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
16+
display: block;
17+
height: auto!important;
18+
margin: 3rem auto!important;
19+
max-width: 700px;
20+
width: 100%!important;
21+
}
22+
23+
.rst-content img.align-left {
24+
margin-right: 2rem!important;
25+
max-width: 375px;
26+
}
27+
28+
.rst-content img.align-right {
29+
margin-left: 2rem!important;
30+
max-width: 400px;
31+
}
32+
1233
.highlighted {
1334
padding: 0px !important;
1435
font-weight: inherit !important;

0 commit comments

Comments
 (0)