1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
14 * The Original Code is the GCLI.
16 * The Initial Developer of the Original Code is
17 * The Mozilla Foundation.
18 * Portions created by the Initial Developer are Copyright (C) 2011
19 * the Initial Developer. All Rights Reserved.
22 * Joe Walker <jwalker@mozilla.com> (original author)
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
38 /* From: $GCLI/mozilla/gcli/ui/gcliterm.css */
40 /* Bug 678152 calls for UX review which will fix the color names */
43 .gcliterm-complete-node {
45 -moz-appearance: none;
47 vertical-align: middle;
48 background-color: transparent;
51 .gcliterm-input-node {
54 -moz-padding-start: 16px;
58 .gcliterm-complete-node {
62 -moz-padding-start: 21px;
63 -moz-padding-end: 4px;
66 .gcliterm-stack-node {
67 background: url("chrome://global/skin/icons/commandline.png") 4px center no-repeat;
71 .gcliterm-argfetcher {
77 border-top: 1px solid #9C9CFF;
78 border-bottom: 1px solid #E7ADE7;
79 border-left: 1px solid #9C9CFF;
80 border-right: 1px solid #9C9CFF;
81 border-top-right-radius: 5px;
82 border-top-left-radius: 5px;
86 .gcliterm-hint-parent {
89 border-top: 1px solid #9C9CFF;
90 border-bottom: 1px solid #9C9CFF;
96 border-bottom-color: #E7ADE7;
99 .gcliterm-hint-scroll {
101 border-bottom-color: #9C9CFF;
104 .gcliterm-hint-nospace {
111 -moz-margin-start: 3px;
112 -moz-margin-end: 6px;
115 /* Extract from display.css, we only want these 2 rules */
118 border: 1px solid #8050B0;
125 vertical-align: bottom;
128 .gcli-out-shortcut:before {
135 * The language of a console is not en_US or any other common language
136 * (i.e we don't attempt to translate 'console.log(x)')
137 * So we fix .gcliterm-input-node/.gcliterm-complete-node elements to be ltr.
138 * As a result we also want the hints to pop up on the left (above the prompt)
140 .gcliterm-input-node,
141 .gcliterm-complete-node,
147 * We want the stuff under .gcliterm-display to obey normal direction rules
148 * so we need to swap back when the document is in rtl mode.
149 * The selectors below are faster, but equivalent to:
150 * .gcliterm-display > *:-moz-locale-dir(rtl) {
153 * In non-performance critical situations the above is preferred due to it's
154 * greater resilience to refactoring
156 .gcliterm-hint-parent:-moz-locale-dir(rtl),
157 .hud-output-node:-moz-locale-dir(rtl) {
161 /* From: $GCLI/mozilla/gcli/ui/gcliterm-winstripe.css */
163 .gcliterm-input-node,
164 .gcliterm-complete-node {
165 font: 12px "Liberation Mono", Consolas, "Courier New", monospace;
169 font-family: "Liberation Mono", Consolas, "Courier New", monospace;
172 /* From: $GCLI/lib/gcli/ui/arg_fetch.css */
176 box-sizing: border-box;
177 -moz-box-sizing: border-box;
190 box-sizing: border-box;
191 -moz-box-sizing: border-box;
202 -moz-padding-start: 5px;
218 .gcli-field-javascript {
222 /* From: $GCLI/lib/gcli/ui/menu.css */
230 border: 1px solid #9C9CFF;
232 border-bottom-right-radius: 5px;
233 border-bottom-left-radius: 5px;
239 .gcli-menu-template {
240 border-collapse: collapse;
252 .gcli-menu-option:hover {
253 background-color: #FFCF00;
260 -moz-padding-start: 10px;
261 -moz-padding-end: 2px;
274 -moz-padding-start: 10px;
275 -moz-padding-end: 2px;
280 /* From: $GCLI/lib/gcli/ui/inputter.css */
285 border: 1px transparent solid;
286 padding: 1px 1px 1px 2px;
290 .gcli-in-incomplete {
291 border-bottom: 2px dotted #9C9CFF;
295 border-bottom: 2px dotted #FF0000;
302 .gcli-in-closebrace {
311 /* From: $GCLI/lib/gcli/commands/help.css */
322 .gcli-help-synopsis {
323 font-family: "Liberation Mono", Consolas, "Courier New", monospace;
327 border: 1px solid #9C9CFF;
331 display: inline-block;
334 .gcli-help-synopsis:before {
339 .gcli-help-description {
344 .gcli-help-parameter {