From ffa3518cb3cd5194c26eb204e60985cee64f3821 Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Mon, 4 Feb 2013 08:14:52 -0800 Subject: [PATCH] kill grammar-view.css, uses overlay and select list defaults --- src/app/grammar-view.coffee | 3 +-- static/grammar-view.css | 8 -------- themes/atom-dark-ui/grammar-view.css | 17 ----------------- 3 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 static/grammar-view.css delete mode 100644 themes/atom-dark-ui/grammar-view.css diff --git a/src/app/grammar-view.coffee b/src/app/grammar-view.coffee index bd0b73251..3465c45a7 100644 --- a/src/app/grammar-view.coffee +++ b/src/app/grammar-view.coffee @@ -4,7 +4,7 @@ SelectList = require 'select-list' module.exports = class GrammarView extends SelectList - @viewClass: -> "#{super} grammar-view" + @viewClass: -> "#{super} grammar-view from-top overlay" filterKey: 'name' @@ -12,7 +12,6 @@ class GrammarView extends SelectList @currentGrammar = @editor.getGrammar() @path = @editor.getPath() @autoDetect = name: 'Auto Detect' - requireStylesheet 'grammar-view.css' @command 'editor:select-grammar', => @cancel() false diff --git a/static/grammar-view.css b/static/grammar-view.css deleted file mode 100644 index 1cbeeba30..000000000 --- a/static/grammar-view.css +++ /dev/null @@ -1,8 +0,0 @@ -.grammar-view { - width: 50%; - margin-left: -25%; -} - -.grammar-view ol { - max-height: 300px; -} \ No newline at end of file diff --git a/themes/atom-dark-ui/grammar-view.css b/themes/atom-dark-ui/grammar-view.css deleted file mode 100644 index 7be94f4c0..000000000 --- a/themes/atom-dark-ui/grammar-view.css +++ /dev/null @@ -1,17 +0,0 @@ -.grammar-view ol li { - line-height: 16px; -} - -.grammar-view ol li.grammar { - padding-left: 21px; -} - -.grammar-view ol li.current-grammar:before { - font-family: 'Octicons Regular'; - width: 16px; - height: 16px; - margin-right: 5px; - -webkit-font-smoothing: antialiased; - color: #ccc; - content: '\f03a'; -}