Fix malformed CSS as reported by Sass Lint

Had to do an emergency bug fix (see commits to master). While I was here, fixed errors reported by the linter.