From 3c826ec898afdacf15477f6ccd53cb1e78302ede Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Thu, 31 May 2012 16:44:45 -0700 Subject: [PATCH] Use 'pt' instead of 'px' for font sizes --- src/app/editor.coffee | 2 +- src/app/root-view.coffee | 2 +- static/atom.css | 3 +-- static/editor.css | 1 - static/tree-view.css | 1 - 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/app/editor.coffee b/src/app/editor.coffee index e07be4b08..e4f049631 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -630,7 +630,7 @@ class Editor extends View setFontSize: (fontSize) -> if fontSize - @css('font-size', fontSize + 'px') + @css('font-size', fontSize + 'pt') @calculateDimensions() @compositeCursor.updateAppearance() @updateVisibleLines() diff --git a/src/app/root-view.coffee b/src/app/root-view.coffee index 34aaa5113..daa574feb 100644 --- a/src/app/root-view.coffee +++ b/src/app/root-view.coffee @@ -28,7 +28,7 @@ class RootView extends View extensions: null extensionStates: null - fontSize: 18 + fontSize: 20 initialize: (pathToOpen) -> @extensions = {} diff --git a/static/atom.css b/static/atom.css index fd6f8583c..b4028d803 100644 --- a/static/atom.css +++ b/static/atom.css @@ -4,8 +4,7 @@ } body { - font-family: Lucida Grande; - font-size: 12px; + font: 16pt Inconsolata, Monaco, Courier !important; } #root-view { diff --git a/static/editor.css b/static/editor.css index 0a154f554..8bcb7a94a 100644 --- a/static/editor.css +++ b/static/editor.css @@ -2,7 +2,6 @@ height: 100%; overflow: hidden; background: #333; - font: 18px Inconsolata, Monaco, Courier; color: white; cursor: default; -webkit-user-select: none; diff --git a/static/tree-view.css b/static/tree-view.css index 633794640..2abec56a8 100644 --- a/static/tree-view.css +++ b/static/tree-view.css @@ -6,7 +6,6 @@ overflow: auto; padding: 0 1em; cursor: default; - font: 16px Inconsolata, Monaco, Courier !important; -webkit-user-select: none; }