mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use 'pt' instead of 'px' for font sizes
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -28,7 +28,7 @@ class RootView extends View
|
||||
|
||||
extensions: null
|
||||
extensionStates: null
|
||||
fontSize: 18
|
||||
fontSize: 20
|
||||
|
||||
initialize: (pathToOpen) ->
|
||||
@extensions = {}
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Lucida Grande;
|
||||
font-size: 12px;
|
||||
font: 16pt Inconsolata, Monaco, Courier !important;
|
||||
}
|
||||
|
||||
#root-view {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: #333;
|
||||
font: 18px Inconsolata, Monaco, Courier;
|
||||
color: white;
|
||||
cursor: default;
|
||||
-webkit-user-select: none;
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
overflow: auto;
|
||||
padding: 0 1em;
|
||||
cursor: default;
|
||||
font: 16px Inconsolata, Monaco, Courier !important;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user