Border styling.

No shorthand for border-width and -style because it can unset the border-color in the theme CSS. Use border 0 instead of none to unset borders.
Popup: Correction in regex and reduced code for theme inheritance.