Снорк (nely_snork) wrote in changelog,
Снорк
nely_snork
changelog

[livejournal] r16340: LJSV-336: Custom moods are 100x100 now!

Committer: narefieva
LJSV-336: Custom moods are 100x100 now!
U   trunk/htdocs/stc/ie.css
U   trunk/htdocs/stc/lj_base.css
Modified: trunk/htdocs/stc/ie.css
===================================================================
--- trunk/htdocs/stc/ie.css	2010-03-05 09:26:05 UTC (rev 16339)
+++ trunk/htdocs/stc/ie.css	2010-03-05 10:06:27 UTC (rev 16340)
@@ -2,7 +2,6 @@
 * html IMG#mood_image_preview  {
     height: auto;
     }
-* html IMG.meta-mood-img,
 * html IMG#mood_image_preview {
 	zoom:expression(
 		function(t){
@@ -15,6 +14,18 @@
 		t.runtimeStyle.zoom = 1;
 	}(this));
 }
+* html IMG.meta-mood-img {
+	zoom:expression(
+		function(t){
+			if (100 < t.scrollWidth && t.scrollWidth > t.scrollHeight) {
+				t.width = '100';
+			}
+			else if (100 < t.scrollHeight) {
+				t.height = '100';
+			}
+		t.runtimeStyle.zoom = 1;
+	}(this));
+}
 
 
 

Modified: trunk/htdocs/stc/lj_base.css
===================================================================
--- trunk/htdocs/stc/lj_base.css	2010-03-05 09:26:05 UTC (rev 16339)
+++ trunk/htdocs/stc/lj_base.css	2010-03-05 10:06:27 UTC (rev 16340)
@@ -428,11 +428,14 @@
     }
 
 /* Width & Height for Moods */
-IMG.meta-mood-img,
+IMG.meta-mood-img {
+    max-width: 100px;
+    max-height: 100px;
+    } 
 IMG#mood_image_preview {
     max-width: 60px;
     max-height: 60px;
-    } 
+    }
 
 
 

Tags: css, livejournal, nely_snork
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