1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2026-01-23 15:11:38 +00:00

Finalize javascript and stylsheet for issue #4

Adjust javascript image size to always be less than max container width.
Stylesheets are not built in compressed mode by default.
Stylesheet changes are mainly to incorperate styles for new elements.
Stying of the list elements uses a slightly lighter gradient.
This commit is contained in:
2013-07-30 14:44:31 -04:00
parent b7efae362c
commit ff3c58c45b
4 changed files with 54 additions and 803 deletions

View File

@@ -16,7 +16,7 @@ function ready(){
// Hack to make images more responsive and wrap with .th class
$('#main article img').each( function() {
$(this).css({'height': '', 'width': ''});
$(this).wrap('<a class="th" href="'+$(this).attr('src')+'" style="max-width:'+this.naturalWidth+'px">');
$(this).wrap('<a class="th" href="'+$(this).attr('src')+'" style="max-width:'+Math.min(this.naturalWidth, 770)+'px">');
});
};