From 54a75c1e72a48dd45965cbf236ff7705306a8df8 Mon Sep 17 00:00:00 2001 From: "kevers@chromium.org" Date: Tue, 18 Sep 2012 17:58:16 +0000 Subject: Increase section indent when using touch. BUG=141634 Review URL: https://chromiumcodereview.appspot.com/10910315 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157380 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/uber/uber_shared.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/chrome/browser/resources/uber/uber_shared.css b/chrome/browser/resources/uber/uber_shared.css index 93749ca..1b91994 100644 --- a/chrome/browser/resources/uber/uber_shared.css +++ b/chrome/browser/resources/uber/uber_shared.css @@ -113,6 +113,20 @@ body.uber-frame section > h3 { -webkit-margin-start: -18px; } +@media(pointer:coarse) { + /* TODO(kevers): Remove the extra padding once the following bug is fixed: + * https://bugs.webkit.org/show_bug.cgi?id=95204 + * In the interim, the added padding makes it less likely that a touch will + * span the boundary of the navigation bar, which results in poor touch + * adjustments. */ + body.uber-frame section { + -webkit-padding-start: 28px; + } + body.uber-frame section > h3 { + -webkit-margin-start: -28px; + } +} + body.uber-frame section > div:only-of-type { -webkit-box-flex: 1; } -- cgit v1.1