-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
253 lines (227 loc) · 19.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Social Buttons for Bulma Css">
<meta property="og:description" content="Social Sign-In Buttons made in pure CSS based on Bulma and Font Awesome!">
<meta property="og:type" content="website">
<meta property="og:url" content="https://andreagelmini.github.io/social-bulma/">
<meta property="og:image" content="https://andreagelmini.github.io/social-bulma/bulma-social.png">
<title>Social Buttons for Bulma Css</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css" integrity="sha256-2pUeJf+y0ltRPSbKOeJh09ipQFYxUdct5nTY6GAXswA=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" />
<link rel="stylesheet" href="./css/social-bulma-all.min.css" />
</head>
<body div="container-fluid">
<section class="hero is-mediun is-primary has-text-centered">
<div class="hero-body">
<div class="content">
<h1 class="title"> Welcome to Social Bulma.</h1>
<p class="subtitle">The very simple social button for bulma...<p>
</div>
</div>
</section>
<section id="example" class="section container">
<div class="columns">
<div class="column is-4">
<h3 class="title is-4 is-spaced anchor-title">
<span class="anchor-name">The Buttons</span>
<a class="anchor-link" href="#examples">#</a>
</h3>
<div class="buttons">
<a class="button is-adn is-fullwidth" ><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
<a class="button is-bitbucket is-fullwidth" ><span class="icon"><i class="fab fa-bitbucket"></i></span><span> Bitbuchet</span></a>
<a class="button is-dropbox is-fullwidth" ><span class="icon"><i class="fab fa-dropbox"></i></span><span> Dropbox</span></a>
<a class="button is-facebook is-fullwidth" ><span class="icon"><i class="fab fa-facebook"></i></span><span> Facebook</span></a>
<a class="button is-flickr is-fullwidth" ><span class="icon"><i class="fab fa-flickr"></i></span><span> Flickr</span></a>
<a class="button is-foursquare is-fullwidth" ><span class="icon"><i class="fab fa-foursquare"></i></span><span> Foursquare</span></a>
<a class="button is-github is-fullwidth" ><span class="icon"><i class="fab fa-github"></i></span><span> GitHub</span></a>
<a class="button is-google is-fullwidth" ><span class="icon"><i class="fab fa-google"></i></span><span> Google</span></a>
<a class="button is-instagram is-fullwidth" ><span class="icon"><i class="fab fa-instagram"></i></span><span> Instagram</span></a>
<a class="button is-linkedin is-fullwidth" ><span class="icon"><i class="fab fa-linkedin"></i></span><span> Linkedin</span></a>
<a class="button is-microsoft is-fullwidth" ><span class="icon"><i class="fab fa-microsoft"></i></span><span> Microsoft</span></a>
<a class="button is-odnoklassniki is-fullwidth" ><span class="icon"><i class="fab fa-odnoklassniki"></i></span><span> Odnoklassniki</span></a>
<a class="button is-openid is-fullwidth" ><span class="icon"><i class="fab fa-openid"></i></span><span> Openid</span></a>
<a class="button is-pinterest is-fullwidth" ><span class="icon"><i class="fab fa-pinterest"></i></span><span> Pinterest</span></a>
<a class="button is-reddit is-fullwidth" ><span class="icon"><i class="fab fa-reddit"></i></span><span> Reddit</span></a>
<a class="button is-soundcloud is-fullwidth" ><span class="icon"><i class="fab fa-soundcloud"></i></span><span> Soundcloud</span></a>
<a class="button is-telegram is-fullwidth" ><span class="icon"><i class="fab fa-telegram"></i></span><span> Telegram</span></a>
<a class="button is-tumblr is-fullwidth" ><span class="icon"><i class="fab fa-tumblr"></i></span><span> Tumblr</span></a>
<a class="button is-twitter is-fullwidth" ><span class="icon"><i class="fab fa-twitter"></i></span><span> Twitter</span></a>
<a class="button is-vimeo is-fullwidth" ><span class="icon"><i class="fab fa-vimeo"></i></span><span> Vimeo</span></a>
<a class="button is-vk is-fullwidth" ><span class="icon"><i class="fab fa-vk"></i></span><span> Vk</span></a>
<a class="button is-wechat is-fullwidth" ><span class="icon"><i class="fab fa-weixin"></i></span><span> Wechat</span></a>
<a class="button is-whatsapp is-fullwidth" ><span class="icon"><i class="fab fa-whatsapp"></i></span><span> Whatsapp</span></a>
<a class="button is-yahoo is-fullwidth" ><span class="icon"><i class="fab fa-yahoo"></i></span><span> Yahoo</span></a>
<hr class="hr">
<div class="buttons is-centered" style="padding: 1rem;">
<a class="button is-adn" ><span class="icon"><i class="fab fa-adn"></i></span></a>
<a class="button is-bitbucket" ><span class="icon"><i class="fab fa-bitbucket"></i></span></a>
<a class="button is-dropbox" ><span class="icon"><i class="fab fa-dropbox"></i></span></a>
<a class="button is-facebook" ><span class="icon"><i class="fab fa-facebook"></i></span></a>
<a class="button is-flickr" ><span class="icon"><i class="fab fa-flickr"></i></span></a>
<a class="button is-foursquare" ><span class="icon"><i class="fab fa-foursquare"></i></span></a>
<a class="button is-github" ><span class="icon"><i class="fab fa-github"></i></span></a>
<a class="button is-google" ><span class="icon"><i class="fab fa-google"></i></span></a>
<a class="button is-instagram" ><span class="icon"><i class="fab fa-instagram"></i></span></a>
<a class="button is-linkedin" ><span class="icon"><i class="fab fa-linkedin"></i></span></a>
<a class="button is-microsoft" ><span class="icon"><i class="fab fa-microsoft"></i></span></a>
<a class="button is-odnoklassniki" ><span class="icon"><i class="fab fa-odnoklassniki"></i></span></a>
<a class="button is-openid" ><span class="icon"><i class="fab fa-openid"></i></span></a>
<a class="button is-pinterest" ><span class="icon"><i class="fab fa-pinterest"></i></span></a>
<a class="button is-reddit" ><span class="icon"><i class="fab fa-reddit"></i></span></a>
<a class="button is-soundcloud" ><span class="icon"><i class="fab fa-soundcloud"></i></span></a>
<a class="button is-telegram" ><span class="icon"><i class="fab fa-telegram"></i></span></a>
<a class="button is-tumblr" ><span class="icon"><i class="fab fa-tumblr"></i></span></a>
<a class="button is-twitter" ><span class="icon"><i class="fab fa-twitter"></i></span></a>
<a class="button is-vimeo" ><span class="icon"><i class="fab fa-vimeo"></i></span></a>
<a class="button is-vk" ><span class="icon"><i class="fab fa-vk"></i></span></a>
<a class="button is-wechat" ><span class="icon"><i class="fab fa-weixin"></i></span></a>
<a class="button is-whatsapp" ><span class="icon"><i class="fab fa-whatsapp"></i></span></a>
<a class="button is-yahoo" ><span class="icon"><i class="fab fa-yahoo"></i></span></a>
</div>
<hr class="hr">
<div class="buttons has-addons" style="width: 100%; justify-content: center; flex-wrap: unset;">
<a class="button is-instagram is-outlined" ><span class="icon"><i class="fab fa-instagram"></i></span><span>Instagram</span></a>
<a class="button is-linkedin is-outlined" ><span class="icon"><i class="fab fa-linkedin"></i></span><span>Linkedin</span></a>
<a class="button is-pinterest is-outlined" ><span class="icon"><i class="fab fa-pinterest"></i></span><span>Pinterest</span></a>
<a class="button is-soundcloud is-outlined" ><span class="icon"><i class="fab fa-soundcloud"></i></span><span>Soundcloud</span></a>
</div>
</div>
</div>
<div class="column is-2">
<h3 class="title is-4 is-spaced anchor-title">
<span class="anchor-name">The Buttons</span>
<a class="anchor-link" href="#available-classes">#</a>
</h3>
<div class="buttons social-class">
<p class="field" style="width: 100%;"><code class="tag" data-class="is-adn" data-name="App.net" data-icon="fab fa-adn"> .is-adn </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-bitbucket" data-name="Bitbuchet" data-icon="fab fa-bitbucket"> .is-bitbucket </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-dropbox" data-name="Dropbox" data-icon="fab fa-dropbox"> .is-dropbox </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-facebook" data-name="Facebook" data-icon="fab fa-facebook"> .is-facebook </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-flickr" data-name="Flickr" data-icon="fab fa-flickr"> .is-flickr </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-foursquare" data-name="Foursquare" data-icon="fab fa-foursquare"> .is-foursquare </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-github" data-name="GitHub" data-icon="fab fa-github"> .is-github </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-google" data-name="Google" data-icon="fab fa-google"> .is-google </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-instagram" data-name="Instagram" data-icon="fab fa-instagram"> .is-instagram </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-linkedin" data-name="Linkedin" data-icon="fab fa-linkedin"> .is-linkedin </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-microsoft" data-name="Microsoft" data-icon="fab fa-microsoft"> .is-microsoft </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-odnoklassniki" data-name="Odnoklassniki" data-icon="fab fa-odnoklassniki"> .is-odnoklassniki </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-openid" data-name="Openid" data-icon="fab fa-openid"> .is-openid </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-pinterest" data-name="Pinterest" data-icon="fab fa-pinterest"> .is-pinterest </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-reddit" data-name="Reddit" data-icon="fab fa-reddit"> .is-reddit </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-soundcloud" data-name="Soundcloud" data-icon="fab fa-soundcloud"> .is-soundcloud </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-telegram" data-name="Telegram" data-icon="fab fa-telegram"> .is-telegram </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-tumblr" data-name="Tumblr" data-icon="fab fa-tumblr"> .is-tumblr </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-twitter" data-name="Twitter" data-icon="fab fa-twitter"> .is-twitter </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-vimeo" data-name="Vimeo" data-icon="fab fa-vimeo"> .is-vimeo </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-vk" data-name="Vk" data-icon="fab fa-vk"> .is-vk </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-wechat" data-name="Wechat" data-icon="fab fa-weixin"> .is-wechat </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-whatsapp" data-name="Whatsapp" data-icon="fab fa-whatsapp"> .is-whatsapp </code></p>
<p class="field" style="width: 100%;"><code class="tag" data-class="is-yahoo" data-name="Yahoo" data-icon="fab fa-yahoo"> .is-yahoo </code></p>
</div>
</div>
<div class="column is-6">
<div id="buttons" >
<h3 class="title is-4 is-spaced anchor-title">
<span class="anchor-name">The Buttons</span>
<a class="anchor-link" href="#different-sizes">#</a>
</h3>
<div class="buttons has-text" style="padding: 1rem;">
<a class="button is-adn is-fullwidth is-small" ><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
<a class="button is-adn is-fullwidth" ><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
<a class="button is-adn is-fullwidth is-medium" ><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
<a class="button is-adn is-fullwidth is-large"><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
</div>
<hr class="hr" style="margin-bottom: 0;">
<div class="buttons is-centered has-text" style="padding: 1rem;">
<a class="button is-adn is-small" ><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
<a class="button is-adn " ><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
<a class="button is-adn is-medium" ><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
<a class="button is-adn is-large" ><span class="icon"><i class="fab fa-adn"></i></span><span> App.net</span></a>
</div>
<hr class="hr" style="margin-bottom: 0;">
<div class="buttons is-centered" style="padding: 1rem;">
<a class="button is-adn is-small" ><span class="icon"><i class="fab fa-adn"></i></span></a>
<a class="button is-adn " ><span class="icon"><i class="fab fa-adn"></i></span></a>
<a class="button is-adn is-medium" ><span class="icon"><i class="fab fa-adn"></i></span></a>
<a class="button is-adn is-large" ><span class="icon"><i class="fab fa-adn"></i></span></a>
</div>
</div>
<div class="social-class-mod" style="margin: 1rem;">
<h3 class="title is-4 is-spaced anchor-title">
<span class="anchor-name">The Styles</span>
<a class="anchor-link" href="#the-styles">#</a>
</h3>
<div class="tags">
<code class="tag" data-class="is-outlined"> is-outlined </code>
<code class="tag" data-class="is-inverted"> is-inverted </code>
<code class="tag" data-class="is-outlined is-inverted"> is-outlined is-inverted </code>
<code class="tag" data-class="remove"> Remove all </code>
</div>
</div>
</div>
</div>
</section>
<section class="section" style="padding-top: 0rem;">
<div class="container">
<hr class="hr">
<div class="columns">
<div class="column is-half is-offset-one-quarter">
<div class="content">
<h2 class="title has-text-centered">How to use</h2>
</div>
<ol>
<li>You need to integrate <a href="https://github.com/jgthms/bulma">Bulma Css</a> on your site.</li>
<li>Include your prefered Icon Font (ex. <a href="http://fortawesome.github.io/Font-Awesome/">Font-Awesome</a> or <a href="https://github.com/google/material-design-icons">material-icons</a>).</li>
<li>Include the <code>social-bulma.min.css</code> or compile your presonal css.
<p>To compile your personal social-bulma you have two options, it depends on whether you want to have all the buttons or just some.
If you want all the buttons, just include <code>social-bulma-all.sass</code> otherwise if you only want a few buttons,
you can include only those you want by including the individual styles from the provider folder, an example of how to do it in the <code>social-bulma_providers.sass</code> file.</p>
<p>With the sass compilation you can personalize the color of only one button with your preferred color. All color codes are present in the <code>./sass/_colors.sass</code> file.</p>
</li>
<li>Add some buttons on your page!
<p>Starting using Social Bulma as you normally do with the bulma buttons.</p>
<p>Social Bulma supports all the bulma css styles and modifiers that refer to the buttons.</p>
<p>This is an example of a button with the icon on the left</p>
<pre><a class="button is-whatsapp is-fullwidth"><span class="icon"><i class="fab fa-whatsapp"></i></span><span> Whatsapp</span></a></pre>
<p>While this is an example of a button with the icon on the right</p>
<pre><a class="button is-whatsapp is-fullwidth"><span> Whatsapp</span><span class="icon"><i class="fab fa-whatsapp"></i></span></a></pre>
</li>
</ol>
</div>
</div>
</div>
</section>
<script
src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
<script type="text/javascript">
$(function () {
var all_classes = "";
$.each($('code', '.social-class'), function (index, element) {
all_classes += " " +$(element).data("class");
});
$('code', '.social-class').mouseenter(function () {
$("#buttons .button").empty();
$("#buttons .button").html('<span class="icon"><i class="' +$(this).data("icon")+ '"></i></span>')
$("#buttons .has-text .button").html('<span class="icon"><i class="' +$(this).data("icon")+ '"></i></span> <span> ' +$(this).data("name")+ '</span>')
$("#buttons .button").removeClass( all_classes );
$("#buttons .button").addClass( $(this).data("class") );
});
$('code', '.social-class-mod').mouseenter(function () {
$("#buttons .button").removeClass("is-outlined is-inverted");
$("#buttons").css( "background", "")
if ($(this).data("class") != "remove"){
$("#buttons .button").addClass($(this).data("class"));
if ($(this).data("class") === "is-outlined is-inverted"){
$("#buttons").css( "background", "#ccc")
}
}
});
});
</script>
</body>
</html>