Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update image wrapper classes and styles.

- Panel class on wrapper instead of image.
- Image no longer breaks out of container.
  • Loading branch information...
commit c243a62b07306e2325dd7738cce4032e47414a05 1 parent 0785530
@kimisgold kimisgold authored
View
11 admin/themes/default/css/style.css
@@ -826,6 +826,12 @@ header nav {
overflow: auto;
word-wrap: break-word;
}
+
+ .panel img {
+ max-width: 100%;
+ padding-bottom: 10px;
+ vertical-align: bottom;
+ }
.panel:first-child {
margin-top: 0;
@@ -1198,7 +1204,6 @@ header nav {
.admin-thumb {
width: 100px;
box-shadow: 0 0 3px rgba(0,0,0,.15);
- padding: 10px;
}
.element {
@@ -1222,6 +1227,10 @@ header nav {
margin: 0 10px 0 0;
}
+ .item-file img {
+ max-width: 100%;
+ }
+
#item-images {
margin: 0 0 20px 0;
}
View
2  admin/themes/default/files/show.php
@@ -67,7 +67,7 @@
<?php echo flash(); ?>
<div id="fullsize-file">
- <?php echo display_file($file, array('imageSize' => 'thumbnail')); ?>
+ <?php echo display_file($file, array('imageSize' => 'fullsize'), array('class' => 'panel')); ?>
</div>
<h3>ID3 Metadata</h3>
<?php echo show_file_metadata(); ?>
View
2  admin/themes/default/items/show.php
@@ -94,7 +94,7 @@
<?php echo flash(); ?>
<?php if(item_has_files()): ?>
<div id="item-images">
- <?php echo display_files_for_item(array('imageSize' => 'square_thumbnail', 'imgAttributes' => array('class' => 'admin-thumb panel'))); ?>
+ <?php echo display_files_for_item(array('imageSize' => 'square_thumbnail'), array('class' => 'admin-thumb panel')); ?>
</div>
<?php endif; ?>
<?php echo show_item_metadata(); ?>
Please sign in to comment.
Something went wrong with that request. Please try again.