comparison vakata-jstree-3.3.5/src/themes/base.less @ 0:803f4888f36a draft

planemo upload commit 004a320fc0619c234164b44c64ba5dce205734e1
author mingchen0919
date Thu, 13 Dec 2018 22:46:23 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:803f4888f36a
1 // base jstree
2 .jstree-node, .jstree-children, .jstree-container-ul { display:block; margin:0; padding:0; list-style-type:none; list-style-image:none; }
3 .jstree-node { white-space:nowrap; }
4 .jstree-anchor { display:inline-block; color:black; white-space:nowrap; padding:0 4px 0 1px; margin:0; vertical-align:top; }
5 .jstree-anchor:focus { outline:0; }
6 .jstree-anchor, .jstree-anchor:link, .jstree-anchor:visited, .jstree-anchor:hover, .jstree-anchor:active { text-decoration:none; color:inherit; }
7 .jstree-icon { display:inline-block; text-decoration:none; margin:0; padding:0; vertical-align:top; text-align:center; }
8 .jstree-icon:empty { display:inline-block; text-decoration:none; margin:0; padding:0; vertical-align:top; text-align:center; }
9 .jstree-ocl { cursor:pointer; }
10 .jstree-leaf > .jstree-ocl { cursor:default; }
11 .jstree .jstree-open > .jstree-children { display:block; }
12 .jstree .jstree-closed > .jstree-children,
13 .jstree .jstree-leaf > .jstree-children { display:none; }
14 .jstree-anchor > .jstree-themeicon { margin-right:2px; }
15 .jstree-no-icons .jstree-themeicon,
16 .jstree-anchor > .jstree-themeicon-hidden { display:none; }
17 .jstree-hidden, .jstree-node.jstree-hidden { display:none; }
18
19 // base jstree rtl
20 .jstree-rtl {
21 .jstree-anchor { padding:0 1px 0 4px; }
22 .jstree-anchor > .jstree-themeicon { margin-left:2px; margin-right:0; }
23 .jstree-node { margin-left:0; }
24 .jstree-container-ul > .jstree-node { margin-right:0; }
25 }
26
27 // base jstree wholerow
28 .jstree-wholerow-ul {
29 position:relative;
30 display:inline-block;
31 min-width:100%;
32 .jstree-leaf > .jstree-ocl { cursor:pointer; }
33 .jstree-anchor, .jstree-icon { position:relative; }
34 .jstree-wholerow { width:100%; cursor:pointer; position:absolute; left:0; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; }
35 }
36
37 // base contextmenu
38 .jstree-contextmenu .jstree-anchor {
39 -webkit-user-select: none; /* disable selection/Copy of UIWebView */
40 -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
41 }
42 .vakata-context {
43 display:none;
44 &, ul { margin:0; padding:2px; position:absolute; background:#f5f5f5; border:1px solid #979797; box-shadow:2px 2px 2px #999999; }
45 ul { list-style:none; left:100%; margin-top:-2.7em; margin-left:-4px; }
46 .vakata-context-right ul { left:auto; right:100%; margin-left:auto; margin-right:-4px; }
47 li {
48 list-style:none;
49 > a {
50 display:block; padding:0 2em 0 2em; text-decoration:none; width:auto; color:black; white-space:nowrap; line-height:2.4em; text-shadow:1px 1px 0 white; border-radius:1px;
51 &:hover { position:relative; background-color:#e8eff7; box-shadow:0 0 2px #0a6aa1; }
52 &.vakata-context-parent { background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw=="); background-position:right center; background-repeat:no-repeat; }
53 }
54 > a:focus { outline:0; }
55 }
56 .vakata-context-hover > a { position:relative; background-color:#e8eff7; box-shadow:0 0 2px #0a6aa1; }
57 .vakata-context-separator {
58 > a, > a:hover { background:white; border:0; border-top:1px solid #e2e3e3; height:1px; min-height:1px; max-height:1px; padding:0; margin:0 0 0 2.4em; border-left:1px solid #e0e0e0; text-shadow:0 0 0 transparent; box-shadow:0 0 0 transparent; border-radius:0; }
59 }
60 .vakata-contextmenu-disabled {
61 a, a:hover { color:silver; background-color:transparent; border:0; box-shadow:0 0 0; }
62 }
63 li > a {
64 > i { text-decoration:none; display:inline-block; width:2.4em; height:2.4em; background:transparent; margin:0 0 0 -2em; vertical-align:top; text-align:center; line-height:2.4em; }
65 > i:empty { width:2.4em; line-height:2.4em; }
66 .vakata-contextmenu-sep { display:inline-block; width:1px; height:2.4em; background:white; margin:0 0.5em 0 0; border-left:1px solid #e2e3e3; }
67 }
68 .vakata-contextmenu-shortcut { font-size:0.8em; color:silver; opacity:0.5; display:none; }
69 }
70 .vakata-context-rtl {
71 ul { left:auto; right:100%; margin-left:auto; margin-right:-4px; }
72 li > a.vakata-context-parent { background-image:url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7"); background-position:left center; background-repeat:no-repeat; }
73 .vakata-context-separator > a { margin:0 2.4em 0 0; border-left:0; border-right:1px solid #e2e3e3;}
74 .vakata-context-left ul { right:auto; left:100%; margin-left:-4px; margin-right:auto; }
75 li > a {
76 > i { margin:0 -2em 0 0; }
77 .vakata-contextmenu-sep { margin:0 0 0 0.5em; border-left-color:white; background:#e2e3e3; }
78 }
79 }
80
81 // base drag'n'drop
82 #jstree-marker { position: absolute; top:0; left:0; margin:-5px 0 0 0; padding:0; border-right:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:5px solid; width:0; height:0; font-size:0; line-height:0; }
83 #jstree-dnd {
84 line-height:16px;
85 margin:0;
86 padding:4px;
87 .jstree-icon,
88 .jstree-copy { display:inline-block; text-decoration:none; margin:0 2px 0 0; padding:0; width:16px; height:16px; }
89 .jstree-ok { background:green; }
90 .jstree-er { background:red; }
91 .jstree-copy { margin:0 2px 0 2px; }
92 }