From 4024969451a99b1ed77936b8612315a2d09a02ec Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Tue, 2 Oct 2012 21:41:36 -0400 Subject: [PATCH] DOC: Format gallery into a grid Recent changes to the theme display a single column of images in the gallery. --- .../themes/scikit-image/static/css/custom.css | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/source/themes/scikit-image/static/css/custom.css b/doc/source/themes/scikit-image/static/css/custom.css index 005d4317..df60739e 100644 --- a/doc/source/themes/scikit-image/static/css/custom.css +++ b/doc/source/themes/scikit-image/static/css/custom.css @@ -13,6 +13,11 @@ textarea { pre { font-size: 11px; } + +h1, h2, h3, h4 { + clear: left; +} + h1 { font-size: 30px; line-height: 36px; @@ -194,3 +199,27 @@ p.admonition-title { font-weight: bold; text-decoration: underline; } + +/* example gallery */ + +.gallery { + height: 200px; +} + +.figure { + float: left; + margin: 1em; +} + +.figure img { + display: block; + margin-left: auto; + margin-right: auto; + max-height: 150px; + max-width: 200px; +} + +.figure .caption { + width: 200px; + text-align: center !important; +}