Custom css for legend and htmlpopup (mako)