From 5a0906af9b247b5a08452f8bdeb7def6e2b41c51 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Mon, 25 Oct 2010 15:51:30 +0200 Subject: [PATCH] extract font size from themes --- src/ace/css/editor.css | 3 +++ src/ace/theme/Dawn.js | 4 ---- src/ace/theme/IdleFingers.js | 4 ---- src/ace/theme/Twilight.js | 4 ---- src/ace/theme/eclipse.css | 4 ---- src/ace/theme/tm.css | 4 ---- tool/Theme.tmpl.css | 4 ---- 7 files changed, 3 insertions(+), 24 deletions(-) diff --git a/src/ace/css/editor.css b/src/ace/css/editor.css index d2db5f81..cd52dfe1 100644 --- a/src/ace/css/editor.css +++ b/src/ace/css/editor.css @@ -1,6 +1,9 @@ .ace_editor { position: absolute; overflow: hidden; + + font-family: "Menlo", "Monaco", "Courier New", monospace; + font-size: 12px; } .ace_scroller { diff --git a/src/ace/theme/Dawn.js b/src/ace/theme/Dawn.js index d1167a67..99074e0e 100644 --- a/src/ace/theme/Dawn.js +++ b/src/ace/theme/Dawn.js @@ -13,8 +13,6 @@ require.def("ace/theme/Dawn", width: 50px;\ background: #e8e8e8;\ color: #333;\ - font-family: \"Menlo\", \"Monaco\", \"Courier New\", monospace;\ - font-size: 11px;\ overflow : hidden;\ }\ \ @@ -39,8 +37,6 @@ require.def("ace/theme/Dawn", .ace-dawn .ace_text-layer {\ cursor: text;\ color: #080808;\ - font-family: \"Menlo\", \"Monaco\", \"Courier New\", \"Courier\", monospace;\ - font-size: 11px;\ }\ \ .ace-dawn .ace_cursor {\ diff --git a/src/ace/theme/IdleFingers.js b/src/ace/theme/IdleFingers.js index a530fe8d..ced77897 100644 --- a/src/ace/theme/IdleFingers.js +++ b/src/ace/theme/IdleFingers.js @@ -13,8 +13,6 @@ require.def("ace/theme/IdleFingers", width: 50px;\ background: #e8e8e8;\ color: #333;\ - font-family: \"Menlo\", \"Monaco\", \"Courier New\", monospace;\ - font-size: 11px;\ overflow : hidden;\ }\ \ @@ -39,8 +37,6 @@ require.def("ace/theme/IdleFingers", .ace-idle-fingers .ace_text-layer {\ cursor: text;\ color: #FFFFFF;\ - font-family: \"Menlo\", \"Monaco\", \"Courier New\", \"Courier\", monospace;\ - font-size: 11px;\ }\ \ .ace-idle-fingers .ace_cursor {\ diff --git a/src/ace/theme/Twilight.js b/src/ace/theme/Twilight.js index 05a94a13..af70a7a5 100644 --- a/src/ace/theme/Twilight.js +++ b/src/ace/theme/Twilight.js @@ -13,8 +13,6 @@ require.def("ace/theme/Twilight", width: 50px;\ background: #e8e8e8;\ color: #333;\ - font-family: \"Menlo\", \"Monaco\", \"Courier New\", monospace;\ - font-size: 11px;\ overflow : hidden;\ }\ \ @@ -39,8 +37,6 @@ require.def("ace/theme/Twilight", .ace-twilight .ace_text-layer {\ cursor: text;\ color: #F8F8F8;\ - font-family: \"Menlo\", \"Monaco\", \"Courier New\", \"Courier\", monospace;\ - font-size: 11px;\ }\ \ .ace-twilight .ace_cursor {\ diff --git a/src/ace/theme/eclipse.css b/src/ace/theme/eclipse.css index 0afba302..ff24f87f 100644 --- a/src/ace/theme/eclipse.css +++ b/src/ace/theme/eclipse.css @@ -11,8 +11,6 @@ background: rgb(227, 227, 227); border-right: 1px solid rgb(159, 159, 159); color: rgb(136, 136, 136); - font-family: Monaco, "Courier New"; - font-size: 11px; } .ace-eclipse .ace_gutter-layer { @@ -21,8 +19,6 @@ } .ace-eclipse .ace_text-layer { - font-family: Monaco, "Courier New", monospace; - font-size: 11px; cursor: text; } diff --git a/src/ace/theme/tm.css b/src/ace/theme/tm.css index 0310bcf1..a6b002bc 100644 --- a/src/ace/theme/tm.css +++ b/src/ace/theme/tm.css @@ -10,8 +10,6 @@ width: 50px; background: #e8e8e8; color: #333; - font-family: "Menlo", "Monaco", "Courier New", monospace; - font-size: 11px; overflow : hidden; } @@ -31,8 +29,6 @@ .ace-tm .ace_text-layer { cursor: text; - font-family: "Menlo", "Monaco", "Courier New", "Courier", monospace; - font-size: 11px; } .ace-tm .ace_cursor { diff --git a/tool/Theme.tmpl.css b/tool/Theme.tmpl.css index 8a32f152..f6dccb05 100644 --- a/tool/Theme.tmpl.css +++ b/tool/Theme.tmpl.css @@ -10,8 +10,6 @@ width: 50px; background: #e8e8e8; color: #333; - font-family: "Menlo", "Monaco", "Courier New", monospace; - font-size: 11px; overflow : hidden; } @@ -36,8 +34,6 @@ .%cssClass% .ace_text-layer { cursor: text; color: %foreground%; - font-family: "Menlo", "Monaco", "Courier New", "Courier", monospace; - font-size: 11px; } .%cssClass% .ace_cursor {