some small adjustments to make it work better
[themes.git] / LCARStrek / global / tree.css
index 381dcd3ddb656dc6b3acde5c1985c968dd45a3d8..ebcabf6c61317fe8f09d0aca2a1cad5d72c90bd4 100644 (file)
@@ -56,11 +56,11 @@ tree {
 /* ::::: tree focusring ::::: */
 
 /* deactivated, looks too bad for me in LCARStrek
-.focusring > .tree-rows > .tree-bodybox {
+.focusring > .tree-stack > .tree-rows > .tree-bodybox {
   border: 1px solid transparent;
 }
 
-.focusring:focus > .tree-rows > .tree-bodybox {
+.focusring:focus > .tree-stack > .tree-rows > .tree-bodybox {
   border-color: #FFCF00;
 }
 */
@@ -92,7 +92,8 @@ treechildren::-moz-tree-row(selected, current, focus) {
   border: 1px dotted #FF9F00;
 }
 
-tree[selstyle="primary"] > treechildren::-moz-tree-row {
+tree[seltype="cell"] > treechildren::-moz-tree-row,
+tree[seltype="text"] > treechildren::-moz-tree-row {
   border: none;
   background-color: transparent;
 }
@@ -103,12 +104,18 @@ treechildren::-moz-tree-cell {
   padding: 0px 0px 1px 2px;
 }
 
-tree[selstyle="primary"] > treechildren::-moz-tree-cell-text,
+tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
+tree[seltype="text"] > treechildren::-moz-tree-cell-text,
 treechildren::-moz-tree-cell-text {
   color: inherit;
 }
 
-tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary) {
+tree[seltype="cell"] > treechildren::-moz-tree-cell {
+  border: 1px solid transparent;
+  padding: 0px 1px 0px 1px;
+}
+
+tree[seltype="text"] > treechildren::-moz-tree-cell-text {
   border: 1px solid transparent;
   padding: 0px 1px 1px 1px;
 }
@@ -117,7 +124,14 @@ treechildren::-moz-tree-cell-text(selected) {
   color: #FFCF00;
 }
 
-tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) {
+tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
+  background-color: #008484;
+}
+tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
+  color: #FFCF00;
+}
+
+tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
   background-color: #008484;
   color: #FFCF00;
 }
@@ -126,31 +140,50 @@ treechildren::-moz-tree-cell-text(selected, focus) {
   color: #FFCF00;
 }
 
-tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) {
+tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
   background-color: #008484;
+}
+tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
   color: #FFCF00;
 }
 
-tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) {
+tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
+  background-color: #008484;
+  color: #FFCF00;
+}
+
+tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
   border: 1px dotted #FF9F00;
 }
 
-tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, current, focus) {
+tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
+  border: 1px dotted #FF9F00;
+}
+
+tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
+  border: 1px dotted #FF9F00;
+}
+
+tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
   border: 1px dotted #FF9F00;
 }
 
 /* ::::: lines connecting cells ::::: */
 
-tree[selstyle="primary"] > treechildren::-moz-tree-line,
+tree[seltype="cell"] > treechildren::-moz-tree-line,
+tree[seltype="text"] > treechildren::-moz-tree-line,
 treechildren::-moz-tree-line {
   visibility: hidden;
 }
 
 /*
+tree[seltype="cell"] > treechildren::-moz-tree-line,
+tree[seltype="text"] > treechildren::-moz-tree-line,
 treechildren::-moz-tree-line {
   border: 1px dotted grey;
 }
 
+tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
 treechildren::-moz-tree-line(selected) {
   border: 1px dotted black;
 }
@@ -166,7 +199,8 @@ treechildren::-moz-tree-separator {
 
 /* ::::: drop feedback ::::: */
 
-tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, dropOn),
+tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
+tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
 treechildren::-moz-tree-cell-text(dropOn) {
   background-color: #008484;
   color: #FFCF00;
@@ -346,13 +380,33 @@ treechildren.gridlines::-moz-tree-row {
 /* ::::: alternating background ::::: */
 
 treechildren[alternatingbackground="true"]::-moz-tree-row(odd) {
-  background-color: #6000CF;
+  background-color: #404000;
 }
 
 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected) {
   background-color: #E7ADE7;
+  color: #000000;
 }
 
 treechildren[alternatingbackground="true"]::-moz-tree-row(odd, selected, focus) {
   background-color: #E7ADE7;
+  color: #000000;
+}
+
+/* ::::: editable tree ::::: */
+
+treechildren::-moz-tree-row(selected, editing) {
+  background-color: transparent;
+  border: none;
+}
+
+treechildren::-moz-tree-cell-text(selected, editing) {
+  color: inherit;
+}
+
+.tree-input {
+  -moz-appearance: none;
+  border: 1px solid #9C9CFF;
+  margin: 0 0 0 -4px;
+  padding: 1px;
 }