Fix for bug 296040. Cell-based selection in trees

r=Neil Deakin, sr=Neil Rashbrook, sponsored by BEToptions
This commit is contained in:
Jan.Varga%gmail.com 2007-09-06 22:03:54 +00:00
Родитель 458f53d085
Коммит 8769043698
1 изменённых файлов: 34 добавлений и 8 удалений

Просмотреть файл

@ -93,7 +93,8 @@ treechildren::-moz-tree-row(current, focus) {
border-bottom-color: #000000;
}
tree[selstyle="primary"] > treechildren::-moz-tree-row {
tree[seltype="cell"] > treechildren::-moz-tree-row,
tree[seltype="text"] > treechildren::-moz-tree-row {
background-color: transparent;
border: none;
}
@ -104,12 +105,18 @@ treechildren::-moz-tree-cell {
padding: 0px 2px 0px 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;
}
@ -118,7 +125,12 @@ treechildren::-moz-tree-cell-text(selected) {
color: #000000;
}
tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected) {
tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
background-color: #C7D0D9;
color: #000000;
}
tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
background-color: #C7D0D9;
color: #000000;
}
@ -127,22 +139,35 @@ treechildren::-moz-tree-cell-text(selected, focus) {
color: #FFFFFF;
}
tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, selected, focus) {
tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
background-color: #424F63;
}
tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
color: #FFFFFF;
}
tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
background-color: #424F63;
color: #FFFFFF;
}
tree[selstyle="primary"] > treechildren::-moz-tree-cell-text(primary, current, focus) {
tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
border-color: #000000;
}
tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
border-color: #000000;
}
/* ::::: 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 {
border: 1px dotted #808080;
}
tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
treechildren::-moz-tree-line(selected, focus) {
border: 1px dotted #FFFFFF;
}
@ -158,7 +183,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(primary, dropOn) {
background-color: #424F63;
color: #FFFFFF;