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;
113 list-style-image: none;
116 /* Extract from display.css, we only want these 2 rules */
119 border: 1px solid #8050B0;
126 vertical-align: bottom;
129 .gcli-out-shortcut:before {
136 * The language of a console is not en_US or any other common language
137 * (i.e we don't attempt to translate 'console.log(x)')
138 * So we fix .gcliterm-input-node/.gcliterm-complete-node elements to be ltr.
139 * As a result we also want the hints to pop up on the left (above the prompt)
141 .gcliterm-input-node,
142 .gcliterm-complete-node,
148 * We want the stuff under .gcliterm-display to obey normal direction rules
149 * so we need to swap back when the document is in rtl mode.
150 * The selectors below are faster, but equivalent to:
151 * .gcliterm-display > *:-moz-locale-dir(rtl) {
154 * In non-performance critical situations the above is preferred due to it's
155 * greater resilience to refactoring
157 .gcliterm-hint-parent:-moz-locale-dir(rtl),
158 .hud-output-node:-moz-locale-dir(rtl) {
162 /* From: $GCLI/mozilla/gcli/ui/gcliterm-winstripe.css */
164 .gcliterm-input-node,
165 .gcliterm-complete-node {
166 font: 12px "Liberation Mono", Consolas, "Courier New", monospace;
170 font-family: "Liberation Mono", Consolas, "Courier New", monospace;
173 /* From: $GCLI/lib/gcli/ui/arg_fetch.css */
177 -moz-box-sizing: border-box;
190 -moz-box-sizing: border-box;
201 -moz-padding-start: 5px;
217 .gcli-field-javascript {
221 /* From: $GCLI/lib/gcli/ui/menu.css */
229 border: 1px solid #9C9CFF;
231 border-bottom-right-radius: 5px;
232 border-bottom-left-radius: 5px;
238 .gcli-menu-template {
239 border-collapse: collapse;
251 .gcli-menu-option:hover {
252 background-color: #FFCF00;
259 -moz-padding-start: 10px;
260 -moz-padding-end: 2px;
273 -moz-padding-start: 10px;
274 -moz-padding-end: 2px;
279 /* From: $GCLI/lib/gcli/ui/inputter.css */
284 border: 1px transparent solid;
285 padding: 1px 1px 1px 2px;
289 .gcli-in-incomplete {
290 border-bottom: 2px dotted #9C9CFF;
294 border-bottom: 2px dotted #FF0000;
301 .gcli-in-closebrace {
310 .gcli-in-scratchlink {
317 /* From: $GCLI/lib/gcli/commands/help.css */
328 .gcli-help-synopsis {
329 font-family: "Liberation Mono", Consolas, "Courier New", monospace;
333 border: 1px solid #9C9CFF;
337 display: inline-block;
340 .gcli-help-synopsis:before {
345 .gcli-help-description {
350 .gcli-help-parameter {