Striped Text

Now you can use %%striped-text to put lipstick stripes on your pre-formatted code blocks.
Inspired by Lea Verou's Zebra text

Usage:

%%add-css [Striped Text] /%
%%striped-text   <your preformatted blocks to be striped>  /%
.striped-text pre { padding: 0.5em; line-height: 1.5; background-image: linear-gradient(transparent 50%, #fff 0); background-size: auto 3em; background-origin: content-box; font-size: 1em; }

Example:

/**
 * the fibonacci series implemented as an Iterable.
 */
public final class Fibonacci implements Iterable<Integer> {
  /** the next and previous members of the series. */
  private int a = 1, b = 1;

  public Iterator<Integer> iterator() {
    return new Iterator<Integer>() {
      /** the series is infinite. */
      public boolean hasNext() { return true; }
      public Integer next() {
        int tmp = a;
        a += b;
        b = tmp;
        return a;
      }
      public void remove() { throw new UnsupportedOperationException(); }
    };
  }

Category.Add CSS Style