Add thumbnail images to Appliances grid
guess we'll see how folks like this
This commit is contained in:
parent
4aa8f43a7e
commit
78941ec8d9
3 changed files with 67 additions and 0 deletions
30
tailbone/templates/tempmon/appliances/index.mako
Normal file
30
tailbone/templates/tempmon/appliances/index.mako
Normal file
|
@ -0,0 +1,30 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="/master/index.mako" />
|
||||
|
||||
<%def name="extra_styles()">
|
||||
${parent.extra_styles()}
|
||||
<style type="text/css">
|
||||
|
||||
.grid .image-frame {
|
||||
height: 150px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.grid .image-helper {
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.grid img {
|
||||
vertical-align: middle;
|
||||
max-height: 150px;
|
||||
max-width: 150px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue