| 1 |
/* =Tiled Gallery Default Styles |
| 2 |
-------------------------------------------------------------- */ |
| 3 |
|
| 4 |
.tiled-gallery { |
| 5 |
clear: both; |
| 6 |
margin: 0; |
| 7 |
overflow: hidden; |
| 8 |
} |
| 9 |
.tiled-gallery img { |
| 10 |
margin: 2px !important; /* Ensure that this value isn't overridden by themes that give content images blanket margins */ |
| 11 |
} |
| 12 |
.tiled-gallery .gallery-group { |
| 13 |
float: left; |
| 14 |
position: relative; |
| 15 |
} |
| 16 |
.tiled-gallery .tiled-gallery-item { |
| 17 |
float: left; |
| 18 |
margin: 0; |
| 19 |
position: relative; |
| 20 |
width: inherit; /* prevents ie8 bug with inline width styles */ |
| 21 |
} |
| 22 |
.tiled-gallery .gallery-row { |
| 23 |
overflow: hidden; |
| 24 |
margin-bottom: 2px; |
| 25 |
} |
| 26 |
.tiled-gallery .tiled-gallery-item a { /* Needs to reset some properties for theme compatibility */ |
| 27 |
background: transparent; |
| 28 |
border: none; |
| 29 |
color: none; |
| 30 |
margin: 0; |
| 31 |
padding: 0; |
| 32 |
text-decoration: none; |
| 33 |
width: auto; |
| 34 |
} |
| 35 |
.tiled-gallery .tiled-gallery-item img, |
| 36 |
.tiled-gallery .tiled-gallery-item img:hover { /* Needs to reset some properties for theme compatibility */ |
| 37 |
background: none; |
| 38 |
border: none; |
| 39 |
box-shadow: none; |
| 40 |
max-width: 100%; |
| 41 |
padding: 0; |
| 42 |
vertical-align: middle; |
| 43 |
} |
| 44 |
.tiled-gallery-caption { /* Captions */ |
| 45 |
background: #eee; |
| 46 |
background: rgba( 255,255,255,0.8 ); |
| 47 |
color: #333; |
| 48 |
font-size: 13px; |
| 49 |
font-weight: 400; |
| 50 |
overflow: hidden; |
| 51 |
padding: 10px 0; |
| 52 |
position: absolute; |
| 53 |
bottom: 0; |
| 54 |
text-indent: 10px; |
| 55 |
text-overflow: ellipsis; |
| 56 |
width: 100%; |
| 57 |
white-space: nowrap; |
| 58 |
} |
| 59 |
.tiled-gallery .tiled-gallery-item-small .tiled-gallery-caption { /* Smaller captions */ |
| 60 |
font-size: 11px; |
| 61 |
} |
| 62 |
|
| 63 |
|
| 64 |
/* =Greyscale |
| 65 |
-------------------------------------------------------------- */ |
| 66 |
|
| 67 |
.tiled-gallery .tiled-gallery-item img.grayscale { |
| 68 |
position: absolute; |
| 69 |
left: 0; |
| 70 |
top: 0; |
| 71 |
} |
| 72 |
.tiled-gallery .tiled-gallery-item img.grayscale:hover { |
| 73 |
opacity: 0; |
| 74 |
} |
| 75 |
|
| 76 |
|
| 77 |
/* =Circles Layout |
| 78 |
-------------------------------------------------------------- */ |
| 79 |
|
| 80 |
.tiled-gallery.type-circle .tiled-gallery-item img { |
| 81 |
border-radius: 50% !important; /* Ensure that circles are displayed in themes that add border-radius to all images as a default */ |
| 82 |
} |
| 83 |
.tiled-gallery.type-circle .tiled-gallery-caption { |
| 84 |
display: none; |
| 85 |
opacity: 0; |
| 86 |
} |