-
-
+
diff --git a/src/browser/popup/styles/_popup.styl b/src/browser/popup/styles/_popup.styl
index 9f3e25e5..87f2338b 100644
--- a/src/browser/popup/styles/_popup.styl
+++ b/src/browser/popup/styles/_popup.styl
@@ -26,6 +26,7 @@
padding: 0
border-right: 1px solid $baseBorderColor
li
+ white-space nowrap
&:nth-child(even)
background-color $baseBackgroundColor
&:nth-child(odd)
diff --git a/src/browser/popup/styles/app.css b/src/browser/popup/styles/app.css
new file mode 100644
index 00000000..7721a28d
--- /dev/null
+++ b/src/browser/popup/styles/app.css
@@ -0,0 +1,68 @@
+.popup-body .search-block {
+ padding: 5px;
+ height: 44px;
+ position: absolute;
+ top: 0;
+ width: 100%;
+}
+.popup-body .result-block {
+ position: absolute;
+ top: 44px;
+ bottom: 0;
+ width: 100%;
+ overflow: hidden;
+}
+.popup-body .result-block .left-pane {
+ margin: 0;
+ position: absolute;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ width: 40%;
+ overflow-y: auto;
+ overflow-x: hidden;
+}
+.popup-body .result-block .result-list {
+ list-style: none;
+ padding: 0;
+ border-right: 1px solid #001a20;
+}
+.popup-body .result-block .result-list li {
+ white-space: nowrap;
+}
+.popup-body .result-block .result-list li:nth-child(even) {
+ background-color: #002b36;
+}
+.popup-body .result-block .result-list li:nth-child(odd) {
+ background-color: #00323f;
+}
+.popup-body .result-block .result-list li.active {
+ color: #fff;
+ background-color: #088cff;
+}
+.popup-body .result-block .result-list li a {
+ display: block;
+ padding: 5px 10px;
+ border-bottom: 1px solid #001a20;
+}
+.popup-body .result-block .right-pane {
+ position: absolute;
+ left: 40%;
+ top: 0;
+ bottom: 0;
+ width: 60%;
+ overflow-y: auto;
+ overflow-x: hidden;
+}
+.popup-body .result-block .result-detail-control {
+ position: absolute;
+ top: 0;
+ width: 100%;
+ height: 34px;
+}
+.popup-body .result-block .result-detail-content {
+ position: absolute;
+ top: 34px;
+ bottom: 0;
+ width: 100%;
+}
diff --git a/src/browser/popup/styles/main.styl b/src/browser/popup/styles/app.styl
similarity index 100%
rename from src/browser/popup/styles/main.styl
rename to src/browser/popup/styles/app.styl
diff --git a/src/browser/shared/config/env.js b/src/browser/shared/config/env.js
index d8d15783..51fe6bc9 100644
--- a/src/browser/shared/config/env.js
+++ b/src/browser/shared/config/env.js
@@ -1,4 +1,4 @@
/* global angular */
angular.module('codexen.shared')
- .constant('apiUrl', 'http://localhost:8000/')
- // .constant('apiUrl', 'http://codexen-server-dev.elasticbeanstalk.com/')
+ // .constant('apiUrl', 'http://localhost:8000/')
+ .constant('apiUrl', 'http://codexen-server-dev.elasticbeanstalk.com/')
diff --git a/src/main.js b/src/main.js
index 91b4f428..8b76a5b4 100644
--- a/src/main.js
+++ b/src/main.js
@@ -87,16 +87,14 @@ app.on('ready', function () {
var fromMain
// Register a 'ctrl+x' shortcut listener.
- var ret = globalShortcut.register('ctrl+tab+shift', function () {
+ globalShortcut.register('ctrl+tab+shift', function () {
if (popUpWindow.isVisible()) {
hidePopUp()
return
}
fromMain = mainWindow ? mainWindow.isFocused() : false
popUpWindow.show()
-
})
- if (!ret) console.log('registerion fails')
// MENU
var Menu = require('menu')