You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2012/11/19 17:54:13 UTC
[1/9] git commit: Add a few comments
Updated Branches:
refs/heads/5.4-js-rewrite 687ec2a74 -> e9aa69362
Add a few comments
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/e9aa6936
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/e9aa6936
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/e9aa6936
Branch: refs/heads/5.4-js-rewrite
Commit: e9aa69362e4fd79deb24273595833e9e0746ff85
Parents: abace89
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Sat Nov 17 18:08:48 2012 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Sat Nov 17 18:08:48 2012 -0800
----------------------------------------------------------------------
.../resources/META-INF/assets/tapestry5/tree.css | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e9aa6936/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tree.css
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tree.css b/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tree.css
index 07b0408..bc0fca7 100644
--- a/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tree.css
+++ b/tapestry-core/src/main/resources/META-INF/assets/tapestry5/tree.css
@@ -29,6 +29,7 @@ DIV.t-tree-container LI {
line-height: 1.5;
}
+/* The last one needs a special tweak to keep the vertical bar from extending down too far. */
DIV.t-tree-container LI.t-last
{
background-color: white;
@@ -46,15 +47,21 @@ SPAN.t-tree-icon {
background-position: 0px 0px;
}
+/* Fiddle with it so that leaf nodes do not appear clickable. The label is clickable, the document
+ icon is not. */
LI.t-leaf-node > SPAN.t-tree-icon {
cursor: default;
background-position: -32px -16px;
}
+/* When the Tree is configured for selection, then it is the label, only on leaf nodes, that is
+ clickable. */
DIV[data-tree-node-selection-enabled] LI.t-leaf-node > .t-tree-label {
cursor: pointer;
}
+/* Marking selection leaf nodes in bold if selected will hopefully change soon. We may even be smart
+ enough to render a checkbox. */
SPAN.t-tree-label.t-selected-leaf-node {
font-weight: bold;
}