toolkit/themes/linux/global/autocomplete.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 /* ===== autocomplete.css =================================================
     6   == Styles used by the autocomplete widget.
     7   ======================================================================= */
     9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    10 @namespace html url("http://www.w3.org/1999/xhtml");
    12 /* ::::: autocomplete ::::: */
    14 /* .padded is used by autocomplete widgets that don't have an icon. Gross. -dwh */
    15 textbox:not(.padded) {
    16   cursor: default;
    17   padding: 0 1px;
    18 }
    20 textbox[enablehistory="true"] {
    21   -moz-appearance: none;
    22   border: 0;
    23   background-color: transparent;
    24 }
    26 textbox[nomatch="true"][highlightnonmatches="true"] {
    27   color: red;
    28 }
    30 .autocomplete-textbox-container {
    31   -moz-box-align: center;
    32 }
    34 textbox[enablehistory="true"] > .autocomplete-textbox-container {
    35   -moz-appearance: menulist-textfield;
    36 }
    38 textbox:not(.padded) .textbox-input-box {
    39   margin: 0 3px;
    40 }
    42 .textbox-input-box {
    43   -moz-box-align: center;
    44 }
    46 /* ::::: autocomplete popups ::::: */
    48 panel[type="autocomplete"],
    49 panel[type="autocomplete-richlistbox"],
    50 .autocomplete-history-popup {
    51   border-width: 1px;
    52   -moz-border-top-colors: ThreeDDarkShadow;
    53   -moz-border-right-colors: ThreeDDarkShadow;
    54   -moz-border-bottom-colors: ThreeDDarkShadow;
    55   -moz-border-left-colors: ThreeDDarkShadow;
    56   padding: 0;
    57   background-color: -moz-Field;
    58 }
    60 .autocomplete-history-popup {
    61   max-height: 180px;
    62 }
    64 /* ::::: tree ::::: */
    66 .autocomplete-tree {
    67   -moz-appearance: none !important;
    68   border: none !important;
    69   background-color: transparent !important;
    70   color: MenuText;
    71 }
    73 .autocomplete-treecol {
    74   -moz-appearance: none !important;
    75   margin: 0 !important;
    76   border: none !important;
    77   padding: 0 !important;
    78 }
    80 /* GTK calculates space for a sort arrow */
    81 .autocomplete-treecol > .treecol-sortdirection {
    82   -moz-appearance: none !important;
    83 }
    85 .autocomplete-treebody::-moz-tree-cell-text {
    86   -moz-padding-start: 8px;
    87 }
    89 treechildren.autocomplete-treebody::-moz-tree-row(selected) {
    90  background-color: Highlight;
    91 }
    93 treechildren.autocomplete-treebody::-moz-tree-cell-text(selected) {
    94   color: HighlightText !important;
    95 }
    97 .autocomplete-treebody::-moz-tree-image(treecolAutoCompleteValue) {
    98   max-width: 16px;
    99   height: 16px;
   100 }
   102 /* ::::: richlistbox autocomplete ::::: */
   104 .autocomplete-richlistbox {
   105   -moz-appearance: none;
   106   margin: 1px;
   107   background-color: transparent;
   108 }
   110 .autocomplete-richlistitem[selected="true"] {
   111   background-color: Highlight;
   112   color: HighlightText;
   113 }
   115 .autocomplete-richlistitem {
   116   padding: 6px 2px;
   117   color: MenuText;
   118 }
   120 .ac-url-box {
   121   margin-top: 1px;
   122 }
   124 .ac-site-icon {
   125   width: 16px; 
   126   height: 16px;
   127   margin-bottom: -2px;
   128   -moz-margin-start: 3px;
   129   -moz-margin-end: 6px;
   130 }
   132 .ac-type-icon {
   133   width: 16px; 
   134   height: 16px;
   135   -moz-margin-start: 6px;
   136   -moz-margin-end: 4px;
   137 }
   139 .ac-extra > .ac-result-type-tag {
   140   margin: 0 4px;
   141 }
   143 .ac-extra > .ac-comment {
   144   padding-right: 4px;
   145 }
   147 .ac-ellipsis-after {
   148   margin: 0 !important;
   149   padding: 0; 
   150   min-width: 1em;
   151 }
   153 .ac-normal-text {
   154   margin: 0 !important;
   155   padding: 0;
   156 }
   158 .ac-normal-text > html|span {
   159   margin: 0 !important;
   160   padding: 0;
   161 }
   163 html|span.ac-emphasize-text {
   164   box-shadow: inset 0 0 1px 1px rgba(0,0,0,0.1);
   165   background-color: rgba(0,0,0,0.05);
   166   border-radius: 2px;
   167   text-shadow: 0 0 currentColor; /*faux bold effect*/
   168 }
   170 .ac-url-text > html|span.ac-emphasize-text,
   171 .ac-action-text > html|span.ac-emphasize-text {
   172   box-shadow: none;
   173 }
   175 .ac-normal-text[selected="true"] > html|span.ac-emphasize-text {
   176   box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.3);
   177   background-color: rgba(255,255,255,0.2);
   178 }
   180 .ac-title, .ac-url {
   181   overflow: hidden;
   182 }
   184 /* ::::: textboxes inside toolbarpaletteitems ::::: */
   186 toolbarpaletteitem > toolbaritem > textbox > hbox > hbox > html|*.textbox-input {
   187   visibility: hidden;
   188 }
   190 toolbarpaletteitem > toolbaritem > * > textbox > hbox > hbox > html|*.textbox-input {
   191   visibility: hidden;
   192 }

mercurial