Zoom reset button zoom-reset-button
Selecting this button resets an image in the main view. This button appears in the main control bar on desktop systems and tablets. On mobile phones, this button shows in the bottom center over the image. However, it is not displayed when the image is in a reset state. You can size, skin, and position this button by using CSS.
CSS properties of the main viewer area
The appearance of the button is controlled with the following CSS class selector:
.s7ecatalogsearchviewer .s7zoomresetbutton
Position inside artwork sprite, if CSS sprites are used.
See also CSS Sprites.
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 - To set up a zoom reset button that is 28 x 28 pixels, and positioned (on desktop) 4 pixels from the bottom and 47 pixels from the right edge of the main control bar. And finally, displays a different image for each of the four different button states.
.s7ecatalogsearchviewer .s7zoomresetbutton {
bottom:4px;
right:47px;
width:28px;
height:28px;
}
.s7ecatalogsearchviewer .s7zoomresetbutton [state='up'] {
background-image:url(images/v2/ZoomResetButton_dark_up.png);
}
.s7ecatalogsearchviewer .s7zoomresetbutton [state='over'] {
background-image:url(images/v2/ZoomResettButton_dark_over.png);
}
.s7ecatalogsearchviewer .s7zoomresetbutton [state='down'] {
background-image:url(images/v2/ZoomResetButton_dark_down.png);
}
.s7ecatalogsearchviewer .s7zoomresetbutton [state='disabled'] {
background-image:url(images/v2/ZoomResetButton_dark_disabled.png);
}