Show Menu
TOPICS×

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
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
The width of the social sharing tool.
height
The height of the social sharing 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
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 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
background-color
The background color of the panel.
Example - set up a panel to have transparent color:
.s7ecatalogsearchviewer .s7socialshare .s7socialsharepanel { 
 background-color: transparent; 
}