Twitter share tool consists of a button added to the Social share panel. When the button is selected, the user is redirected to a sharing dialog box that is provided by a social service. La posizione del pulsante è completamente gestita dallo strumento di condivisione social network.
L'aspetto del pulsante di condivisione Twitter è controllato con il seguente selettore di classe CSS:
.s7video360viewer .s7twittershare
CSS properties of the Twitter share tool
width |
Larghezza pulsante. |
height |
Altezza del pulsante. |
immagine di sfondo |
The image that is displayed for a given button state. |
posizione di sfondo |
Position inside artwork sprite, if CSS sprites are used. Consulta Sprite CSS . |
Questo pulsante supporta il selettore di attributi state
, che può essere utilizzato per applicare interfacce diverse a diversi stati del pulsante.
It is possible to remove the button from the Social share panel by setting display:none
CSS property on its CSS class.
The button tool tip can be localized. Consulta Localizzazione degli elementi dell'interfaccia utente.
Esempio : per impostare un pulsante di condivisione Twitter di 28 x 28 pixel e visualizzare un’immagine diversa per ciascuno dei quattro stati dei pulsanti:
.s7video360viewer .s7twittershare {
width:28px;
height:28px;
}
.s7video360viewer .s7twittershare[state='up'] {
background-image:url(images/v2/TwitterShare_dark_up.png);
}
.s7video360viewer .s7twittershare[state='over'] {
background-image:url(images/v2/TwitterShare_dark_over.png);
}
.s7video360viewer .s7twittershare[state='down'] {
background-image:url(images/v2/TwitterShare_dark_down.png);
}
.s7video360viewer .s7twittershare[state='disabled'] {
background-image:url(images/v2/TwitterShare_dark_disabled.png);
}