mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
kill grammar-view.css, uses overlay and select list defaults
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
.grammar-view {
|
||||
width: 50%;
|
||||
margin-left: -25%;
|
||||
}
|
||||
|
||||
.grammar-view ol {
|
||||
max-height: 300px;
|
||||
}
|
||||
@@ -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';
|
||||
}
|
||||
Reference in New Issue
Block a user