1
0

template preview: remove inline styles

This commit is contained in:
onli
2013-06-23 21:47:46 +02:00
parent ea317649ac
commit a7ad3dd8e8
2 changed files with 8 additions and 2 deletions

View File

@ -1233,6 +1233,12 @@ main {
max-width: 40em; max-width: 40em;
} }
.template_preview_img {
max-width: 400px;
height: auto;
max-height: 248px;
}
/* HEADER /* HEADER
----------------------------------------------------------------- */ ----------------------------------------------------------------- */

View File

@ -35,7 +35,7 @@
{if $cur_tpl.fullsize_preview || $cur_tpl.preview} {if $cur_tpl.fullsize_preview || $cur_tpl.preview}
{if $cur_tpl.fullsize_preview} {if $cur_tpl.fullsize_preview}
<a href="{$cur_tpl.fullsize_preview}"> <a href="{$cur_tpl.fullsize_preview}">
<img src="{$cur_tpl.fullsize_preview}" width="400" style="max-height: 250px;" alt="{$CONST.PREVIEW}" > <img src="{$cur_tpl.fullsize_preview}" class="template_preview_img" alt="{$CONST.PREVIEW}" >
</a> </a>
{else} {else}
<img src="{$cur_tpl.preview}" alt="{$CONST.PREVIEW}" > <img src="{$cur_tpl.preview}" alt="{$CONST.PREVIEW}" >
@ -72,7 +72,7 @@
{if $info.fullsize_preview || $info.preview} {if $info.fullsize_preview || $info.preview}
{if $info.fullsize_preview} {if $info.fullsize_preview}
<a href="{$info.fullsize_preview}"> <a href="{$info.fullsize_preview}">
<img src="{$info.fullsize_preview}" width="400" style="max-height: 250px;" alt="{$CONST.PREVIEW}" > <img src="{$info.fullsize_preview}" class="template_preview_img" alt="{$CONST.PREVIEW}" >
</a> </a>
{else} {else}
<img src="{$info.preview}" alt="{$CONST.PREVIEW}" > <img src="{$info.preview}" alt="{$CONST.PREVIEW}" >