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

[ljcom] r9711: LJSUP-7275: Wide Images in Minimalism

Committer: esavintcev
LJSUP-7275: Wide Images in Minimalism
U   trunk/htdocs/stc/friendstimes.css
U   trunk/htdocs/stc/sup/s/ie.css
U   trunk/htdocs/stc/sup/s/style.css
Modified: trunk/htdocs/stc/friendstimes.css
===================================================================
--- trunk/htdocs/stc/friendstimes.css	2010-11-15 05:32:29 UTC (rev 9710)
+++ trunk/htdocs/stc/friendstimes.css	2010-11-15 10:05:58 UTC (rev 9711)
@@ -60,7 +60,7 @@
 					margin: 0 0 0.5em;
 					padding: 0;
 					}
-					.b-friendstimes-article IMG {
+					.b-friendstimes-article IMG:not([width]):not([height]) {
 						max-width: 100%;
 						max-height: auto;
 						}

Modified: trunk/htdocs/stc/sup/s/ie.css
===================================================================
--- trunk/htdocs/stc/sup/s/ie.css	2010-11-15 05:32:29 UTC (rev 9710)
+++ trunk/htdocs/stc/sup/s/ie.css	2010-11-15 10:05:58 UTC (rev 9711)
@@ -146,3 +146,8 @@
 .ljuser A IMG {
 	margin-left:-1px;
 	}
+
+.entry-text .entry-content 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-15 05:32:29 UTC (rev 9710)
+++ trunk/htdocs/stc/sup/s/style.css	2010-11-15 10:05:58 UTC (rev 9711)
@@ -397,7 +397,7 @@
 	.entry-text SUB {
 		top:.5ex;
 		}
-		.entry-text .entry-content IMG {
+		.entry-text .entry-content IMG:not([width]):not([height]) {
 			max-width: 100%;
 			height: auto;
 			}

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