From 8f96817661e87c6bca22f7ca58c7bedb9904f176 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 11 Dec 2010 04:05:32 +0000 Subject: [PATCH] Utilize gallery-columns-# classes in Twenty Ten. props ianstewart, lancewillett. fixes #15103. git-svn-id: http://svn.automattic.com/wordpress/trunk@16869 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/style.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css index 5785eeb42..8ef31d6d1 100644 --- a/wp-content/themes/twentyten/style.css +++ b/wp-content/themes/twentyten/style.css @@ -828,9 +828,23 @@ img.aligncenter { text-align: center; width: 33%; } +.gallery-columns-2 .gallery-item { + width: 50%; +} +.gallery-columns-4 .gallery-item { + width: 25%; +} .gallery img { border: 2px solid #cfcfcf; } +.gallery-columns-2 .attachment-medium { + max-width: 92%; + height: auto; +} +.gallery-columns-4 .attachment-thumbnail { + max-width: 84%; + height: auto; +} .gallery .gallery-caption { color: #888; font-size: 12px;