toolkit/themes/windows/global/tree.css

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 /* ===== tree.css ===================================================
     6   == Styles used by the XUL outline element.
     7   ======================================================================= */
     9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    11 /* ::::: tree ::::: */
    13 tree {
    14   margin: 0px 4px;
    15   border: 2px solid;
    16   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
    17   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
    18   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
    19   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
    20   background-color: -moz-Field;
    21   color: -moz-FieldText;
    22   -moz-appearance: listbox;
    23 }
    25 /* ::::: tree focusring ::::: */
    27 .focusring > .tree-stack > .tree-rows > .tree-bodybox {
    28   border: 1px solid transparent;  
    29 }
    31 .focusring:-moz-focusring > .tree-stack > .tree-rows > .tree-bodybox {
    32   border: 1px solid #000000;
    33 }
    36 /* ::::: tree rows ::::: */
    38 treechildren::-moz-tree-row {
    39   border: 1px solid transparent;
    40   min-height: 18px;
    41   height: 1.3em;
    42 }
    44 treechildren::-moz-tree-row(selected) {
    45   background-color: -moz-cellhighlight;
    46 }
    48 treechildren::-moz-tree-row(selected, focus) {
    49   background-color: Highlight;
    50 }
    52 treechildren::-moz-tree-row(current, focus) {
    53   border: 1px dotted Highlight;
    54 }
    56 treechildren::-moz-tree-row(selected, current, focus) {
    57   border: 1px dotted #F3D982;
    58 }
    60 tree[seltype="cell"] > treechildren::-moz-tree-row,
    61 tree[seltype="text"] > treechildren::-moz-tree-row {
    62   border: none;
    63   background-color: transparent;
    64   background-image: none;
    65 }
    67 /* ::::: tree cells ::::: */
    69 treechildren::-moz-tree-cell {
    70   padding: 0px 2px 0px 2px;
    71 }
    73 tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
    74 tree[seltype="text"] > treechildren::-moz-tree-cell-text,
    75 treechildren::-moz-tree-cell-text {
    76   color: inherit;
    77 }
    79 treechildren::-moz-tree-cell-text(selected) {
    80   color: -moz-cellhighlighttext;
    81 }
    83 tree[seltype="cell"] > treechildren::-moz-tree-cell {
    84   border: 1px solid transparent;
    85   padding: 0px 1px 0px 1px;
    86 }
    88 tree[seltype="text"] > treechildren::-moz-tree-cell-text {
    89   border: 1px solid transparent;
    90   padding: 0px 1px 1px 1px;
    91 }
    93 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
    94   background-color: -moz-cellhighlight;
    95 }
    96 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
    97   color: -moz-cellhighlighttext;
    98 }
   100 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
   101   background-color: -moz-cellhighlight;
   102   color: -moz-cellhighlighttext;
   103 }
   105 treechildren::-moz-tree-cell-text(selected, focus) {
   106   color: HighlightText;
   107 }
   109 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
   110   background-color: Highlight;
   111 }
   113 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
   114   background-color: Highlight;
   115 }
   117 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
   118   color: HighlightText;
   119 }
   121 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
   122   color: HighlightText;
   123 }
   125 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
   126   border: 1px dotted #000000;
   127 }
   129 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
   130   border: 1px dotted #000000;
   131 }
   133 tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
   134   border: 1px dotted #C0C0C0;
   135 }
   137 tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
   138   border: 1px dotted #C0C0C0;
   139 }
   141 /* ::::: lines connecting cells ::::: */
   143 tree[seltype="cell"] > treechildren::-moz-tree-line,
   144 tree[seltype="text"] > treechildren::-moz-tree-line,
   145 treechildren::-moz-tree-line {
   146   border: 1px dotted ThreeDShadow;
   147 }
   149 tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
   150 treechildren::-moz-tree-line(selected, focus) {
   151   border: 1px dotted HighlightText;
   152 }
   154 /* ::::: tree separator ::::: */
   156 treechildren::-moz-tree-separator {
   157   border-top: 1px solid ThreeDShadow;
   158   border-bottom: 1px solid ThreeDHighlight;
   159 }
   162 /* ::::: drop feedback ::::: */
   164 treechildren::-moz-tree-row(dropOn) {
   165   background-color: Highlight;
   166 }
   168 tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
   169 tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
   170 treechildren::-moz-tree-cell-text(primary, dropOn) {
   171   color: HighlightText;
   172 }
   174 treechildren::-moz-tree-drop-feedback {
   175   background-color: Highlight;
   176   width: 50px;
   177   height: 2px;
   178   -moz-margin-start: 5px;
   179 }
   181 /* ::::: tree progress meter ::::: */
   183 treechildren::-moz-tree-progressmeter {
   184   margin: 2px 4px;
   185   padding: 1px;
   186   border: 1px solid;
   187   border-top-color: ThreeDShadow;
   188   border-right-color: ThreeDHighlight;
   189   border-bottom-color: ThreeDHighlight;
   190   border-left-color: ThreeDShadow;
   191   background-color: -moz-Dialog;
   192   color: ThreeDShadow;
   193 }
   195 treechildren::-moz-tree-progressmeter(progressUndetermined) {
   196   list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
   197 }
   199 treechildren::-moz-tree-cell-text(progressmeter) {
   200   margin: 2px 4px;
   201 }
   203 /* ::::: tree columns ::::: */
   205 treecol,
   206 treecolpicker {
   207   -moz-appearance: treeheadercell;
   208   -moz-box-align: center;
   209   -moz-box-pack: center;
   210   border: 2px solid;
   211   -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
   212   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
   213   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
   214   -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
   215   background-color: -moz-Dialog;
   216   color: -moz-DialogText;
   217   padding: 0px 4px;
   218 }
   220 .treecol-image {
   221   padding: 0px 1px;
   222 }
   224 .treecol-text {
   225   margin: 0px !important;
   226 }
   228 treecol[hideheader="true"] {
   229   -moz-appearance: none;
   230   border: none;
   231   padding: 0;
   232 }
   234 /* ..... internal box ..... */
   236 treecol:hover:active,
   237 treecolpicker:hover:active {
   238   border-top: 2px solid;
   239   border-right: 1px solid;
   240   border-bottom: 1px solid;
   241   border-left: 2px solid;
   242   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
   243   -moz-border-right-colors: ThreeDShadow;
   244   -moz-border-bottom-colors: ThreeDShadow;
   245   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
   246   padding-top: 1px;
   247   padding-bottom: 0px;
   248   -moz-padding-start: 5px;
   249   -moz-padding-end: 4px;
   250 }
   252 .treecol-image:hover:active {
   253   padding-top: 1px;
   254   padding-bottom: 0px;
   255   -moz-padding-start: 2px;
   256   -moz-padding-end: 1px;
   257 }
   259 /* ::::: column drag and drop styles ::::: */
   261 treecol[dragging="true"] {
   262   -moz-border-top-colors: ThreeDDarkShadow transparent !important;
   263   -moz-border-right-colors: ThreeDDarkShadow transparent!important;
   264   -moz-border-bottom-colors: ThreeDDarkShadow transparent !important;
   265   -moz-border-left-colors: ThreeDDarkShadow transparent !important;
   266   background-color: ThreeDShadow !important;
   267   color: ThreeDHighlight !important;
   268 }
   270 treecol[insertafter="true"]:-moz-locale-dir(ltr),
   271 treecol[insertbefore="true"]:-moz-locale-dir(rtl) {
   272   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
   273 }
   275 treecol[insertafter="true"]:-moz-locale-dir(rtl),
   276 treecol[insertbefore="true"]:-moz-locale-dir(ltr) {
   277   -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
   278 }
   280 treechildren::-moz-tree-column(insertbefore) {
   281   -moz-border-start: 1px solid ThreeDShadow;
   282 }
   284 treechildren::-moz-tree-column(insertafter) {
   285   -moz-border-end: 1px solid ThreeDShadow;
   286 }
   288 /* ::::: sort direction indicator :::::  */
   290 .treecol-sortdirection {
   291   list-style-image: none;
   292 }
   294 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
   295   list-style-image: url("chrome://global/skin/tree/sort-asc.png");
   296 }
   298 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"]:-moz-system-metric(windows-classic) {
   299   list-style-image: url("chrome://global/skin/tree/sort-asc-classic.png");
   300 }
   302 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
   303   list-style-image: url("chrome://global/skin/tree/sort-dsc.png");
   304 }
   306 treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"]:-moz-system-metric(windows-classic) {
   307   list-style-image: url("chrome://global/skin/tree/sort-dsc-classic.png");
   308 }
   310 /* ::::: column picker :::::  */
   312 .tree-columnpicker-icon {
   313   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
   314 }
   316 /* ::::: twisty :::::  */
   318 treechildren::-moz-tree-twisty {
   319   -moz-padding-end: 4px;
   320   padding-top: 1px;
   321   width: 9px; /* The image's width is 9 pixels */
   322   list-style-image: url("chrome://global/skin/tree/twisty-clsd.png");
   323 }
   325 treechildren::-moz-tree-twisty(open) {
   326   width: 9px; /* The image's width is 9 pixels */
   327   list-style-image: url("chrome://global/skin/tree/twisty-open.png");
   328 }
   330 treechildren::-moz-tree-indentation {
   331   width: 18px;
   332 }
   334 /* ::::: gridline style ::::: */
   336 treechildren.gridlines::-moz-tree-cell {
   337   border-right: 1px solid transparent !important;
   338   border-bottom: 1px solid transparent !important;
   339 }
   341 treechildren.gridlines::-moz-tree-row {
   342   border: none;
   343 }
   345 /* ::::: editable tree ::::: */
   347 treechildren::-moz-tree-row(selected, editing) {
   348   background-color: transparent;
   349   border: none;
   350 }
   352 treechildren::-moz-tree-cell-text(selected, editing) {
   353   color: inherit;
   354 }
   356 .tree-input {
   357   -moz-appearance: none;
   358   border: 1px solid Highlight;
   359   -moz-border-top-colors: Highlight;
   360   -moz-border-bottom-colors: Highlight;
   361   -moz-border-left-colors: Highlight;
   362   -moz-border-right-colors: Highlight;
   363   margin: 0;
   364   -moz-margin-start: -4px;
   365   padding: 1px;
   366 }

mercurial