Social share social-share
The social share tool appears in the top-left corner by default. It consists of a button and a panel which expands when user clicks or taps on a button and contains individual sharing tools.
The position and size of the social share tool in the viewer user interface is controlled with the following:
.s7ecatalogsearchviewer .s7socialshare
CSS properties of the social share tool
Example - set up a social sharing tool that is positioned four pixels from the top and five pixels from the right of viewer container and is sized to 28 x 28 pixels.
.s7ecatalogsearchviewer .s7socialshare {
margin-top: 4px;
margin-left: 10px; width:28px;
height:28px;
}
The appearance of the social share tool button is controlled with the following CSS class selector:
.s7ecatalogsearchviewer .s7socialshare .s7socialbutton
CSS properties of the social 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 social sharing tool button that displays a different image for each of the four different button states.
.s7ecatalogsearchviewer .s7socialshare .s7socialbutton[state='up'] {
background-image:url(images/v2/SocialShare_video_dark_up.png);
}
.s7ecatalogsearchviewer .s7socialshare .s7socialbutton[state='over'] {
background-image:url(images/v2/SocialShare_dark_over.png);
}
.s7ecatalogsearchviewer .s7socialshare .s7socialbutton[state='down'] {
background-image:url(images/v2/SocialShare_dark_down.png);
}
.s7ecatalogsearchviewer .s7socialshare .s7socialbutton[state='disabled'] {
background-image:url(images/v2/SocialShare_dark_disabled.png);
}
The appearance of the panel which contains the individual social sharing icons is controlled with the following CSS class selector:
.s7ecatalogsearchviewer .s7socialshare .s7socialsharepanel
CSS properties of the social share panel
Example - set up a panel to have transparent color:
.s7ecatalogsearchviewer .s7socialshare .s7socialsharepanel {
background-color: transparent;
}