Jump to content

uniTreeMenu background color selected item


mierlp

Recommended Posts

Hi

I use the code below in the ServerModule.CustomCSS to modify my treemenu. See attachment.

File TreeMenu_default is when no actions are done
File TreeMenu_select is when i have clicked on a item and as you can see the background is lighter. 

How can I make the background of a selected item the same color as the background of the treemenu
AND that the light blue vertical stripe (left of an item) remains visible.

 

 

.treemenu .x-treelist, .treemenu .x-treelist-row{
  background-color: $00161616;
  height: 40px;  
}

.treemenu .x-treelist-row-over, .treemenu .x-treelist-nav .x-treelist-item-selected > .x-treelist-row{
  background-color: #222831 !important;
}

.treemenu .x-treelist-item-text, .treemenu .x-treelist-item-icon, .treemenu .x-treelist-item-expander {
    color: #FFFFFF;; 
    font-size: 12px; 
    font-family: Roboto;
    vertical-align: middle;       
}

.treemenu .x-treelist-item-wrap {
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

 

treemenu_default.png

treemenu_select.png

Link to comment
Share on other sites

10 hours ago, mierlp said:

.treemenu .x-treelist, .treemenu .x-treelist-row{   background-color: $00161616;   height: 40px;   } .treemenu .x-treelist-row-over, .treemenu .x-treelist-nav .x-treelist-item-selected > .x-treelist-row{   background-color: #222831 !important; } .treemenu .x-treelist-item-text, .treemenu .x-treelist-item-icon, .treemenu .x-treelist-item-expander {     color: #FFFFFF;;      font-size: 12px;      font-family: Roboto;     vertical-align: middle;        } .treemenu .x-treelist-item-wrap {     position: absolute;     top: 50%;     -ms-transform: translateY(-50%);     transform: translateY(-50%); }

Hello,

It seems these CSS rules does not work. Can you make a simple testcase to check?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...