From b87a35c15e4e8c88efe1e36e84cab86b219dc3d3 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Sat, 23 Nov 2013 02:37:39 +0000 Subject: [PATCH] Add some light padding to code views. Summary: Source code output currently juts up against the border of its container, making the first and last lines harder to read, this diff adds some padding inside. Test Plan: {F79908} {F79907} Reviewers: epriestley, chad, #blessed_reviewers Reviewed By: chad CC: chad, Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7542 --- webroot/rsrc/css/layout/phabricator-source-code-view.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webroot/rsrc/css/layout/phabricator-source-code-view.css b/webroot/rsrc/css/layout/phabricator-source-code-view.css index 952dfac163..48d7f7d095 100644 --- a/webroot/rsrc/css/layout/phabricator-source-code-view.css +++ b/webroot/rsrc/css/layout/phabricator-source-code-view.css @@ -8,6 +8,14 @@ overflow-y: hidden; } +.phabricator-source-code-view tr:first-child * { + padding-top: 8px; +} + +.phabricator-source-code-view tr:last-child * { + padding-bottom: 8px; +} + .phabricator-source-code { white-space: pre-wrap; padding: 2px 8px 1px;