aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/base/tree
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2010-03-24 10:20:36 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2010-03-24 10:20:36 +0000
commitd0413c62982ab2d2fe6182d0cffc08f7a06c0a17 (patch)
tree7656cc71e2188d14272901b2d5bdd7eb8ba55df6 /WebContent/VAADIN/themes/base/tree
parent4e1d1321ec50c130aafca8d1251a71f12f5e28d1 (diff)
downloadvaadin-framework-d0413c62982ab2d2fe6182d0cffc08f7a06c0a17.tar.gz
vaadin-framework-d0413c62982ab2d2fe6182d0cffc08f7a06c0a17.zip
Drag-n-drop related styles.
svn changeset:12056/svn branch:6.3
Diffstat (limited to 'WebContent/VAADIN/themes/base/tree')
-rw-r--r--WebContent/VAADIN/themes/base/tree/tree.css75
1 files changed, 61 insertions, 14 deletions
diff --git a/WebContent/VAADIN/themes/base/tree/tree.css b/WebContent/VAADIN/themes/base/tree/tree.css
index 69a5c2b026..2676f9b7df 100644
--- a/WebContent/VAADIN/themes/base/tree/tree.css
+++ b/WebContent/VAADIN/themes/base/tree/tree.css
@@ -1,9 +1,11 @@
.v-tree {
text-align: left; /* Force default alignment */
overflow: hidden;
+ padding: 1px 0;
}
.v-tree-node {
background: transparent url(../common/img/sprites.png) no-repeat 5px -37px;
+ padding: 1px 0;
}
.v-tree-node-expanded {
background-position: -5px -10px;
@@ -24,24 +26,10 @@ div.v-tree-node-leaf {
.v-tree-node-caption .v-icon {
vertical-align: middle;
}
-
.v-tree-node-selected span {
background: #999;
color: #fff;
}
-
-.v-tree-node-caption-drag-top {
- border-top:2px solid green;
- margin-top: -2px;
-}
-.v-tree-node-caption-drag-bottom {
- border-bottom:2px solid green;
- margin-bottom: -2px;
-}
-.v-tree-node-caption-drag-center {
- background-color:green;
-}
-
.v-tree-node-children {
padding-left: 1em;
}
@@ -65,4 +53,63 @@ div.v-tree-node-leaf {
.v-ie6 .v-tree-node,
.v-ie6 .v-tree-node-children {
clear: left;
+}
+/***************************************
+ * Drag'n'drop styles
+ ***************************************/
+.v-tree .v-tree-node-drag-top {
+ border-top: 2px solid #1d9dff;
+ margin-top: -1px;
+ padding-top: 0;
+}
+.v-tree .v-tree-node-drag-bottom {
+ border-bottom: 2px solid #1d9dff;
+ margin-bottom: -1px;
+ padding-bottom: 0;
+}
+.v-tree .v-tree-node-drag-top:before,
+.v-tree .v-tree-node-drag-bottom:after,
+.v-tree .v-tree-node-caption-drag-center:after {
+ display: block;
+ content: "";
+ position: absolute;
+ width: 6px;
+ height: 6px;
+ margin-top: -4px;
+ background: transparent url(../common/img/drag-slot-dot.png);
+}
+.v-tree .v-tree-node-drag-bottom:after {
+ margin-top: -2px;
+}
+.v-tree .v-tree-node-caption-drag-center:after {
+ margin-left: 14px;
+}
+.v-ff .v-tree .v-tree-node-caption-drag-center:after,
+.v-ie .v-tree .v-tree-node-caption-drag-center:after {
+ margin-top: -2px;
+}
+.v-tree .v-tree-node-drag-top {
+ background-position: 5px -38px;
+}
+.v-tree .v-tree-node-drag-top.v-tree-node-expanded {
+ background-position: -5px -11px;
+}
+.v-tree .v-tree-node-caption-drag-center div {
+ border: 2px solid #1d9dff;
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ border-radius: 4px;
+ margin: -2px 2px -2px -2px;
+ background-color: #bcdcff;
+}
+.v-ie6 .v-tree .v-tree-node-caption-drag-center div {
+ margin: -2px ;
+}
+.v-tree .v-tree-node-caption-drag-center div {
+ background-color: rgba(169,209,255,.6);
+}
+.v-tree .v-tree-node-caption-drag-center div,
+.v-tree .v-tree-node-drag-top,
+.v-tree .v-tree-node-drag-bottom {
+ border-color: rgba(0,109,232,.6);
} \ No newline at end of file