Adjust .docs padding for icon display

We were already doing it but only for portrait phones and down. It
should have been done for portrait tablet and down b/c that's when we
switch from label to icon.
When using .html_safe, escape user input with h()
On rules#index, remember which page I was on after editing