toolkit/themes/windows/global/dirListing/dirListing.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 :root {
     6   background-color: -moz-dialog;
     7   color: -moz-dialogtext;
     8   font: message-box;
     9   padding-left: 2em;
    10   padding-right: 2em;
    11 }
    13 body {
    14   border: 1px solid ThreeDShadow;
    15   border-radius: 10px;
    16   padding: 3em;
    17   min-width: 30em;
    18   max-width: 65em;
    19   margin: 4em auto;
    20   background-color: -moz-field;
    21   color: -moz-fieldtext;
    22 }
    24 h1 {
    25   font-size: 160%;
    26   margin: 0 0 .6em;
    27   border-bottom: 1px solid ThreeDLightShadow;
    28   font-weight: normal;
    29 }
    31 a {
    32   text-decoration: none;
    33 }
    35 a:hover {
    36   text-decoration: underline;
    37 }
    39 p {
    40   font-size: 110%;
    41 }
    43 #UI_goUp {
    44   margin-top: 0;
    45   float: left;
    46 }
    48 #UI_goUp:-moz-dir(rtl) {
    49   float: right;
    50 }
    52 #UI_showHidden {
    53   margin-top: 0;
    54   float: right;
    55 }
    57 #UI_showHidden:-moz-dir(rtl) {
    58   float: left;
    59 }
    61 table {
    62   clear: both;
    63   width: 90%;
    64   margin: 0 auto;
    65 }
    67 thead {
    68   font-size: 130%;
    69 }
    71 /* last modified */
    72 th:last-child {
    73   text-align: center;
    74 }
    76 th:hover > a {
    77   text-decoration: underline;
    78 }
    80 body > table > tbody > tr:hover {
    81   outline: 1px solid ThreeDLightShadow;
    82   -moz-outline-radius: .3em;
    83 }
    85 /* let 'Size' and 'Last Modified' take only as much space as they need and 'Name' all the rest */
    86 td:not(:first-child) {
    87   width: 0;
    88 }
    90 .up {
    91   padding: 0 .5em;
    92   -moz-margin-start: 20px;
    93 }
    95 .up::before {
    96   -moz-margin-end: 4px;
    97   -moz-margin-start: -20px;
    98   vertical-align: middle;
    99 %ifdef MOZ_WIDGET_GTK
   100   content: url(moz-icon://stock/gtk-go-up?size=menu);
   101 %else
   102   content: url(chrome://global/skin/dirListing/up.png);
   103 %endif
   104 }
   106 .dir::before {
   107 %ifdef MOZ_WIDGET_GTK
   108   content: url(moz-icon://stock/gtk-directory?size=menu);
   109 %else
   110   content: url(chrome://global/skin/dirListing/folder.png);
   111 %endif
   112 }

mercurial