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

[livejournal] r21223: LJSUP-11031: <lj-spoiler> tag

Committer: narefieva
LJSUP-11031: <lj-spoiler> tag
U   trunk/cgi-bin/cleanhtml.pl
U   trunk/htdocs/stc/lj_base.css
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-02-20 15:11:59 UTC (rev 21222)
+++ trunk/cgi-bin/cleanhtml.pl	2012-02-20 15:22:06 UTC (rev 21223)
@@ -474,7 +474,7 @@
 
                 $title = LJ::ehtml($title);
 
-                $newdata .= qq{<div class="lj-spoiler"><p class="lj-spoiler-open"><a href="#">$title</a></p><div class="lj-spoiler-content">};
+                $newdata .= qq{<div class="lj-spoiler"><p class="lj-spoiler-head">[<b><a href="#">$title</a></b>]</p><div class="lj-spoiler-body">};
                 $ljspoilers_open++;
                 next TOKEN;
             }

Modified: trunk/htdocs/stc/lj_base.css
===================================================================
--- trunk/htdocs/stc/lj_base.css	2012-02-20 15:11:59 UTC (rev 21222)
+++ trunk/htdocs/stc/lj_base.css	2012-02-20 15:22:06 UTC (rev 21223)
@@ -3927,6 +3927,25 @@
 		display: none !important;
 		}
 
-.lj-spoiler .lj-spoiler-content { display: none; }
-.lj-spoiler-opened .lj-spoiler-content { display: block; }
 
+/* LJ Spoiler
+----------------------------------- */
+.lj-spoiler .lj-spoiler-body { 
+    display: block; 
+    }
+.lj-spoiler .lj-spoiler-head { 
+    display: none; 
+    }
+#js .lj-spoiler .lj-spoiler-body { 
+    display: none; 
+    }
+#js .lj-spoiler .lj-spoiler-head { 
+    display: block; 
+    }
+#js .lj-spoiler.lj-spoiler-opened .lj-spoiler-body { 
+    display: block; 
+    }
+#js .lj-spoiler.lj-spoiler-opened .lj-spoiler-head {
+    display: none;
+    }
+

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