improve dirListing design
[themes.git] / LCARStrek / global / in-content / common.css
index 3faf41f17ab849f33cf36a8669f3b63c1ff77a82..a7fda135efbc3aa46ed0a69d98d5a0955b8de98e 100644 (file)
@@ -8,7 +8,8 @@
 @namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
 
 html|body,
-xul|page {
+xul|page,
+xul|window {
   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
   -moz-appearance: none;
   background-color: #000000;
@@ -25,13 +26,20 @@ html|h1 {
   font-size: 2.5em;
   font-weight: lighter;
   line-height: 1.2;
+  color: #9C9CFF;
   margin: 0;
   margin-bottom: .5em;
 }
 
+html|hr {
+  border-style: solid none none none;
+  border-color: #9C9CFF;
+}
+
 xul|caption {
 }
 
+xul|caption > xul|checkbox,
 xul|caption > xul|label {
   margin-top: 0;
   margin-bottom: 0;
@@ -58,9 +66,7 @@ xul|prefpane > xul|*.content-box {
 xul|groupbox {
   -moz-appearance: none;
   border: none;
-  margin-top: 15px;
-  margin-bottom: 15px;
-  -moz-margin-end: 0;
+  margin: 15px 0 0;
   -moz-padding-start: 0;
   -moz-padding-end: 0;
   font-size: 1.25rem;
@@ -111,7 +117,7 @@ xul|tab:hover {
   background-color: #ebebeb;
 }
 
-xul|tab[selected] {
+xul|tab[visuallyselected] {
   background-color: #ebebeb;
   padding-bottom: 0; / compensate the 4px border /
   border-bottom: 4px solid #ff9500;
@@ -201,7 +207,7 @@ xul|menulist > xul|*.menulist-label-box {
   padding-left: 10px !important;
 }
 
-xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon {
+xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] {
   -moz-margin-end: 5px;
 }
 
@@ -363,7 +369,6 @@ xul|button[type="menu"] > xul|menupopup xul|menuseparator {
   height: 30px;
   color: #333;
   line-height: 20px;
-  text-shadow: 0 1px 1px #fefffe;
   padding-right: 10px;
   padding-left: 10px;
   border: 1px solid #c1c1c1;
@@ -388,62 +393,94 @@ xul|textbox[disabled="true"] {
 /* Links */
 
 html|a,
-xul|*.text-link,
-xul|*.inline-link {
+.text-link,
+.inline-link {
 /*  line-height: 22px;*/
   color: #3333FF;
   text-decoration: none;
 }
 
 html|a:hover,
-xul|*.text-link:hover,
-xul|*.inline-link:hover {
+.text-link:hover,
+.inline-link:hover {
   color: #FFCF00;
   text-decoration: underline;
 }
 
 html|a:hover:active,
-xul|*.text-link:hover:active,
-xul|*.inline-link:hover:active {
+.text-link:hover:active,
+.inline-link:hover:active {
   color: #FF9F00;
   text-decoration: underline;
 }
 
 /* Checkboxes and radio buttons */
+/* Hide the actual checkbox */
+html|input[type="checkbox"] {
+  opacity: 0;
+  position: absolute;
+}
+
+/* Create a box to style as the checkbox */
+html|input[type="checkbox"] + html|label:before {
+  display: inline-block;
+  content: "";
+  vertical-align: middle;
+}
+
+html|input[type="checkbox"] + html|label {
+  line-height: 0px;
+}
 /*
 xul|checkbox {
   -moz-margin-start: 0;
 }
-
-xul|*.checkbox-check {
+*/
+/* xul|*.checkbox-check, */
+html|input[type="checkbox"] + html|label:before {
   -moz-appearance: none;
   width: 23px;
   height: 23px;
-  border-radius: 2px;
-  border: 1px solid #c1c1c1;
+  border-radius: 0;
+  border: 1px solid #FF9F00;
   -moz-margin-end: 10px;
-  background-color: #f1f1f1;
-  / !important needed to override toolkit checked !important rule /
-  background-image: linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
+  background-color: #000000;
   background-position: center center;
   background-repeat: no-repeat;
-  box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03);
 }
 
-xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check {
-  border-color: #0095dd;
+/* xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check, */
+html|input[type="checkbox"]:not(:disabled) + html|label:hover:before {
+  border-color: #FFCF00;
 }
-
+html|input[type="checkbox"]:not(:disabled) + html|label:hover {
+  color: #FFCF00;
+}
+/*
 xul|*.checkbox-check[checked] {
   background-image: url("chrome://global/skin/in-content/check.png"),
                     / * !important needed to override toolkit !important rule * /
                     linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
 }
-
-xul|checkbox[disabled="true"] > xul|*.checkbox-check {
-  opacity: 0.5;
+*/
+html|input[type="checkbox"]:checked + html|label:before {
+  background-image: url("chrome://global/skin/in-content/check.svg#check");
 }
 
+/*xul|checkbox[checked][disabled="true"] > xul|*.checkbox-check,*/
+html|input[type="checkbox"]:checked:disabled + html|label:before {
+  background-image: url("chrome://global/skin/in-content/check.svg#check-disabled");
+}
+html|input[type="checkbox"]:not(:disabled) + html|label:hover:before {
+  background-image: url("chrome://global/skin/in-content/check.svg#check-hover");
+}
+html|input[type="checkbox"]:disabled + html|label:before {
+  border-color: #8050B0;
+}
+html|input[type="checkbox"]:disabled + html|label {
+  color: #8050B0;
+}
+/*
 xul|*.checkbox-label-box {
   -moz-margin-start: -1px; / * negative margin for the transparent border * /
   -moz-padding-start: 0;
@@ -453,6 +490,10 @@ xul|richlistitem > xul|*.checkbox-check {
   margin: 3px 6px;
 }
 
+xul|radio {
+  -moz-margin-start: 0;
+}
+
 xul|*.radio-check {
   -moz-appearance: none;
   width: 23px;
@@ -518,15 +559,18 @@ xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[cur
   border-top: 1px #ffffff dotted;
   border-bottom: 1px #ffffff dotted;
 }
-
+*/
 *|*.category-name {
+/*
   line-height: 22px;
   font-size: 1.25rem;
   padding-bottom: 2px;
   -moz-padding-start: 9px;
   margin: 0;
+*/
+  -moz-user-select: none;
 }
-
+/*
 *|*.category-icon {
   width: 24px;
   height: 24px;
@@ -546,6 +590,7 @@ xul|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[cur
   font-weight: normal;
   line-height: 40px;
   margin: 0;
+  -moz-user-select: none;
 }
 
 /* File fields */
@@ -643,6 +688,12 @@ xul|tree {
   -moz-appearance: none;
   font-size: 1em;
   border: 1px solid #c1c1c1;
+  margin: 0;
+}
+
+xul|tree:-moz-focusring,
+xul|richlistbox:-moz-focusring {
+  border: 1px dotted #0095dd;
 }
 
 xul|listheader,
@@ -662,7 +713,7 @@ xul|treecolpicker {
   padding: 5px 10px;
 }
 
-xul|treecol:not([hideheader="true"]):hover,
+xul|treecol:not([hideheader="true"]):not([sortable="false"]):hover,
 xul|treecolpicker:hover {
   background-color: #dadada;
   color: #333;
@@ -676,20 +727,14 @@ xul|treecolpicker {
 }
 
 xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] {
-  list-style-image: url("chrome://global/skin/in-content/sorter.png");
-  width: 12px;
-  height: 8px;
+  list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
+  width: 18px;
+  height: 18px;
 }
 
-xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="descending"] {
+xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="ascending"] {
   transform: scaleY(-1);
 }
-
-@media (min-resolution: 2dppx) {
-  xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] {
-    list-style-image: url("chrome://global/skin/in-content/sorter@2x.png");
-  }
-}
 */
 /* === END common.inc.css === */
 /*
@@ -698,6 +743,7 @@ xul|caption {
 }
 
 xul|button,
+html|button,
 xul|colorpicker[type="button"],
 xul|menulist {
   margin: 2px 4px;
@@ -714,7 +760,6 @@ xul|checkbox {
 
 xul|radio {
   -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
-  -moz-margin-start: 0;
   -moz-padding-start: 0;
 }
 
@@ -724,8 +769,8 @@ xul|*.checkbox-icon {
 }
 */
 html|a:-moz-focusring,
-xul|*.text-link:-moz-focusring,
-xul|*.inline-link:-moz-focusring {
+.text-link:-moz-focusring,
+.inline-link:-moz-focusring {
   /* Don't specify the outline-color, we should always use initial value. */
   outline: 1px dotted;
 }