From 081a57b51112ed636c2e2a401949547d4ef1f76c Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 3 Oct 2012 20:46:07 -1000 Subject: [PATCH] Position select lists at the top center like Sublime Text does --- src/extensions/event-palette/event-palette.css | 6 +++--- static/fuzzy-finder.css | 11 ----------- static/select-list.css | 13 +++++++++++++ 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/extensions/event-palette/event-palette.css b/src/extensions/event-palette/event-palette.css index 9a784c7b7..8deb678dc 100644 --- a/src/extensions/event-palette/event-palette.css +++ b/src/extensions/event-palette/event-palette.css @@ -4,7 +4,7 @@ bottom: 0; } -.select-list { +.event-palette .select-list { background-color: black; position: relative; max-height: 300px; @@ -12,10 +12,10 @@ overflow-y: auto; } -.select-list table { +.event-palette .select-list table { width: 100%; } -.select-list .selected { +.event-palette .select-list .selected { background-color: green; } diff --git a/static/fuzzy-finder.css b/static/fuzzy-finder.css index e845f5198..3673cc279 100644 --- a/static/fuzzy-finder.css +++ b/static/fuzzy-finder.css @@ -1,14 +1,3 @@ -.fuzzy-finder { - position: absolute; - width: 100%; - bottom: 0; - background-color: #444; - box-sizing: border-box; - color: #eee; - -webkit-box-shadow: 0 0 5px 5px #222; - padding: 5px; -} - .fuzzy-finder ol { overflow: hidden; margin-bottom: 5px; diff --git a/static/select-list.css b/static/select-list.css index 8eff8aeae..f8a9176b8 100644 --- a/static/select-list.css +++ b/static/select-list.css @@ -1,3 +1,16 @@ +.select-list { + position: absolute; + width: 80%; + top: 0; + left: 50%; + margin-left: -40%; + background-color: #444; + box-sizing: border-box; + color: #eee; + -webkit-box-shadow: 0 0 5px 5px #222; + padding: 5px; +} + .select-list ol { position: relative; overflow-y: auto;