diff options
Diffstat (limited to 'plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery.css')
-rw-r--r-- | plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery.css | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery.css b/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery.css new file mode 100644 index 00000000..3a1924df --- /dev/null +++ b/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery.css @@ -0,0 +1,85 @@ +/* =Tiled Gallery Default Styles +-------------------------------------------------------------- */ + +.tiled-gallery { + clear: both; + margin: 0; + overflow: hidden; +} +.tiled-gallery img { + margin: 2px !important; /* Ensure that this value isn't overridden by themes that give content images blanket margins */ +} +.tiled-gallery .gallery-group { + float: left; + position: relative; +} +.tiled-gallery .tiled-gallery-item { + float: left; + margin: 0; + position: relative; +} +.tiled-gallery .gallery-row { + overflow: hidden; + margin-bottom: 2px; +} +.tiled-gallery .tiled-gallery-item a { /* Needs to reset some properties for theme compatibility */ + background: transparent; + border: none; + color: none; + margin: 0; + padding: 0; + text-decoration: none; + width: auto; +} +.tiled-gallery .tiled-gallery-item img, +.tiled-gallery .tiled-gallery-item img:hover { /* Needs to reset some properties for theme compatibility */ + background: none; + border: none; + box-shadow: none; + max-width: 100%; + padding: 0; + vertical-align: middle; +} +.tiled-gallery-caption { /* Captions */ + background: #eee; + background: rgba( 255,255,255,0.8 ); + color: #333; + font-size: 13px; + font-weight: 400; + overflow: hidden; + padding: 10px 0; + position: absolute; + bottom: 0; + text-indent: 10px; + text-overflow: ellipsis; + width: 100%; + white-space: nowrap; +} +.tiled-gallery .tiled-gallery-item-small .tiled-gallery-caption { /* Smaller captions */ + font-size: 11px; +} + + +/* =Greyscale +-------------------------------------------------------------- */ + +.tiled-gallery .tiled-gallery-item img.grayscale { + position: absolute; + left: 0; + top: 0; +} +.tiled-gallery .tiled-gallery-item img.grayscale:hover { + opacity: 0; +} + + +/* =Circles Layout +-------------------------------------------------------------- */ + +.tiled-gallery.type-circle .tiled-gallery-item img { + border-radius: 50% !important; /* Ensure that circles are displayed in themes that add border-radius to all images as a default */ +} +.tiled-gallery.type-circle .tiled-gallery-caption { + display: none; + opacity: 0; +}
\ No newline at end of file |