1.0.4 • Published 7 years ago

yashare2 v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

yashare2

Note: This project is not affiliated with Yandex.

What is it?

These are ready styles for Yandex sharing widget.

Preview

What for?

So that you can style the widget any way you want, without having to load external CSS. Especially for this case there is a data-bare attribute (see docs).

How?

Install the widget and add the data-bare attribute:

<script async src="//yastatic.net/share2/share.js"></script>
<div data-bare class="ya-share2" data-services="desired services list"></div>

Install this package:

npm install yashare2 --save

Include to your app's styles.

@import '../../../node_modules/yashare2/src/yashare';

What about customizing?

You can change some essential styles by changing the variables:

// Counter font family and size:
$yashare2__font: 'PT Serif', Georgia, serif;
$yashare2__icon-size: 24px;

// Enable and disable the services you need:
$yashare2__blogger: true;
$yashare2__evernote: true;
$yashare2__moimir: false;
1.0.4

7 years ago

1.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago