Skip to main content

[CPANEL-23616] Edit WebHost Manager Side Bar Style?

Comments

8 comments

  • durangod
    Well took me a bit of testing to find out that the templats in /usr/local copy everything over to the /home/virts by same path files. So i did some testing with custom css file names and then found the custom whm doc page but then realized it was for vesion 64 and earlier. Then finally found this
    0
  • cPanelLauren
    HI @durangod Have you checked out the documentation/guide here? Theme Manager - Version 76 Documentation - cPanel Documentation
    0
  • durangod
    Hi thanks for the link, certainly leads in the right direction but it quickly goes from whm specific to all cpanel style mods which is not what i want. I know the name of the file but its the master file and i dont want to change that. The master css file is /usr/local/cpanel/whostmgr/docroot/styles/master-ltr.cmb.min.css and the code inside is li.highlighted.activePage
    i just need to change the background color to green. Its way down almost to the end about 43 lines from the bottom. Since this is a min file there is no line number for that code. This is a ltr version of the file so i am guessing that this file is left to right and the other file (rtl) is a right to left version. The problem is that creating a new whm theme does not include that file. As as the link you showed me says
    0
  • cPanelLauren
    Hi @durangod After some thought and discussion with others on this, I went ahead and opened an internal case for this CPANEL-23616 - potential accessibility issues with WHM X theme. In the case, I asked for either a separate theme or a way to modify the nav bar in the way you requested. I'll update you when I have any updates to the internal case here. Thanks!
    0
  • durangod
    Thank you so much, that is super duper nice of you to do that :)
    0
  • rpvw
    @cPanelLauren thank you so much for caring about accessibility. I have a colleague who is profoundly colour blind and for whom anything red, orange, yellow or green all appear as a shade of grey. Just think about all the things you use on a computer every day without thinking about - he can't tell if a monitor is on, in standby or if it has been switched off. He cant see the red wavy underline of misspelt words - and many of the symbols we unconsciously use every day needs extra careful looking at to make sure of their meaning. Any consideration for colour blindness, or ease of accessibility, however small, is a giant step in the right direction. Thank you @durangod for initiating this discussion, and thank you Lauren and cPanel for taking it seriously.
    0
  • cPanelLauren
    Hi @durangod Of course! We want everyone to have a good experience and chances are if you are having an issue seeing it correctly others are too! @rpvw thanks, that means a lot! It really is a big deal for us here internally as well as we have quite a few folks who have varying degrees of color blindness along with other accessibility-related issues. We also came up with another idea you might try out until the devs address that case, have you ever looked at this addon for Firefox? Stylish - Custom themes for any website " Get this Extension for Firefox (en-US) I'm not sure if there's an equivalent for other browsers but if you tell me which one you use the most I'll see if I can find something of the same ilk for you. Thanks!
    0
  • durangod
    That is certainly thinking outside the box lauren and thank you for the great help. I dont use extensions because they are here today and gone tomorrow and also they become outdated and insecure so i just stopped using them at all many years ago. However i did finally find the file that completes most of the sidebar active color setting. So in a nutshell there are 4 files to edit to change the color of the active item on the sidebar. Luckily they are all in the same dir. /usr/local/cpanel/whostmgr/docroot/styles/ inside all of them you are looking for the default color of 293a4a and the css code of li.highlighted.activePage
    Those filenames are: legacy.cmb.css legacy.cmb.min.css master-legacy.cmb.min.css then choose one of these depending on your country (one is right to left rtl, the other is left to right ltr) so for the USA we read left to right for example. master-ltr.cmb.min.css left to right master-rtl.cmb.min.css right to left Those changes will take care of most of the sidebar with the exception of the plugin section on the very bottom. You will notice that there is no active page highlight to that section at all. That is because the css class assigned to each section item is class="highlighted" and not class="highlighted.activePage"
    which should probably be considered a non-fatal css bug since its not assigned the same class as the other sections, lets hope that cpanel fixes that going forward. In this case youll have to find the tmpl file and change the css assignment to the other class. However, it appears this process is done totally via js which is why this section is different. I believe this is the js file that assigns the highlighted class to the plugin section: /usr/local/cpanel/whostmgr/docroot/templates/menu/navigation.cmb.js So i suspect this process is either the new process or the old process and one process is being updated while the other process is under the "if it works dont fix it" category. I got most of it done, but im not messing with js files.... I can live without the plugin section being changed. In the end if online games, cellphones, other media, and other websites can embrace and offer something for anyone in any stage of color blindness, then i believe cPanel also needs to embrace the need and come up with a feature to help cPanel/WHM users also who face the same issues. :) Hope this helps someone... :)
    0

Please sign in to leave a comment.