Guest User

Untitled

a guest
Feb 23rd, 2016
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. Open the "showthread" template and paste the following above </body>
  2. HTML Code:
  3. <script>window.jQuery||document.write(unescape("%3Cscript src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));</script>
  4. <script>
  5. $(function(){
  6.   $(".quote_container").each(function(index){
  7.      if($(this).height() > 250){
  8.         $(this).css({
  9.            'height': '250px',
  10.            'overflow': 'hidden'
  11.         });
  12.  
  13.         $(this).parent().append('<div class="quote_expander"><a href="">Expand</a></div>');
  14.      }
  15.   });
  16.  
  17.   $(".quote_expander").click(function(){
  18.      $(this).parent().find('.quote_container').css({'height': 'initial', 'overflow': 'initial'});
  19.      $(this).remove();
  20.      return false;
  21.   });
  22. });
  23. </script>
  24. Now open the additional.css template under "CSS Templates" and add the following:
  25. HTML Code:
  26. .quote_expander{
  27.  -webkit-box-sizing: border-box;
  28.  -moz-box-sizing: border-box;
  29.  -ms-box-sizing: border-box;
  30.  box-sizing: border-box;
  31.  font-size: 11px;
  32.  text-align: center;
  33.  color: rgb(63, 63, 63);
  34.  cursor: pointer;
  35.  padding-top: 65px;
  36.  background: -webkit-linear-gradient(top, rgba(45, 45, 45, 0) 0%, #C2CAD2 80%);
  37.  background: -moz-linear-gradient(top, rgba(45, 45, 45, 0) 0%, #C2CAD2 80%);
  38.  background: -o-linear-gradient(top, rgba(45, 45, 45, 0) 0%, #C2CAD2 80%);
  39.  background: linear-gradient(to bottom, rgba(45, 45, 45, 0) 0%, #C2CAD2 80%);
  40.  width: 100%;
  41.  position: absolute;
  42.  bottom: 0;
  43. }
  44. [hide]
Advertisement
Add Comment
Please, Sign In to add comment