From 4fddae68a9f87f552fe8076b5c0237e5ee2ccbe4 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 26 Mar 2013 17:28:23 -0400 Subject: [PATCH] Set the min-width on the gutter to 1em This ensures the text will have padding on the left side even when line numbers are disabled. --- static/editor.less | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/static/editor.less b/static/editor.less index 54fd24629..c9ab251fa 100644 --- a/static/editor.less +++ b/static/editor.less @@ -28,16 +28,17 @@ overflow: hidden; text-align: right; cursor: default; -} - -.editor .gutter { - padding-right: .5em; - padding-left: .5em; + min-width: 1em; box-sizing: border-box; text-align: right; opacity: 0.6; } +.editor .gutter .line-number { + padding-right: .5em; + padding-left: .5em; +} + .editor .gutter .line-numbers { position: relative; }