Add Favorite button add-favorite-button
The position of the Add Favorite button is fully managed by the Favorites menu.
The appearance of the Add Favorite button is controlled with the following CSS class selector:
.s7ecatalogsearchviewer .s7addfavoritebutton
CSS properties of the Add Favorite button
NOTE
This button supports both the
state
and selected
attribute selectors, which can be used to apply different skins to different button states. In particular, selected='true'
corresponds to the state when a user can add a new Favorite icon by selecting or tapping. Whereas selected='false'
corresponds to the normal operation mode when a user can zoom, pan, and swap pages.The button tool tip can be localized. See Localization of user interface elements for more information.
Example - To set up an Add Favorite button that is 28 x 28 pixels, and displays a different image for each of the four different button states when selected or not selected.
.s7ecatalogsearchviewer .s7addfavoritebutton {
width:28px;
height:28px;
}
.s7ecatalogsearchviewer .s7addfavoritebutton[selected='false'][state='up'] {
background-image:url(images/v2/AddFavoriteButton_dark_up.png);
}
.s7ecatalogsearchviewer .s7addfavoritebutton[selected='false'][state='over'] {
background-image:url(images/v2/AddFavoriteButton_dark_over.png);
}
.s7ecatalogsearchviewer .s7addfavoritebutton[selected='false'][state='down'] {
background-image:url(images/v2/AddFavoriteButton_dark_down.png);
}
.s7ecatalogsearchviewer .s7addfavoritebutton[selected='false'][state='disabled'] {
background-image:url(images/v2/AddFavoriteButton_dark_disabled.png);
}
.s7ecatalogsearchviewer .s7addfavoritebutton[selected='true'][state='up'] {
background-image:url(images/v2/AddFavoriteButton_dark_over.png);
}
.s7ecatalogsearchviewer .s7addfavoritebutton[selected='true'][state='over'] {
background-image:url(images/v2/AddFavoriteButton_dark_over.png);
}
.s7ecatalogsearchviewer .s7addfavoritebutton[selected='true'][state='down'] {
background-image:url(images/v2/AddFavoriteButton_dark_over.png);
}
.s7ecatalogsearchviewer .s7addfavoritebutton[selected='true'][state='disabled'] {
background-image:url(images/v2/AddFavoriteButton_dark_disabled.png);
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8