use from-bottom overlay for grammar view

This commit is contained in:
Justin Palmer
2013-02-06 13:51:40 -08:00
parent cec0757f55
commit 3675407ca7
2 changed files with 9 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ SelectList = require 'select-list'
module.exports =
class GrammarView extends SelectList
@viewClass: -> "#{super} grammar-view from-top overlay"
@viewClass: -> "#{super} grammar-view from-bottom overlay mini"
filterKey: 'name'

View File

@@ -1,6 +1,5 @@
.overlay {
position: absolute;
top: 0;
left: 50%;
width: 500px;
margin-left: -250px;
@@ -26,10 +25,18 @@
.overlay.mini {
width: 200px;
margin-left: -100px;
font-size: 12px;
}
.overlay.from-top {
top: 0;
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.overlay.from-bottom {
bottom: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}