improve dirListing design
[themes.git] / LCARStrek / global / dirListing / dirListing.css
index 9d57a16e6ba11ed747782656daf17187844bdcae..c3851e844e7460a3d421a24f56a9d3d380a2484e 100644 (file)
@@ -1,39 +1,8 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is mozilla.org code.
- *
- * The Initial Developer of the Original Code is
- * Dão Gottwald <dao@design-noir.de>.
- * Portions created by the Initial Developer are Copyright (C) 2007
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *   Ehsan Akhgari <ehsan.akhgari@gmail.com>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+@import url('chrome://global/skin/in-content/common.css');
 
 :root {
   background-color: #000000;
@@ -45,7 +14,7 @@
 
 body {
   border: 1px solid #9C9CFF;
-  -moz-border-radius: 10px;
+  border-radius: 10px;
   padding: 3em;
   min-width: 30em;
   max-width: 65em;
@@ -63,10 +32,14 @@ h1 {
 
 a {
   text-decoration: none;
+  color: #3333FF;
 }
 
-a:hover {
-  background-color: #FFCF00;
+td > a:visited {
+  color: #8050B0;
+}
+
+body > table > tbody > tr:hover a {
   color: #000000;
 }
 
@@ -79,7 +52,14 @@ p {
   float: left;
 }
 
-body[dir="rtl"] #UI_goUp {
+#UI_goUp:hover {
+  background-color: #FFCF00;
+}
+#UI_goUp:hover > a {
+  color: #000000;
+}
+
+#UI_goUp:-moz-dir(rtl) {
   float: right;
 }
 
@@ -88,10 +68,19 @@ body[dir="rtl"] #UI_goUp {
   float: right;
 }
 
-body[dir="rtl"] #UI_showHidden {
+#UI_showHidden:-moz-dir(rtl) {
   float: left;
 }
 
+/* HACK: as the checkbox is inside the label, we need to leave the ugle native checkbox */
+#UI_showHidden > label > input[type="checkbox"] {
+  opacity: 1;
+  position: static;
+}
+#UI_showHidden > label:hover {
+  color: #FFCF00;
+}
+
 table {
   clear: both;
   width: 90%;
@@ -107,14 +96,17 @@ th:first-child {
   text-align: center !important;
 }
 
-th:hover > a {
+th:hover {
   background-color: #FFCF00;
+}
+
+th:hover > a {
   color: #000000;
 }
 
-tbody > tr:hover {
-  outline: 1px solid #008484;
-  -moz-outline-radius: .3em;
+body > table > tbody > tr:hover {
+  background-color: #FFCF00;
+  color: #000000;
 }
 
 /* let 'Size' and 'Last Modified' take only as much space as they need and 'Name' all the rest */
@@ -133,3 +125,7 @@ td:not(:first-child) {
   vertical-align: middle;
   content: url("chrome://global/skin/dirListing/up.png");
 }
+
+#UI_goUp:hover > .up::before {
+  content: url("chrome://global/skin/dirListing/up-hover.png");
+}