Favorites menu favorites-menu
The Favorites menu drop-down list appears in the control bar. It consists of a button and a panel that expands when a user clicks or taps on a button. The panel contains individual Favorites tools.
The position and size of the Favorites menu in the viewer user interface is controlled with the following CSS class selector:
.s7ecatalogsearchviewer .s7favoritesmenu
CSS properties of the Favorites menu button
Example - set up a Favorites menu that is positioned four pixels from the top of the control bar and ten pixels from the closest button to the left and sized 28 x 28 pixels.
.s7ecatalogsearchviewer .s7favoritesmenu {
margin-top: 4px;
margin-left: 10px;
width:28px;
height:28px;
}
The appearance of the Favorites menu button is controlled with the following CSS class selector:
.s7ecatalogsearchviewer .s7favoritesmenu .s7favoritesbutton
CSS properties of the Favorites button
state
attribute selector, which can be used to apply different skins to different button states.The button tool tip can be localized. See Localization of user interface elements for more information.
Example - set up a Favorites menu button that displays a different image for each of the four different button states.
.s7ecatalogsearchviewer .s7favoritesmenu .s7favoritesbutton[state='up'] {
background-image:url(images/v2/FavoritesMenu dark_up.png);
}
.s7ecatalogsearchviewer .s7favoritesmenu .s7favoritesbutton[state='over'] {
background-image:url(images/v2/FavoritesMenu_dark_over.png);
}
.s7ecatalogsearchviewer .s7favoritesmenu .s7favoritesbutton[state='down'] {
background-image:url(images/v2/FavoritesMenu_dark_down.png);
}
.s7ecatalogsearchviewer .s7favoritesmenu .s7favoritesbutton[state='disabled'] {
background-image:url(images/v2/FavoritesMenu_dark_disabled.png);
}
The appearance of the panel that contains individual Favorites icons is controlled with the following CSS class selector:
.s7ecatalogsearchviewer .s7favoritesmenu .s7favoritesmenupanel
CSS properties of the Favorites menu panel
Example - set up a panel to have a transparent color.
.s7ecatalogsearchviewer .s7favoritesmenu .s7favoritesmenupanel {
background-color: transparent;
}