middleman-oulu 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +1 -0
- data/assets/javascripts/oulu/dev/positions-p.js.coffee +34 -0
- data/assets/javascripts/oulu/dev/positions-pp.js.coffee +57 -0
- data/assets/javascripts/oulu/dev/positions.js.coffee +6 -0
- data/assets/javascripts/oulu/helpers/js-autosize.js.coffee +2 -0
- data/assets/javascripts/oulu/helpers/js-checkbox.js.coffee +6 -0
- data/assets/javascripts/oulu/helpers/js-click-animate.js.coffee +8 -0
- data/assets/javascripts/oulu/helpers/js-delay-hidden.js.coffee +4 -0
- data/assets/javascripts/oulu/helpers/js-focused.js.coffee +7 -0
- data/assets/javascripts/oulu/helpers/js-hack.js.coffee +8 -0
- data/assets/javascripts/oulu/helpers/js-hide-after.j.coffee +5 -0
- data/assets/javascripts/oulu/helpers/js-hover-z-index.js.coffee +5 -0
- data/assets/javascripts/oulu/helpers/js-hovered.js.coffee +17 -0
- data/assets/javascripts/oulu/helpers/js-one-animate.js.coffee +5 -0
- data/assets/javascripts/oulu/helpers/js-open-children.js.coffee +28 -0
- data/assets/javascripts/oulu/helpers/js-open.js.coffee +51 -0
- data/assets/javascripts/oulu/helpers/js-scroll-to-top.js.coffee +11 -0
- data/assets/javascripts/oulu/helpers/js-scroll.js.coffee +9 -0
- data/assets/javascripts/oulu/helpers/js-side-slide.js.coffee +6 -0
- data/assets/javascripts/oulu/helpers/js-window-loading.js.coffee +15 -0
- data/assets/javascripts/oulu/helpers/js-window-sizes.js.coffee +6 -0
- data/assets/javascripts/oulu/helpers/open-close.js.coffee +23 -0
- data/assets/javascripts/oulu/ie/PIE_IE678.js +72 -0
- data/assets/javascripts/oulu/ie/PIE_IE9.js +46 -0
- data/assets/javascripts/oulu/ie/ie-selectors.js.coffee +3 -0
- data/assets/javascripts/oulu/ie/ie8-selectors.js.coffee +3 -0
- data/assets/javascripts/oulu/ie/ie9-selectors.js.coffee +6 -0
- data/assets/javascripts/oulu/ie/jquery.belatedPNG.min.js +29 -0
- data/assets/javascripts/oulu/ie/jquery.linkscubber.js +7 -0
- data/assets/javascripts/oulu/ie/svgeezy.min.js +12 -0
- data/assets/javascripts/oulu/plugins/check-box.js.coffee +34 -0
- data/assets/javascripts/oulu/plugins/footerFixed.js +74 -0
- data/assets/javascripts/oulu/plugins/jquery.autosize.min.js +7 -0
- data/assets/javascripts/oulu/plugins/jquery.cheat-code.js +63 -0
- data/assets/javascripts/oulu/plugins/jquery.css3form.js +195 -0
- data/assets/javascripts/oulu/plugins/jquery.depend.min.js +13 -0
- data/assets/javascripts/oulu/plugins/sns-buttons.js +339 -0
- data/assets/javascripts/oulu-ie8.js +6 -0
- data/assets/javascripts/oulu-ie9.js +2 -0
- data/assets/javascripts/oulu.js +2 -0
- data/assets/stylesheets/_oulu-base.css.sass +84 -0
- data/assets/stylesheets/_oulu.css.sass +13 -0
- data/assets/stylesheets/helper/_base-helper.css.sass +133 -0
- data/assets/stylesheets/helper/_click-actions.css.sass +188 -0
- data/assets/stylesheets/helper/_fade-actions.css.sass +30 -0
- data/assets/stylesheets/helper/_margin-padding.css.sass +20 -0
- data/assets/stylesheets/helper/_typoglaphy.css.sass +9 -0
- data/assets/stylesheets/options/amazlet/_amazlet.css.sass +32 -0
- data/assets/stylesheets/options/glitch/_glitch.css.sass +31 -0
- data/assets/stylesheets/options/oulu-buttons/_button-basic.css.sass +31 -0
- data/assets/stylesheets/options/web-fonts/_cousine.css.sass +12 -0
- data/assets/stylesheets/options/web-fonts/_font-awsome.css.sass +17 -0
- data/assets/stylesheets/options/web-fonts/_icomoon.css.sass +10 -0
- data/assets/stylesheets/options/web-fonts/_lato.css.sass +12 -0
- data/assets/stylesheets/options/web-fonts/_montserrat.css.sass +13 -0
- data/assets/stylesheets/options/web-fonts/_old-standard.css.sass +12 -0
- data/assets/stylesheets/options/web-fonts/_open-sans.css.sass +11 -0
- data/assets/stylesheets/options/web-fonts/_podkova.css.sass +12 -0
- data/assets/stylesheets/options/web-fonts/_pt-sans.css.sass +12 -0
- data/assets/stylesheets/options/web-fonts/_roboto-condensed.css.sass +12 -0
- data/assets/stylesheets/options/web-fonts/_roboto.css.sass +11 -0
- data/assets/stylesheets/options/web-fonts/_satisfy.css.sass +13 -0
- data/assets/stylesheets/options/web-fonts/_source-code-pro.css.sass +13 -0
- data/assets/stylesheets/options/web-fonts/_source-sans-pro.css.sass +13 -0
- data/assets/stylesheets/options/web-fonts/_special-elite.css.sass +12 -0
- data/assets/stylesheets/options/web-fonts/_tauri.css.sass +11 -0
- data/assets/stylesheets/options/web-fonts/_ubuntu.css.sass +12 -0
- data/assets/stylesheets/settings/functions/_background.css.sass +54 -0
- data/assets/stylesheets/settings/functions/_bool.css.sass +5 -0
- data/assets/stylesheets/settings/functions/_border.css.sass +45 -0
- data/assets/stylesheets/settings/functions/_color.css.sass +83 -0
- data/assets/stylesheets/settings/functions/_content.css.sass +5 -0
- data/assets/stylesheets/settings/functions/_cursor.css.sass +5 -0
- data/assets/stylesheets/settings/functions/_image.css.sass +8 -0
- data/assets/stylesheets/settings/functions/_length.css.sass +20 -0
- data/assets/stylesheets/settings/functions/_list.css.sass +11 -0
- data/assets/stylesheets/settings/functions/_map.css.sass +5 -0
- data/assets/stylesheets/settings/functions/_number.css.sass +81 -0
- data/assets/stylesheets/settings/functions/_position.css.sass +80 -0
- data/assets/stylesheets/settings/functions/_reverse.css.sass +22 -0
- data/assets/stylesheets/settings/functions/_string.css.sass +5 -0
- data/assets/stylesheets/settings/functions/_text.css.sass +34 -0
- data/assets/stylesheets/settings/initializers/_reset.css.sass +85 -0
- data/assets/stylesheets/settings/mixins/_animation.css.sass +15 -0
- data/assets/stylesheets/settings/mixins/_background.css.sass +33 -0
- data/assets/stylesheets/settings/mixins/_balloon-tale.css.sass +111 -0
- data/assets/stylesheets/settings/mixins/_basic-font.css.sass +45 -0
- data/assets/stylesheets/settings/mixins/_block.css.sass +30 -0
- data/assets/stylesheets/settings/mixins/_border.css.sass +28 -0
- data/assets/stylesheets/settings/mixins/_button-base.css.sass +27 -0
- data/assets/stylesheets/settings/mixins/_color.css.sass +9 -0
- data/assets/stylesheets/settings/mixins/_filters.css.sass +5 -0
- data/assets/stylesheets/settings/mixins/_form.css.sass +7 -0
- data/assets/stylesheets/settings/mixins/_grids.css.sass +149 -0
- data/assets/stylesheets/settings/mixins/_html5-input-types.scss +118 -0
- data/assets/stylesheets/settings/mixins/_ie-hacks.css.sass +8 -0
- data/assets/stylesheets/settings/mixins/_lines.css.sass +18 -0
- data/assets/stylesheets/settings/mixins/_link.css.sass +11 -0
- data/assets/stylesheets/settings/mixins/_list.css.sass +21 -0
- data/assets/stylesheets/settings/mixins/_margin-padding.css.sass +69 -0
- data/assets/stylesheets/settings/mixins/_overlay.css.sass +5 -0
- data/assets/stylesheets/settings/mixins/_positions.css.sass +28 -0
- data/assets/stylesheets/settings/mixins/_rem.css.sass +56 -0
- data/assets/stylesheets/settings/mixins/_resets.css.sass +43 -0
- data/assets/stylesheets/settings/mixins/_responsive-utilities.css.sass +160 -0
- data/assets/stylesheets/settings/mixins/_sassmatic.css.sass +172 -0
- data/assets/stylesheets/settings/mixins/_sprite-background.css.sass +18 -0
- data/assets/stylesheets/settings/mixins/_tables.css.sass +14 -0
- data/assets/stylesheets/settings/mixins/_text.css.sass +21 -0
- data/assets/stylesheets/settings/variables/_default.css.sass +69 -0
- data/lib/middleman-oulu/version.rb +5 -0
- data/lib/middleman-oulu.rb +13 -0
- data/middleman-oulu.gemspec +34 -0
- metadata +316 -0
@@ -0,0 +1,339 @@
|
|
1
|
+
/*
|
2
|
+
* Social Info 0.2 - jQuery plugin
|
3
|
+
* written by cyokodog
|
4
|
+
*
|
5
|
+
* Copyright (c) 2014 cyokodog
|
6
|
+
* http://www.cyokodog.net/
|
7
|
+
* http://d.hatena.ne.jp/cyokodog/)
|
8
|
+
* http://cyokodog.tumblr.com/
|
9
|
+
* MIT LICENCE
|
10
|
+
*
|
11
|
+
* Built for jQuery library
|
12
|
+
* http://jquery.com
|
13
|
+
*
|
14
|
+
*/
|
15
|
+
|
16
|
+
;(function($){
|
17
|
+
|
18
|
+
$.social = $.social || {};
|
19
|
+
$.si = $.social.info = {
|
20
|
+
jsonp : function( p ){
|
21
|
+
return $.ajax({
|
22
|
+
url:p.url,
|
23
|
+
dataType:'jsonp',
|
24
|
+
data:p.data,
|
25
|
+
success:function( r ){
|
26
|
+
p.callback(r);
|
27
|
+
}
|
28
|
+
});
|
29
|
+
},
|
30
|
+
reArg : function(url , callback){
|
31
|
+
if(typeof url == 'object') return url;
|
32
|
+
if(typeof url == 'function'){
|
33
|
+
callback = url;
|
34
|
+
url = '';
|
35
|
+
}
|
36
|
+
url = url || location.href;
|
37
|
+
return {
|
38
|
+
url : url,
|
39
|
+
callback : callback
|
40
|
+
};
|
41
|
+
},
|
42
|
+
cache : {
|
43
|
+
twitter : {
|
44
|
+
entryCount : {}
|
45
|
+
}
|
46
|
+
},
|
47
|
+
version : '0.2',
|
48
|
+
id : 'social-info',
|
49
|
+
name : 'Social Info'
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
$.si.twitter = {
|
54
|
+
getEntryCount : function(url, callback){
|
55
|
+
var arg = $.extend({
|
56
|
+
url : location.href,
|
57
|
+
useCache : true,
|
58
|
+
callback : function( count ){}
|
59
|
+
}, $.si.reArg(url, callback))
|
60
|
+
var cache = $.si.cache.twitter.entryCount;
|
61
|
+
var eurl = encodeURIComponent(url);
|
62
|
+
if(arg.useCache && cache[eurl] != undefined){
|
63
|
+
arg.callback(cache[eurl]);
|
64
|
+
return;
|
65
|
+
}
|
66
|
+
$.si.jsonp({
|
67
|
+
url : 'http://urls.api.twitter.com/1/urls/count.json',
|
68
|
+
data : {
|
69
|
+
url : arg.url
|
70
|
+
},
|
71
|
+
callback : function(r){
|
72
|
+
var count = r = !r ? 0 : r.count;
|
73
|
+
cache[eurl] = count;
|
74
|
+
arg.callback(count);
|
75
|
+
}
|
76
|
+
});
|
77
|
+
},
|
78
|
+
getEntryUrl : function(url, title ){
|
79
|
+
url = url || location.href;
|
80
|
+
if(title) title = '&text=' + encodeURIComponent(title);
|
81
|
+
else{
|
82
|
+
if(url == location.href) title = '&text=' + encodeURIComponent(document.title);
|
83
|
+
}
|
84
|
+
return 'https://twitter.com/intent/tweet?url=' + encodeURIComponent(url) + (title || '');
|
85
|
+
},
|
86
|
+
getSearchUrl : function( url ){
|
87
|
+
url = url || location.href;
|
88
|
+
return 'https://twitter.com/search?q=' + encodeURIComponent( url );
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
$.si.facebook = {
|
93
|
+
getEntryCount : function( url , callback){
|
94
|
+
var arg = $.si.reArg(url, callback)
|
95
|
+
$.si.jsonp({
|
96
|
+
url : 'https://graph.facebook.com/',
|
97
|
+
data : {
|
98
|
+
id : arg.url
|
99
|
+
},
|
100
|
+
callback : function(r){
|
101
|
+
arg.callback(r.shares || 0);
|
102
|
+
}
|
103
|
+
});
|
104
|
+
},
|
105
|
+
getEntryUrl : function( url ){
|
106
|
+
url = url || location.href;
|
107
|
+
return 'http://www.facebook.com/sharer.php?u=' + encodeURIComponent(url);
|
108
|
+
},
|
109
|
+
getSearchUrl : function( url ){
|
110
|
+
url = url || location.href;
|
111
|
+
return 'https://www.facebook.com/#!/search/results.php?q=' + encodeURIComponent( url );
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
$.si.googleplus = {
|
116
|
+
getEntryCount : function( url , callback){
|
117
|
+
var arg = $.si.reArg(url, callback)
|
118
|
+
$.ajax({
|
119
|
+
type: "get",
|
120
|
+
dataType: "xml",
|
121
|
+
url: "http://query.yahooapis.com/v1/public/yql",
|
122
|
+
data: {
|
123
|
+
q: "SELECT content FROM data.headers WHERE url='https://plusone.google.com/_/+1/fastbutton?hl=ja&url=" + arg.url + "' and ua='#Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36'",
|
124
|
+
format: "xml",
|
125
|
+
env: "http://datatables.org/alltables.env"
|
126
|
+
},
|
127
|
+
success: function (data) {
|
128
|
+
var content = $(data).find("content").text();
|
129
|
+
var match = content.match(/window\.__SSR[\s*]=[\s*]{c:[\s*](\d+)/i);
|
130
|
+
var count = (match != null) ? match[1] : 0;
|
131
|
+
arg.callback(count);
|
132
|
+
}
|
133
|
+
});
|
134
|
+
},
|
135
|
+
getEntryUrl : function( url ){
|
136
|
+
url = url || location.href;
|
137
|
+
return 'https://plus.google.com/share?url=' + encodeURIComponent(url);
|
138
|
+
},
|
139
|
+
getSearchUrl : function( url ){
|
140
|
+
url = url || location.href;
|
141
|
+
return 'https://plus.google.com/u/0/?tab=mX#s/' + encodeURIComponent( url );
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
$.si.hatebu = {
|
147
|
+
getEntryCount : function( url , callback){
|
148
|
+
var arg = $.si.reArg(url, callback)
|
149
|
+
$.si.jsonp({
|
150
|
+
url : 'http://api.b.st-hatena.com/entry.count',
|
151
|
+
data : {
|
152
|
+
url : arg.url
|
153
|
+
},
|
154
|
+
callback : arg.callback
|
155
|
+
});
|
156
|
+
},
|
157
|
+
getEntryUrl : function(url){
|
158
|
+
url = url || location.href;
|
159
|
+
return 'http://b.hatena.ne.jp/entry/' + url.replace(/^http:\/\//,'').replace(/^https:\/\//,'s/');
|
160
|
+
},
|
161
|
+
getSearchUrl : function( url ){
|
162
|
+
url = url || location.href;
|
163
|
+
return 'http://b.hatena.ne.jp/entrylist?url=' + encodeURIComponent( url );
|
164
|
+
},
|
165
|
+
getEntryList : function( url, sort, callback){
|
166
|
+
if(typeof sort == 'function'){
|
167
|
+
callback = sort;
|
168
|
+
sort = 'count';
|
169
|
+
}
|
170
|
+
if(typeof url == 'function'){
|
171
|
+
callback = url;
|
172
|
+
sort = 'count';
|
173
|
+
url = '';
|
174
|
+
}
|
175
|
+
url = url || location.href;
|
176
|
+
$.si.jsonp({
|
177
|
+
url : 'http://b.hatena.ne.jp/entrylist/json',
|
178
|
+
data : {
|
179
|
+
sort : sort,
|
180
|
+
url : url
|
181
|
+
},
|
182
|
+
callback : callback
|
183
|
+
});
|
184
|
+
},
|
185
|
+
getEntry : function( url , callback){
|
186
|
+
var arg = $.si.reArg(url, callback)
|
187
|
+
$.si.jsonp({
|
188
|
+
url : 'http://b.hatena.ne.jp/entry/jsonlite/',
|
189
|
+
data : {
|
190
|
+
url : arg.url
|
191
|
+
},
|
192
|
+
callback : arg.callback
|
193
|
+
});
|
194
|
+
},
|
195
|
+
getProfileImgUrl : function(id, size){
|
196
|
+
size = size ? '_'+size : '';
|
197
|
+
return 'http://cdn.www.st-hatena.com/users/mo/'+id+'/profile'+size+'.gif';
|
198
|
+
},
|
199
|
+
getEntryImgUrl : function(url){
|
200
|
+
return 'http://b.hatena.ne.jp/entry/image/' + url;
|
201
|
+
}
|
202
|
+
};
|
203
|
+
|
204
|
+
|
205
|
+
})(jQuery);
|
206
|
+
|
207
|
+
/*
|
208
|
+
* Easy Social Buttons 0.2 - jQuery plugin
|
209
|
+
* written by cyokodog
|
210
|
+
*
|
211
|
+
* Copyright (c) 2014 cyokodog
|
212
|
+
* http://www.cyokodog.net/
|
213
|
+
* http://d.hatena.ne.jp/cyokodog/)
|
214
|
+
* http://cyokodog.tumblr.com/
|
215
|
+
* MIT LICENCE
|
216
|
+
*
|
217
|
+
* Built for jQuery library
|
218
|
+
* http://jquery.com
|
219
|
+
*
|
220
|
+
*/
|
221
|
+
|
222
|
+
|
223
|
+
;(function($){
|
224
|
+
|
225
|
+
var plugin = $.esb = $.easySocialButtons = function(option ){
|
226
|
+
var callee = arguments.callee;
|
227
|
+
if(!(this instanceof callee)) return new callee(option );
|
228
|
+
var o = this, c = o.config = $.extend(true, {}, callee.defaults, option);
|
229
|
+
c.orders = option.orders || c.orders;
|
230
|
+
c.buttons = $('<ul class="easy-social-buttons-container sns-buttons__items"/>');
|
231
|
+
if(c.inverseColor) c.buttons.addClass('esb-inverse');
|
232
|
+
$.each(c.orders, function(){
|
233
|
+
var sname = this.toString();
|
234
|
+
var api = c[sname] = $.esb[sname](option );
|
235
|
+
api.getButton().appendTo(c.buttons);
|
236
|
+
});
|
237
|
+
}
|
238
|
+
$.extend(plugin.prototype, {
|
239
|
+
getButtons : function(){ // ボタンの取得
|
240
|
+
var o = this, c = o.config;
|
241
|
+
return c.buttons;
|
242
|
+
},
|
243
|
+
getButtonAPI : function(name ){ // API の取得
|
244
|
+
var o = this, c = o.config;
|
245
|
+
return c[name];
|
246
|
+
}
|
247
|
+
});
|
248
|
+
$.extend(plugin, {
|
249
|
+
defaults : {
|
250
|
+
autoAdd : true, // true でボタンの自動挿入を行う
|
251
|
+
addMethod : 'insertAfter', // ボタンの挿入メソッドを指定
|
252
|
+
callback : function(api ){}, // プラグイン実行後のコールバック処理
|
253
|
+
orders : ['hatebu','twitter', 'facebook', 'googleplus'], // ボタンの表示順
|
254
|
+
labels : { // サービスの表示名
|
255
|
+
'hatebu' : '<i class="fa fa-hatena sns-buttons__icon is-hatena"></i>',
|
256
|
+
'twitter' : '<i class="fa fa-twitter sns-buttons__icon is-twitter"></i>',
|
257
|
+
'facebook' : '<i class="fa fa-facebook sns-buttons__icon is-facebook"></i>',
|
258
|
+
'googleplus' : '<i class="fa fa-google-plus sns-buttons__icon is-google-plus"></i>'
|
259
|
+
}
|
260
|
+
},
|
261
|
+
version : '0.2',
|
262
|
+
id : 'easy-social-buttons',
|
263
|
+
name : 'Easy Social Buttons'
|
264
|
+
});
|
265
|
+
|
266
|
+
$.fn.easySocialButtons = function(option ){
|
267
|
+
var c = $.extend(true, {}, plugin.defaults, option);
|
268
|
+
if(option) c.orders = option.orders || c.orders;
|
269
|
+
return this.each(function(){
|
270
|
+
var t = $(this);
|
271
|
+
c.url = t.prop('href') || t.data('href') || t.data('url') || c.url;
|
272
|
+
if(!c.url){
|
273
|
+
c.url = location.href;
|
274
|
+
c.addMethod = 'appendTo';
|
275
|
+
}
|
276
|
+
var api = $.easySocialButtons(c);
|
277
|
+
if(c.autoAdd){
|
278
|
+
api.getButtons(c)[c.addMethod](t);
|
279
|
+
}
|
280
|
+
c.callback.apply(t[0], [api]);
|
281
|
+
});
|
282
|
+
}
|
283
|
+
|
284
|
+
var DF = plugin.defaults;
|
285
|
+
$.each(DF.orders, function(idx){
|
286
|
+
var sname = this.toString();
|
287
|
+
var f = $.esb[sname] = function(option ){
|
288
|
+
var callee = arguments.callee;
|
289
|
+
if(!(this instanceof callee)) return new callee(option );
|
290
|
+
var o = this, c = o.config = $.extend(true, {}, callee.defaults, callee.overwrite[sname] || {}, option, option[sname]);
|
291
|
+
c.url = c.url || location.href;
|
292
|
+
c.button = $(c.tempalte);
|
293
|
+
c.wrapper = c.button.hasClass('esb') ? c.button : c.button.find('.esb');
|
294
|
+
c.label = c.wrapper.find('.esb-label').html(c.label);
|
295
|
+
c.counter = c.wrapper.find('.esb-counter').html(c.waitCounter);
|
296
|
+
c.entryLink = c.wrapper.find('a.esb-entry');
|
297
|
+
c.searchLink = c.wrapper.find('a.esb-search');
|
298
|
+
if(c.useBrandColor) c.wrapper.addClass('esb-' + sname);
|
299
|
+
if($.si){
|
300
|
+
var SI = $.si[sname];
|
301
|
+
if(c.counter.size() && SI.getEntryCount){
|
302
|
+
SI.getEntryCount(c.url, function(count ){
|
303
|
+
c.counter.text(count);
|
304
|
+
});
|
305
|
+
}
|
306
|
+
!SI.getEntryUrl || c.entryLink.prop('href', SI.getEntryUrl(c.url )).prop('title', c.entryTitle);
|
307
|
+
!SI.getSearchUrl || c.searchLink.prop('href', SI.getSearchUrl(c.url )).prop('title', c.searchTitle);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
$.extend(f.prototype, {
|
311
|
+
getButton : function(){
|
312
|
+
var o = this, c = o.config;
|
313
|
+
return c.button;
|
314
|
+
}
|
315
|
+
});
|
316
|
+
$.extend(f, {
|
317
|
+
id : sname,
|
318
|
+
defaults : {
|
319
|
+
url : '',
|
320
|
+
label : DF.labels[sname],
|
321
|
+
entryTitle : '投稿する', // esb-entry クラスを持つ要素に割り当てる title 属性値
|
322
|
+
searchTitle : '検索する', // esb-search クラスを持つ要素に割り当てる title 属性値
|
323
|
+
waitCounter : '<span> </span>', // Web API の取得結果待ち時に表示するマークアップ
|
324
|
+
tempalte : '<li class="esb sns-buttons__item"><a class="esb-label esb-entry sns-buttons__entry-link" target="_blank"></a><a class="esb-counter esb-search sns-buttons__search-link" target="_blank"></a></li>', // ボタンのテンプレート
|
325
|
+
useBrandColor : false, // ブランドカラーの使用
|
326
|
+
inverseColor : false // ブランドカラー未使用時の配色の反転
|
327
|
+
},
|
328
|
+
overwrite : {
|
329
|
+
hatebu : {
|
330
|
+
entryTitle : 'ブックマークする'
|
331
|
+
}
|
332
|
+
}
|
333
|
+
});
|
334
|
+
});
|
335
|
+
})(jQuery);
|
336
|
+
|
337
|
+
$(function(){
|
338
|
+
$('.sns-buttons').easySocialButtons();
|
339
|
+
});
|
@@ -0,0 +1,84 @@
|
|
1
|
+
//////////////
|
2
|
+
//settings
|
3
|
+
//////////////
|
4
|
+
|
5
|
+
// compass
|
6
|
+
///////////////////
|
7
|
+
|
8
|
+
@import compass/css3
|
9
|
+
@import compass/typography/links
|
10
|
+
@import compass/typography/lists
|
11
|
+
@import compass/typography/text
|
12
|
+
@import compass/utilities/general
|
13
|
+
@import compass/utilities/sprites
|
14
|
+
@import compass/utilities/tables
|
15
|
+
|
16
|
+
// compass plugins
|
17
|
+
///////////////////
|
18
|
+
|
19
|
+
// compass-rgbapng https://github.com/aaronrussell/compass-rgbapng
|
20
|
+
@import rgbapng
|
21
|
+
// SassyLists http://sassylists.com/
|
22
|
+
@import SassyLists
|
23
|
+
// sass-ceaser-easing https://github.com/jhardy/compass-ceaser-easing
|
24
|
+
@import ceaser-easing
|
25
|
+
// modular-scale https://github.com/Team-Sass/modular-scale
|
26
|
+
@import modular-scale
|
27
|
+
|
28
|
+
// variables
|
29
|
+
///////////////////
|
30
|
+
|
31
|
+
@import settings/variables/default
|
32
|
+
|
33
|
+
// functions
|
34
|
+
///////////////////
|
35
|
+
@import settings/functions/list
|
36
|
+
@import settings/functions/number
|
37
|
+
@import settings/functions/string
|
38
|
+
@import settings/functions/length
|
39
|
+
@import settings/functions/map
|
40
|
+
@import settings/functions/bool
|
41
|
+
@import settings/functions/position
|
42
|
+
@import settings/functions/text
|
43
|
+
@import settings/functions/reverse
|
44
|
+
@import settings/functions/color
|
45
|
+
@import settings/functions/image
|
46
|
+
@import settings/functions/background
|
47
|
+
@import settings/functions/border
|
48
|
+
|
49
|
+
// mixins
|
50
|
+
///////////////////
|
51
|
+
|
52
|
+
@import settings/mixins/rem
|
53
|
+
@import settings/mixins/basic-font
|
54
|
+
@import settings/mixins/resets
|
55
|
+
@import settings/mixins/text
|
56
|
+
@import settings/mixins/positions
|
57
|
+
@import settings/mixins/block
|
58
|
+
@import settings/mixins/link
|
59
|
+
@import settings/mixins/border
|
60
|
+
@import settings/mixins/tables
|
61
|
+
@import settings/mixins/list
|
62
|
+
@import settings/mixins/color
|
63
|
+
@import settings/mixins/overlay
|
64
|
+
@import settings/mixins/balloon-tale
|
65
|
+
@import settings/mixins/sprite-background
|
66
|
+
@import settings/mixins/margin-padding
|
67
|
+
@import settings/mixins/animation
|
68
|
+
@import settings/mixins/grids
|
69
|
+
@import settings/mixins/responsive-utilities
|
70
|
+
@import settings/mixins/background
|
71
|
+
@import settings/mixins/lines
|
72
|
+
@import settings/mixins/button-base
|
73
|
+
|
74
|
+
// http://sassmatic.com/
|
75
|
+
// @import settings/mixins/sassmatic
|
76
|
+
|
77
|
+
// sass3.3以上のみ使用可
|
78
|
+
@import settings/mixins/html5-input-types
|
79
|
+
|
80
|
+
// initializers
|
81
|
+
///////////////////
|
82
|
+
|
83
|
+
@import compass/reset
|
84
|
+
@import settings/initializers/reset
|
@@ -0,0 +1,13 @@
|
|
1
|
+
//////////////
|
2
|
+
//settings
|
3
|
+
//////////////
|
4
|
+
|
5
|
+
// oulu-base
|
6
|
+
@import oulu-base
|
7
|
+
|
8
|
+
// helper-classes
|
9
|
+
@import helper/base-helper
|
10
|
+
@import helper/margin-padding
|
11
|
+
@import helper/typoglaphy
|
12
|
+
@import helper/click-actions
|
13
|
+
@import helper/fade-actions
|
@@ -0,0 +1,133 @@
|
|
1
|
+
.#{$wrapper-class-name}
|
2
|
+
+rem('max-width', $wrapper-max-width)
|
3
|
+
+box-sizing(border-box)
|
4
|
+
+margin(horizontal, auto)
|
5
|
+
+padding(horizontal, $wrapper-horizontal-padding)
|
6
|
+
clear: both
|
7
|
+
|
8
|
+
// state
|
9
|
+
.is-clearfix
|
10
|
+
*zoom: 1
|
11
|
+
&:after
|
12
|
+
content: ''
|
13
|
+
display: table
|
14
|
+
clear: both
|
15
|
+
.is-relative
|
16
|
+
position: relative
|
17
|
+
.is-fixed
|
18
|
+
+fixed(left 0, top 0)
|
19
|
+
width: 100%
|
20
|
+
.is-clickable
|
21
|
+
cursor: pointer
|
22
|
+
.is-clear
|
23
|
+
clear: both
|
24
|
+
.is-gradient
|
25
|
+
filter: none
|
26
|
+
.is-visible
|
27
|
+
overflow: visible !important
|
28
|
+
.is-inline
|
29
|
+
display: inline
|
30
|
+
|
31
|
+
.is-block-link
|
32
|
+
display: block
|
33
|
+
text-decoration: none
|
34
|
+
.is-scroll-x-wrapper
|
35
|
+
overflow-x: auto
|
36
|
+
overflow-y: hidden
|
37
|
+
-webkit-overflow-scrolling: touch
|
38
|
+
width: 100%
|
39
|
+
position: relative
|
40
|
+
.is-max-wd
|
41
|
+
width: 100%
|
42
|
+
display: block
|
43
|
+
|
44
|
+
.is-mgb-0
|
45
|
+
margin-bottom: 0 !important
|
46
|
+
.is-pdt-0
|
47
|
+
padding-top: 0 !important
|
48
|
+
.is-pd-0
|
49
|
+
padding: 0 !important
|
50
|
+
|
51
|
+
body
|
52
|
+
.is-hidden
|
53
|
+
visibility: hidden
|
54
|
+
display: none
|
55
|
+
+opacity(0)
|
56
|
+
.is-invisible
|
57
|
+
margin-left: -99999px
|
58
|
+
position: absolute
|
59
|
+
visibility: hidden
|
60
|
+
+opacity(0)
|
61
|
+
.is-shown
|
62
|
+
+inline-block
|
63
|
+
.is-horizontal-closed
|
64
|
+
width: 0
|
65
|
+
overflow: hidden
|
66
|
+
|
67
|
+
.is-z-index-100
|
68
|
+
z-index: 100
|
69
|
+
position: relative
|
70
|
+
|
71
|
+
.is-table-row
|
72
|
+
display: table-row !important
|
73
|
+
.is-table-cell
|
74
|
+
display: table-cell !important
|
75
|
+
|
76
|
+
// layout
|
77
|
+
.is-center-block
|
78
|
+
+margin(horizontal, auto)
|
79
|
+
display: block
|
80
|
+
.is-center
|
81
|
+
display: block
|
82
|
+
+margin(horizontal, auto)
|
83
|
+
.is-horizontal-center
|
84
|
+
display: block
|
85
|
+
+margin(horizontal, auto)
|
86
|
+
|
87
|
+
// vertical
|
88
|
+
.is-vertical-center
|
89
|
+
vertical-align: middle !important
|
90
|
+
.is-vertical-top
|
91
|
+
vertical-align: top !important
|
92
|
+
.is-vertical-bottom
|
93
|
+
vertical-align: bottom !important
|
94
|
+
|
95
|
+
// float
|
96
|
+
.is-left
|
97
|
+
float: left
|
98
|
+
.is-right
|
99
|
+
float: right
|
100
|
+
|
101
|
+
// text-align
|
102
|
+
.is-center-wrapper
|
103
|
+
text-align: center
|
104
|
+
.is-right-wrapper
|
105
|
+
text-align: right
|
106
|
+
.is-left-wrapper
|
107
|
+
text-align: left
|
108
|
+
|
109
|
+
// list
|
110
|
+
.is-horizontal-list
|
111
|
+
+horizontal-list(0)
|
112
|
+
|
113
|
+
.is-inline-blocks
|
114
|
+
>*
|
115
|
+
+inline-block(bottom)
|
116
|
+
|
117
|
+
.is-nowrap
|
118
|
+
white-space: nowrap
|
119
|
+
|
120
|
+
// Font Awesome
|
121
|
+
|
122
|
+
// http://hayashikejinan.com/webwork/css/913/
|
123
|
+
.fa-hatena
|
124
|
+
&:before
|
125
|
+
content: "B!"
|
126
|
+
font-family: Verdana
|
127
|
+
font-weight: bold
|
128
|
+
.fa-triangle-o:before
|
129
|
+
content: "\0025b3"
|
130
|
+
+sans-serif
|
131
|
+
.fa-triangle:before
|
132
|
+
content: "\0025b2"
|
133
|
+
+sans-serif
|