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

[livejournal] r21307: LJSUP-10691: Image placeholders in comme...

Committer: esavintcev
LJSUP-10691: Image placeholders in comments
U   trunk/cgi-bin/cleanhtml.pl
U   trunk/cgi-bin/weblib.pl
U   trunk/htdocs/stc/lj_base.css
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-03-06 12:14:34 UTC (rev 21306)
+++ trunk/cgi-bin/cleanhtml.pl	2012-03-06 14:04:15 UTC (rev 21307)
@@ -1172,7 +1172,7 @@
                     }
 
                     if ($img_bad) {
-                        $newdata .= qq~<a class="b-mediaplaceholder b-mediaplaceholder-photo" ~ . ( $hash->{'width'} && $hash->{'height'} ? qq~style="width:$hash->{'width'}px;height:$hash->{'height'}px;" ~ : '' ) . qq~data-href="$href_b_link" href="~ .
+                        $newdata .= qq~<a class="b-mediaplaceholder b-mediaplaceholder-photo ~ . ( $hash->{'width'} && $hash->{'height'} ? qq~ b-mediaplaceholder-good" style="width:$hash->{'width'}px;height:$hash->{'height'}px;" ~ : '' ) . qq~data-href="$href_b_link" href="~ .
                             LJ::ehtml($hash->{'src'}) . '" onclick="return LiveJournal.placeholderClick(this, \'image\')">' .
                             '<span class="b-mediaplaceholder-outer">' .
                             '<span class="b-mediaplaceholder-inner">' .

Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-03-06 12:14:34 UTC (rev 21306)
+++ trunk/cgi-bin/weblib.pl	2012-03-06 14:04:15 UTC (rev 21307)
@@ -2040,7 +2040,7 @@
     $height = undef if $opts{remove_video_sizes};
 
     return qq {
-            <a class="b-mediaplaceholder b-mediaplaceholder-video" href="$link"} . ( $width && $height ? 'style="width:' . $width . 'px;height:' . $height . 'px;"' : '' ) . qq{ onclick="return LiveJournal.placeholderClick(this, '$placeholder_html')">
+            <a href="$link" class="b-mediaplaceholder b-mediaplaceholder-video } . ( $width && $height ? ' b-mediaplaceholder-good" style="width:' . $width . 'px;height:' . $height . 'px;"' : '' ) . qq{ onclick="return LiveJournal.placeholderClick(this, '$placeholder_html')">
                 <span class="b-mediaplaceholder-outer">
                     <span class="b-mediaplaceholder-inner">
                         <i class="b-mediaplaceholder-pic"></i>

Modified: trunk/htdocs/stc/lj_base.css
===================================================================
--- trunk/htdocs/stc/lj_base.css	2012-03-06 12:14:34 UTC (rev 21306)
+++ trunk/htdocs/stc/lj_base.css	2012-03-06 14:04:15 UTC (rev 21307)
@@ -3774,16 +3774,17 @@
 	position: relative;
 	top: auto;
 	left: auto;
+	overflow: hidden;
 	display: inline-block;
 	width: auto;
-	height: 35px;
-	min-width: 140px;
+	height: 37px;
+	min-width: 142px;
 	margin: 0 5px 0 0;
 	padding: 0;
+	-moz-border-radius: 0 !important;
+	border-radius: 0 !important;
+	border: 0 !important;
 	vertical-align: top !important;
-	-moz-border-radius: 5px;
-	border-radius: 5px;
-	border: 1px solid #E0E0E0 !important;
 	font: 12px/14px Arial,sans-serif;
 	text-align: center !important;
 	text-decoration: none !important;
@@ -3793,6 +3794,16 @@
 	*display: inline;
 	*zoom: 1;
 	}
+HTML BODY DIV .b-mediaplaceholder-good:link,
+HTML BODY DIV .b-mediaplaceholder-good:visited,
+HTML BODY DIV .b-mediaplaceholder-good:hover,
+HTML BODY DIV .b-mediaplaceholder-good:active,
+HTML BODY DIV .b-mediaplaceholder-good:focus {
+	height: 35px;
+	-moz-border-radius: 5px !important;
+	border-radius: 5px !important;
+	border: 1px solid #E0E0E0 !important;
+	}
 	.b-mediaplaceholder .b-mediaplaceholder-outer {
 		position: absolute;
 		top: 50%;

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