Ticket #1484051: style-quote-depth.patch

File style-quote-depth.patch, 1.2 KB (added by dopry, 7 years ago)

style quotes patch

  • program/steps/mail/func.inc

     
    744744      $line = $a_lines[$n]; 
    745745 
    746746      if ($line{2}=='>') 
    747         $color = 'red'; 
     747        $color = 'quote-depth-3'; 
    748748      else if ($line{1}=='>') 
    749         $color = 'green'; 
     749        $color = 'quote-depth-2'; 
    750750      else if ($line{0}=='>') 
    751         $color = 'blue'; 
     751        $color = 'quote-depth-1'; 
    752752      else 
    753753        $color = FALSE; 
    754754 
    755755      $line = rep_specialchars_output($line, 'html', 'replace', FALSE); 
    756756         
    757757      if ($color) 
    758         $a_lines[$n] = sprintf('<font color="%s">%s</font>', $color, $line); 
     758        $a_lines[$n] = sprintf('<span class="%s">%s</span>', $color, $line); 
    759759      else 
    760760        $a_lines[$n] = $line; 
    761761      } 
  • skins/default/mail.css

     
    861861  color: #999999; 
    862862  font-size: 11px; 
    863863} 
     864 
     865span.quote-depth-1 { 
     866  color: blue; 
     867} 
     868 
     869span.quote-depth-2 { 
     870  color: green; 
     871} 
     872 
     873span.quote-depth-3 { 
     874  color: red; 
     875}