Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r9717: LJSUP-7275: Minimalism Style Images

Committer: esavintcev
LJSUP-7275: Minimalism Style Images
U   trunk/htdocs/stc/sup/s/ie.css
U   trunk/htdocs/stc/sup/s/style.css
Modified: trunk/htdocs/stc/sup/s/ie.css
===================================================================
--- trunk/htdocs/stc/sup/s/ie.css	2010-11-16 04:11:38 UTC (rev 9716)
+++ trunk/htdocs/stc/sup/s/ie.css	2010-11-16 05:03:09 UTC (rev 9717)
@@ -147,7 +147,8 @@
 	margin-left:-1px;
 	}
 
-.entry-text .entry-content IMG {
+*+HTML .entry-text .entry-content IMG,
+*+HTML .comment-text IMG {
 	z-index: expression(runtimeStyle.zIndex = 1, (function( img ) { if( ( img.outerHTML.search(/(width)\=/) === -1 ) && ( img.outerHTML.search(/(height)\=/) === -1 ) ) { img.style.maxWidth = '100%'; img.style.height = 'auto'; } }( this ) ));
 	}
 

Modified: trunk/htdocs/stc/sup/s/style.css
===================================================================
--- trunk/htdocs/stc/sup/s/style.css	2010-11-16 04:11:38 UTC (rev 9716)
+++ trunk/htdocs/stc/sup/s/style.css	2010-11-16 05:03:09 UTC (rev 9717)
@@ -569,6 +569,10 @@
 		margin-top:.4em;
 		margin-left:1px;
 		}
+		.comment-text IMG:not([width]):not([height]) {
+			max-width: 100%;
+			height: auto;
+			}
 	.comment-menu {
 		margin-top:.1em;
 		margin-bottom:11px;

Tags: css, ljcom, savintsev_egor
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments