Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Highligthing From Dynatree Checkbox Mode When Clicked or Hover

In dynatree with the vista-skin when you hover over a tree item it has a hover effect where it has a blue background.

Additionally when you click the item to check it it has a orange border in chrome and a dotted border in IE.

I'm trying to remove both of these so that there is no effect on hover or once clicked.

See selectMode 3 for an example: wwwendt.de/tech/dynatree/doc/sample-select.html

Update: I have found in /src/skin-vista/ui.dynatree.css if you comment out the following blocks it will prevent the blue highlight color. Additionally there is a line you need to uncomment to fix the outline that the webbrowser puts in as shown below.

/*Comment this out
ul.dynatree-container a:hover
{
/*  text-decoration: underline; */
    background: #F2F7FD; /* light blue */
    border-color: #B8D6FB; /* darker light blue */
}
*/

/*Comment this out
span.dynatree-active a
{
    border: 1px solid #99DEFD;
    background-color: #D8F0FA;
}
*/

ul.dynatree-container a
/*, ul.dynatree-container a:visited*/
{
    /*The line below was originally commented out, uncomment it to remove the orange/dotted border*/
    outline: 0; /* @ Firefox, prevent dotted border after click */
}
like image 744
kackleyjm Avatar asked Sep 14 '12 05:09

kackleyjm


2 Answers

DynaTree is now FancyTree and in fancytree , here is what I did.

.fancytree-container,
table.fancytree-container,
ul.fancytree-container,
span.fancytree-focused span.fancytree-title
{
  border: 0 ; 
  outline: 0; 
  -moz-outline-style: none; 
}
like image 123
django Avatar answered Nov 16 '22 17:11

django


To fix this you just need to remove

border: 1px dotted gray;

from this ul.dynatree-container on ui.dynatree.css

code should end up looking like this:

ul.dynatree-container
{
    font-family: tahoma, arial, helvetica;
    font-size: 10pt; 
    white-space: nowrap;
    padding: 3px;
    margin: 0; 
    background-color: #CCCCCC solid 1px;

    /*border: 1px dotted gray;*/

    overflow: auto;
    height: 100%; 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

Or just remove dotted

border: 1px gray;

like image 44
rsiwady29 Avatar answered Nov 16 '22 17:11

rsiwady29