From 5ab014d8c09e7cc3785fc837cef593c897e1d33c Mon Sep 17 00:00:00 2001 From: Van Date: Fri, 14 Nov 2014 17:06:13 +0800 Subject: [PATCH] go file --- static/css/base.css | 19 +++++++++++ static/css/dialog.css | 12 ++----- static/css/wide.css | 19 ++--------- static/js/editors.js | 2 +- static/js/hotkeys.js | 49 +++++++++++++++++++++++++++ static/js/wide.js | 66 +++++++++++++++++++++++-------------- static/user/admin/style.css | 4 +-- views/index.html | 2 +- 8 files changed, 119 insertions(+), 54 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index 8ac7f00..0dc9b7c 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -60,3 +60,22 @@ button { display: none; } /* end reset & function */ + +/* start common */ +.list li { + cursor: pointer; + line-height: 20px; + padding: 0 3px; + word-wrap: normal; + word-break: normal; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.list li.selected, +.list li:hover{ + background-color: #3875d7; + color: #FFF; +} +/* end common */ \ No newline at end of file diff --git a/static/css/dialog.css b/static/css/dialog.css index 6c1b8ba..258810e 100644 --- a/static/css/dialog.css +++ b/static/css/dialog.css @@ -99,16 +99,10 @@ } #dialogGoFilePrompt > ul { + position: relative; height: 260px; overflow: auto; margin-top: 5px; -} - -#dialogGoFilePrompt li { - -} - -#dialogGoFilePrompt li.selected, -#dialogGoFilePrompt li:hover { - + background-color: #FFF; + border: 1px solid #9B9B9B; } \ No newline at end of file diff --git a/static/css/wide.css b/static/css/wide.css index ed4d3c9..354be75 100644 --- a/static/css/wide.css +++ b/static/css/wide.css @@ -336,28 +336,13 @@ padding: 0 5px; } -.bottom-window-group .search li { - cursor: pointer; - line-height: 20px; - padding: 0 3px; - word-wrap: normal; - word-break: normal; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.bottom-window-group .search li.selected { - background-color: #3875d7; - color: #FFF; -} - .bottom-window-group .search .path { color: #999; font-size: 12px; } -.bottom-window-group .search li.selected .path { +.bottom-window-group .search li.selected .path, +.bottom-window-group .search li:hover .path { color: #FFF; } /* end bottom-window-group */ diff --git a/static/js/editors.js b/static/js/editors.js index 53c1ae1..5f57f0d 100644 --- a/static/js/editors.js +++ b/static/js/editors.js @@ -486,7 +486,7 @@ var editors = { }; }, appendSearch: function (data, type, key) { - var searcHTML = '