Skip to content

Commit

Permalink
MINOR Moved ul.tree rules from cms/css/cms_left.css to sapphire/javas…
Browse files Browse the repository at this point in the history
…cript/tree/tree.css (particularly around multiselect tickbox styling) (merged from r98854)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@98864 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Feb 12, 2010
1 parent e12e57e commit 89982fa
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions javascript/tree/tree.css
Expand Up @@ -115,6 +115,10 @@ ul.tree a:hover{
text-decoration : none; text-decoration : none;
} }


ul.tree span.a {
cursor: pointer;
}

/* /*
* Divs, by default store vertically aligned data * Divs, by default store vertically aligned data
*/ */
Expand Down Expand Up @@ -157,4 +161,52 @@ ul.tree a.dragOver, ul.tree li.dragOver a, ul.tree li.dragOver li.dragOver a {
ul.tree li.dragOver li a { ul.tree li.dragOver li a {
border-style: none; border-style: none;
margin: 0; margin: 0;
}

/**
* Multiselect
*/
ul.tree span.a.current {
font-weight: bold;
background-color: #EEEEFF !important;
border-top: 1px #CCCCFF solid;
border-bottom: 1px #CCCCFF solid;
/* these push the highlight out to the left of the window */
margin-left: -100px;
padding-left: 100px;
background-position: 100px 50%;
/*position: relative;*/
}

ul.tree span.a.loading span.b span.c a {
background-image: url(../../../cms/images/network-save.gif) !important;
margin-left: -3px;
padding-left: 21px;
background-position : 2px 2px;
}

ul.tree.multiselect span.a span.b a {
background-image: url(../../../cms/images/tickbox-unticked.gif) !important;
}

ul.tree.multiselect span.a.nodelete span.b a {
background-image: url(../../../cms/images/tickbox-canttick.gif) !important;
}
ul.tree.multiselect span.a.treeloading span.b a {
background-image: url(../../../cms/images/tickbox-greyedout.gif) !important;
}
ul.tree.multiselect span.a.failed span.b a {
background-image: url(../../../cms/images/tickbox-fail.gif) !important;
}


ul.tree.multiselect span.a.selected span.b span.c a {
background-image: url(../../../cms/images/tickbox-ticked.gif) !important;
}

/* Span-B: Plus/Minus icon */
ul.tree.multiselect li.selected span.a.children span.b,
ul.tree.multiselect li.selected span.a.unexpanded span.b {
background-image: none;
cursor: default;
} }

0 comments on commit 89982fa

Please sign in to comment.