mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
use from-bottom overlay for grammar view
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user