Kirill Simonov avatar Kirill Simonov committed a2385b6

Minor styling changes to the shell.

Comments (0)

Files changed (3)

src/htsql_tweak/shell/default/act.py

                     name = name.split(';', 1)[0]
                 name = name.strip()
                 accept.add(name)
-        if 'text/html' not in accept:
+        if not (('text/html' in accept or 'text/*' in accept
+                 or '*/*' in accept) and 'application/json' not in accept):
             return super(ShellRenderUniversal, self).__call__()
         try:
             syntax = parse(self.command.query)

src/htsql_tweak/shell/static/shell.css

   -moz-box-shadow: inset -2px -2px 2px rgba(0,0,0,0.2);
   -webkit-box-shadow: inset -2px -2px 2px rgba(0,0,0,0.2);
   box-shadow: inset -2px -2px 2px rgba(0,0,0,0.2);
+  -moz-border-radius: 3px;
+  -webkit-border-radius: 3px;
+  border-radius: 3px;
 }
 
 .input-area .editor-box .CodeMirror {
   -moz-border-radius: 3px;
   -webkit-border-radius: 3px;
   border-radius: 3px;
+  -moz-box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(0,0,0,0.05);
+  -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(0,0,0,0.05);
   box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(0,0,0,0.05);
   text-shadow: 0 1px 1px rgba(255,255,255,0.75);
 }
 }
 
 #grid tr.alt {
-  background: #eef5dd;
   background: #f2f2f2;
 }
 
 #grid tbody tr:hover {
-  background: #176371;
-  background: #1a1a1a;
   background: #333333;
-  color: #e6e6e6;
   color: #fff;
 }
 
+#grid tbody tr.dummy:hover {
+  background: inherit;
+  color: inherit;
+}
+
 /* Grid styling */
 
 #grid td,
 #grid th {
   padding: 3px 10px;
   overflow: hidden;
-  vertical-align: bottom;
+  vertical-align: baseline;
   word-wrap: break-word;
 }
 
 
 #grid thead th {
   text-align: center;
+  vertical-align: bottom;
 }
 
 #grid tbody th {
   -moz-border-radius: 3px;
   -webkit-border-radius: 3px;
   border-radius: 3px;
+  -moz-box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(0,0,0,0.05);
+  -webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(0,0,0,0.05);
   box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(0,0,0,0.05);
   text-shadow: 0 1px 1px rgba(255,255,255,0.75);
 }

src/htsql_tweak/shell/static/shell.js

             table += '</tr>';
         }
         var ch = output.more ? "&#x22EE;" : "&nbsp;"
-        table += '<tr>';
+        table += '<tr class="dummy">';
         table += '<th class="dummy">'+ch+'</th>';
         for (var i = 0; i < size; i ++) {
             table += '<td class="dummy">'+ch+'</td>';
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.