Show Menu
TOPICS×

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:
.s7ecatalogviewer .s7favoritesmenu

CSS properties of the Favorites menu button
margin-top
The offset from the top of the control bar.
margin-left
The distance to the next button on the left, or the left side of the control bar if this is the first button in a row.
width
Width of the button.
height
Height of the 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.
.s7ecatalogviewer .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:
.s7ecatalogviewer .s7favoritesmenu .s7favoritesbutton

CSS properties of the Favorites button
background-image
The image that is displayed for a given button state.
background-position
Position inside artwork sprite, if CSS sprites are used.
See also CSS Sprites .
This button supports the 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.
.s7ecatalogviewer .s7favoritesmenu .s7favoritesbutton[state='up'] { 
background-image:url(images/v2/FavoritesMenu dark_up.png); 
} 
.s7ecatalogviewer .s7favoritesmenu .s7favoritesbutton[state='over'] { 
background-image:url(images/v2/FavoritesMenu_dark_over.png); 
} 
.s7ecatalogviewer .s7favoritesmenu .s7favoritesbutton[state='down'] { 
background-image:url(images/v2/FavoritesMenu_dark_down.png); 
} 
.s7ecatalogviewer .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:
.s7ecatalogviewer .s7favoritesmenu .s7favoritesmenupanel

CSS properties of the Favorites menu panel
background-color
The background color of the panel.
Example - set up a panel to have a transparent color.
.s7ecatalogviewer .s7favoritesmenu .s7favoritesmenupanel { 
 background-color: transparent; 
}