ClickHelp User Manual

Reader Menu Editor Scenarios

Here are some use cases to make your experience with the Reader Menu Editor more effective.

Scenario #1 - how to add an image menu item 

  • Open Reader Menu
  • In our Reader Menu editor, we've already created some items.  
    Items created in the Reader Menu Editor 
  • In order to replace a text with an image, we need to delete the item text. 
    Delete the item text to replace a text with an image in the Reader Menu Editor 
  • Fill in the CSS class field. In our case, it will be menuItemHome
    Fill in the CSS class field in the Reader Menu Editor
  • Click Save Changes.
  • Then open Portal Branding CSS.
    Portal Branding CSS button on the Projects page
  • Copy and paste the following code.
    CSS
    .menuItemHome
    {
    background-image: url(/resources/Storage/Branding/home.png);
    background-repeat: no-repeat;
    width: 32px;
    background-position: center;
    }

  • Here is the result.
    Image icon in the Reader UI

Scenario #2 - how to create a button

  • Open Reader Menu.
  • As we have menu items yet, we've decided that the Home menu item will be a button.
    Choose the item in the Menu Item list to make it a button
  • Customize your CSS class. In our case, it will be menuItemHome.
    Specify the CSS class in the Reader Menu Editor
  • Click Save Changes.
  • Then open Portal Branding CSS.
  • Copy and paste the following code.
    CSS
    .menuItemHome:hover
    {
    background: transparent !important;
    }

    .menuItemHome a
    {
    background: #009900 !important;
    color: white !important;
    transition: background-color .1s !important;
    border-radius: 3px;
    padding: 10px !important;
    display: inline !important;
    }

    .menuItemHome a:hover
    {
    background-color: #00aa00 !important;
    }

  • Here is the result.
    The Home button in the Reader UI

Scenario #3 - how to colorize menu items

  • Open Reader Menu.
  • We've already created five menu items.
    The Reader Menu settings screen
  • Open Portal Branding CSS.
  • Now, we should set up CSS classes for every menu item. In our case, we will set up .menuItemHome for the Home menu item. Then, we paste the following code.
    CSS
    .menuItemHome a
    {
    color: #00695c !important;
    }

    .menuItemHome:hover a
    {
    color: white !important;
    background-color: #00695c !important;
    }

    .menuItemUserManual a
    {
    color: #0277bd !important;
    }

    .menuItemUserManual:hover a
    {
    color: white !important;
    background-color: #0277bd !important;
    }

    .menuItemApiDocs a
    {
    color: #283593 !important;
    }

    .menuItemApiDocs:hover a
    {
    color: white !important;
    background-color: #283593 !important;
    }

    .menuItemKb a
    {
    color: #6a1b9a !important;
    }

    .menuItemKb:hover a
    {
    color: white !important;
    background-color: #6a1b9a !important;
    }

    .menuItemSupport a
    {
    color: #bf360c !important;
    }

    .menuItemSupport:hover a
    {
    color: white !important;
    background-color: #bf360c !important;
    }

  • Here is the result.
    Colorized Menu Items in the Reader UI

Scenario #4 - how to center-align menu items

Imagine we have four menu items. So, open Portal Branding CSS, then copy and paste the following code:

CSS
.BaseMaster_mainMenuContainer
{
width: 900px;
margin: 0 auto;
box-shadow: none !important;
}

@media (max-width: 979px)
{
.BaseMaster_mainMenuContainer
{
width: auto;
margin: 0;
}
}

Here is the result:

Center-aligned Menu Items in the Reader UI

Scenario #5 - how to center-align menu items between your logo and other elements

For example, we have three menu items.  So, open Portal Branding CSS, then copy and paste the following code:

CSS
.BaseMaster_mainMenuContainer #pnlMainMenuContainer
{
width: 280px;
margin: 0 auto;
float: none !important;
}

In this case, keep in mind that you should customize the width attribute based on the number of your menu items.

Here is the result:

The Menu Items aligned between other elements