masonry-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +109 -0
- data/LICENSE.txt +20 -0
- data/Masonry.mdown +51 -0
- data/README.md +53 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/_config.yml +6 -0
- data/lib/masonry-rails.rb +7 -0
- data/masonry-rails.gemspec +107 -0
- data/minify.sh +16 -0
- data/spec/_layouts/default.html +75 -0
- data/spec/_posts/demos/2011-05-01-basic-single-column.html +206 -0
- data/spec/_posts/demos/2011-05-02-basic-multi-column.html +213 -0
- data/spec/_posts/demos/2011-05-03-images.html +57 -0
- data/spec/_posts/demos/2011-05-04-tumblelog.html +226 -0
- data/spec/_posts/demos/2011-05-05-animating-jquery.html +144 -0
- data/spec/_posts/demos/2011-05-06-animating-css-transitions.html +132 -0
- data/spec/_posts/demos/2011-05-07-animating-modernizr.html +136 -0
- data/spec/_posts/demos/2011-05-08-adding-items.html +89 -0
- data/spec/_posts/demos/2011-05-09-infinite-scroll.html +268 -0
- data/spec/_posts/demos/2011-05-10-gutters.html +209 -0
- data/spec/_posts/demos/2011-05-11-right-to-left.html +135 -0
- data/spec/_posts/demos/2011-05-17-centered.html +137 -0
- data/spec/_posts/demos/2011-07-26-fluid.html +219 -0
- data/spec/_posts/demos/2011-10-07-corner-stamp.html +249 -0
- data/spec/_posts/docs/2011-05-01-intro.mdown +149 -0
- data/spec/_posts/docs/2011-05-02-options.mdown +157 -0
- data/spec/_posts/docs/2011-05-03-methods.mdown +155 -0
- data/spec/_posts/docs/2011-05-04-animating.mdown +96 -0
- data/spec/_posts/docs/2011-05-30-help.mdown +139 -0
- data/spec/_posts/pages/2011-05-02-2.html +189 -0
- data/spec/_posts/pages/2011-05-03-3.html +174 -0
- data/spec/_posts/pages/2011-05-04-4.html +159 -0
- data/spec/_posts/pages/2011-05-05-5.html +167 -0
- data/spec/_posts/tests/2011-01-01-index.html +14 -0
- data/spec/_posts/tests/2011-05-14-lots-of-bricks.html +1438 -0
- data/spec/_posts/tests/2011-05-17-dual.html +247 -0
- data/spec/_posts/tests/2011-05-18-first-child-no-width.html +217 -0
- data/spec/_posts/tests/2011-05-19-empty.html +205 -0
- data/spec/_posts/tests/2011-08-08-destroy.html +214 -0
- data/spec/_posts/tests/2011-09-27-centered-few.html +50 -0
- data/spec/index.html +58 -0
- data/spec/spec_helper.rb +12 -0
- data/vendor/assets/javascripts/masonry/box-maker.js +38 -0
- data/vendor/assets/javascripts/masonry/jquery.event.drag-2.2.js +402 -0
- data/vendor/assets/javascripts/masonry/jquery.infinitescroll.min.js +47 -0
- data/vendor/assets/javascripts/masonry/jquery.masonry.js +682 -0
- data/vendor/assets/javascripts/masonry/jquery.masonry.min.js +10 -0
- data/vendor/assets/javascripts/masonry/modernizr-transitions.js +2 -0
- data/vendor/assets/stylesheets/masonry/style.css +616 -0
- metadata +199 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* jQuery Masonry v2.1.05
|
3
|
+
* A dynamic layout plugin for jQuery
|
4
|
+
* The flip-side of CSS Floats
|
5
|
+
* http://masonry.desandro.com
|
6
|
+
*
|
7
|
+
* Licensed under the MIT license.
|
8
|
+
* Copyright 2012 David DeSandro
|
9
|
+
*/
|
10
|
+
(function(a,b,c){"use strict";var d=b.event,e;d.special.smartresize={setup:function(){b(this).bind("resize",d.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",d.special.smartresize.handler)},handler:function(a,c){var d=this,f=arguments;a.type="smartresize",e&&clearTimeout(e),e=setTimeout(function(){b.event.handle.apply(d,f)},c==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Mason=function(a,c){this.element=b(c),this._create(a),this._init()},b.Mason.settings={isResizable:!0,isAnimated:!1,animationOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1,containerStyle:{position:"relative"}},b.Mason.prototype={_filterFindBricks:function(a){var b=this.options.itemSelector;return b?a.filter(b).add(a.find(b)):a},_getBricks:function(a){var b=this._filterFindBricks(a).css({position:"absolute"}).addClass("masonry-brick");return b},_create:function(c){this.options=b.extend(!0,{},b.Mason.settings,c),this.styleQueue=[];var d=this.element[0].style;this.originalStyle={height:d.height||""};var e=this.options.containerStyle;for(var f in e)this.originalStyle[f]=d[f]||"";this.element.css(e),this.horizontalDirection=this.options.isRTL?"right":"left",this.offset={x:parseInt(this.element.css("padding-"+this.horizontalDirection),10),y:parseInt(this.element.css("padding-top"),10)},this.isFluid=this.options.columnWidth&&typeof this.options.columnWidth=="function";var g=this;setTimeout(function(){g.element.addClass("masonry")},0),this.options.isResizable&&b(a).bind("smartresize.masonry",function(){g.resize()}),this.reloadItems()},_init:function(a){this._getColumns(),this._reLayout(a)},option:function(a,c){b.isPlainObject(a)&&(this.options=b.extend(!0,this.options,a))},layout:function(a,b){for(var c=0,d=a.length;c<d;c++)this._placeBrick(a[c]);var e={};e.height=Math.max.apply(Math,this.colYs);if(this.options.isFitWidth){var f=0;c=this.cols;while(--c){if(this.colYs[c]!==0)break;f++}e.width=(this.cols-f)*this.columnWidth-this.options.gutterWidth}this.styleQueue.push({$el:this.element,style:e});var g=this.isLaidOut?this.options.isAnimated?"animate":"css":"css",h=this.options.animationOptions,i;for(c=0,d=this.styleQueue.length;c<d;c++)i=this.styleQueue[c],i.$el[g](i.style,h);this.styleQueue=[],b&&b.call(a),this.isLaidOut=!0},_getColumns:function(){var a=this.options.isFitWidth?this.element.parent():this.element,b=a.width();this.columnWidth=this.isFluid?this.options.columnWidth(b):this.options.columnWidth||this.$bricks.outerWidth(!0)||b,this.columnWidth+=this.options.gutterWidth,this.cols=Math.floor((b+this.options.gutterWidth)/this.columnWidth),this.cols=Math.max(this.cols,1)},_placeBrick:function(a){var c=b(a),d,e,f,g,h;d=Math.ceil(c.outerWidth(!0)/this.columnWidth),d=Math.min(d,this.cols);if(d===1)f=this.colYs;else{e=this.cols+1-d,f=[];for(h=0;h<e;h++)g=this.colYs.slice(h,h+d),f[h]=Math.max.apply(Math,g)}var i=Math.min.apply(Math,f),j=0;for(var k=0,l=f.length;k<l;k++)if(f[k]===i){j=k;break}var m={top:i+this.offset.y};m[this.horizontalDirection]=this.columnWidth*j+this.offset.x,this.styleQueue.push({$el:c,style:m});var n=i+c.outerHeight(!0),o=this.cols+1-l;for(k=0;k<o;k++)this.colYs[j+k]=n},resize:function(){var a=this.cols;this._getColumns(),(this.isFluid||this.cols!==a)&&this._reLayout()},_reLayout:function(a){var b=this.cols;this.colYs=[];while(b--)this.colYs.push(0);this.layout(this.$bricks,a)},reloadItems:function(){this.$bricks=this._getBricks(this.element.children())},reload:function(a){this.reloadItems(),this._init(a)},appended:function(a,b,c){if(b){this._filterFindBricks(a).css({top:this.element.height()});var d=this;setTimeout(function(){d._appended(a,c)},1)}else this._appended(a,c)},_appended:function(a,b){var c=this._getBricks(a);this.$bricks=this.$bricks.add(c),this.layout(c,b)},remove:function(a){this.$bricks=this.$bricks.not(a),a.remove()},destroy:function(){this.$bricks.removeClass("masonry-brick").each(function(){this.style.position="",this.style.top="",this.style.left=""});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".masonry").removeClass("masonry").removeData("masonry"),b(a).unbind(".masonry")}},b.fn.imagesLoaded=function(a){function h(){a.call(c,d)}function i(a){var c=a.target;c.src!==f&&b.inArray(c,g)===-1&&(g.push(c),--e<=0&&(setTimeout(h),d.unbind(".imagesLoaded",i)))}var c=this,d=c.find("img").add(c.filter("img")),e=d.length,f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g=[];return e||h(),d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){var a=this.src;this.src=f,this.src=a}),c};var f=function(b){a.console&&a.console.error(b)};b.fn.masonry=function(a){if(typeof a=="string"){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=b.data(this,"masonry");if(!d){f("cannot call methods on masonry prior to initialization; attempted to call method '"+a+"'");return}if(!b.isFunction(d[a])||a.charAt(0)==="_"){f("no such method '"+a+"' for masonry instance");return}d[a].apply(d,c)})}else this.each(function(){var c=b.data(this,"masonry");c?(c.option(a||{}),c._init()):b.data(this,"masonry",new b.Mason(a,this))});return this}})(window,jQuery);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/* Modernizr custom build of 1.7: csstransitions */
|
2
|
+
window.Modernizr=function(a,b,c){function G(){}function F(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+p.join(c+" ")+c).split(" ");return!!E(d,b)}function E(a,b){for(var d in a)if(k[a[d]]!==c&&(!b||b(a[d],j)))return!0}function D(a,b){return(""+a).indexOf(b)!==-1}function C(a,b){return typeof a===b}function B(a,b){return A(o.join(a+";")+(b||""))}function A(a){k.cssText=a}var d="1.7",e={},f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l=b.createElement("input"),m=":)",n=Object.prototype.toString,o=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),p="Webkit Moz O ms Khtml".split(" "),q={svg:"http://www.w3.org/2000/svg"},r={},s={},t={},u=[],v,w=function(a){var c=b.createElement("style"),d=b.createElement("div"),e;c.textContent=a+"{#modernizr{height:3px}}",h.appendChild(c),d.id="modernizr",g.appendChild(d),e=d.offsetHeight===3,c.parentNode.removeChild(c),d.parentNode.removeChild(d);return!!e},x=function(){function d(d,e){e=e||b.createElement(a[d]||"div");var f=(d="on"+d)in e;f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=C(e[d],"function"),C(e[d],c)||(e[d]=c),e.removeAttribute(d))),e=null;return f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),y=({}).hasOwnProperty,z;C(y,c)||C(y.call,c)?z=function(a,b){return b in a&&C(a.constructor.prototype[b],c)}:z=function(a,b){return y.call(a,b)},r.csstransitions=function(){return F("transitionProperty")};for(var H in r)z(r,H)&&(v=H.toLowerCase(),e[v]=r[H](),u.push((e[v]?"":"no-")+v));e.input||G(),e.crosswindowmessaging=e.postmessage,e.historymanagement=e.history,e.addTest=function(a,b){a=a.toLowerCase();if(!e[a]){b=!!b(),g.className+=" "+(b?"":"no-")+a,e[a]=b;return e}},A(""),j=l=null,e._enableHTML5=f,e._version=d,g.className=g.className.replace(/\bno-js\b/,"")+" js "+u.join(" ");return e}(this,this.document)
|
@@ -0,0 +1,616 @@
|
|
1
|
+
/**** Base styles ****/
|
2
|
+
|
3
|
+
html, body, div, span, object, iframe,
|
4
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
5
|
+
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
|
6
|
+
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
|
7
|
+
fieldset, form, label, legend,
|
8
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
9
|
+
article, aside, canvas, details, figcaption, figure,
|
10
|
+
footer, header, hgroup, menu, nav, section, summary,
|
11
|
+
time, mark, audio, video {
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
border: 0;
|
15
|
+
font-size: 100%;
|
16
|
+
font: inherit;
|
17
|
+
vertical-align: baseline;
|
18
|
+
}
|
19
|
+
|
20
|
+
article, aside, details, figcaption, figure,
|
21
|
+
footer, header, hgroup, menu, nav, section {
|
22
|
+
display: block;
|
23
|
+
}
|
24
|
+
|
25
|
+
html {
|
26
|
+
overflow-y: scroll;
|
27
|
+
}
|
28
|
+
|
29
|
+
body {
|
30
|
+
font: 13px 'Helvetica Neue', Arial, sans-serif;
|
31
|
+
background: #D8D5D2;
|
32
|
+
color: #222;
|
33
|
+
line-height: 1.6em;
|
34
|
+
}
|
35
|
+
|
36
|
+
a {
|
37
|
+
color: #A2C;
|
38
|
+
text-decoration: none;
|
39
|
+
font-weight: bold;
|
40
|
+
}
|
41
|
+
|
42
|
+
a:hover {
|
43
|
+
color: #D26;
|
44
|
+
}
|
45
|
+
|
46
|
+
a:active {
|
47
|
+
background: hsla( 0, 100%, 100%, 0.5 );
|
48
|
+
}
|
49
|
+
|
50
|
+
h1, h2 {
|
51
|
+
font-weight: 100;
|
52
|
+
line-height: 1.2em;
|
53
|
+
margin-bottom: 0.6em;
|
54
|
+
}
|
55
|
+
|
56
|
+
h1 {
|
57
|
+
font-size: 36px;
|
58
|
+
}
|
59
|
+
|
60
|
+
h2 {
|
61
|
+
font-size: 24px;
|
62
|
+
}
|
63
|
+
|
64
|
+
h3 {
|
65
|
+
font-size: 17px;
|
66
|
+
font-weight: bold;
|
67
|
+
}
|
68
|
+
|
69
|
+
h3, p, ul, ol, pre, dl {
|
70
|
+
margin-bottom: 1.0em;
|
71
|
+
}
|
72
|
+
|
73
|
+
em { font-style: italic; }
|
74
|
+
strong { font-weight: bold; }
|
75
|
+
|
76
|
+
/**** #site-nav ****/
|
77
|
+
|
78
|
+
#site-nav {
|
79
|
+
position: absolute;
|
80
|
+
width: 180px;
|
81
|
+
padding: 0 10px;
|
82
|
+
}
|
83
|
+
|
84
|
+
#site-nav h1 {
|
85
|
+
font-weight: 600;
|
86
|
+
font-size: 18px;
|
87
|
+
margin-bottom: 0.8em;
|
88
|
+
padding-top: 10px;
|
89
|
+
}
|
90
|
+
|
91
|
+
#site-nav h1 a { color: #D26; }
|
92
|
+
#site-nav h1 a:hover { color: #A2C; }
|
93
|
+
|
94
|
+
#site-nav h2 {
|
95
|
+
font-size: 17px;
|
96
|
+
font-weight: normal;
|
97
|
+
margin-bottom: 0.3em;
|
98
|
+
}
|
99
|
+
|
100
|
+
#site-nav ul {
|
101
|
+
list-style: none;
|
102
|
+
padding-left: 0;
|
103
|
+
font-size: 12px;
|
104
|
+
}
|
105
|
+
|
106
|
+
#site-nav li {
|
107
|
+
-webkit-border-radius: 4px;
|
108
|
+
-moz-border-radius: 4px;
|
109
|
+
border-radius: 4px;
|
110
|
+
}
|
111
|
+
|
112
|
+
#site-nav li a {
|
113
|
+
display: block;
|
114
|
+
padding: 3px 5px;
|
115
|
+
}
|
116
|
+
|
117
|
+
#site-nav li.current {
|
118
|
+
background: #C8C5C2;
|
119
|
+
}
|
120
|
+
|
121
|
+
#site-nav li.current a { color: white; }
|
122
|
+
#site-nav li.current a:hover { color: #D26; }
|
123
|
+
|
124
|
+
#site-nav li ul {
|
125
|
+
margin-bottom: 0;
|
126
|
+
}
|
127
|
+
|
128
|
+
#site-nav li li {
|
129
|
+
font-size: 11px;
|
130
|
+
line-height: 1.4em;
|
131
|
+
}
|
132
|
+
|
133
|
+
#site-nav li li a {
|
134
|
+
padding-left: 15px;
|
135
|
+
}
|
136
|
+
|
137
|
+
#site-nav li.selected li a {
|
138
|
+
padding: 3px;
|
139
|
+
background: none;
|
140
|
+
}
|
141
|
+
|
142
|
+
#site-nav li.selected li a:hover {
|
143
|
+
color: #D26;
|
144
|
+
}
|
145
|
+
|
146
|
+
/**** Content ****/
|
147
|
+
|
148
|
+
#content {
|
149
|
+
padding: 10px 10px 10px 210px;
|
150
|
+
}
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
/* screens smaller than 640 */
|
155
|
+
@media screen and (max-width: 640px) {
|
156
|
+
|
157
|
+
#site-nav {
|
158
|
+
width: auto;
|
159
|
+
position: relative;
|
160
|
+
left: auto;
|
161
|
+
top: auto;
|
162
|
+
padding-top: 0px;
|
163
|
+
height: auto;
|
164
|
+
margin-bottom: 20px;
|
165
|
+
}
|
166
|
+
|
167
|
+
#content {
|
168
|
+
padding-left: 10px;
|
169
|
+
}
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
.copy h2 {
|
174
|
+
clear: both;
|
175
|
+
}
|
176
|
+
|
177
|
+
a img {
|
178
|
+
border: none;
|
179
|
+
}
|
180
|
+
|
181
|
+
pre, code {
|
182
|
+
font-family: Monaco, monospace;
|
183
|
+
font-size: 12px;
|
184
|
+
background: #111;
|
185
|
+
color: #F5F5F5;
|
186
|
+
}
|
187
|
+
|
188
|
+
p code {
|
189
|
+
padding: 1px 3px;
|
190
|
+
}
|
191
|
+
|
192
|
+
pre {
|
193
|
+
padding: 10px;
|
194
|
+
-webkit-border-radius: 5px;
|
195
|
+
-moz-border-radius: 5px;
|
196
|
+
border-radius: 5px;
|
197
|
+
}
|
198
|
+
|
199
|
+
ul, ol { padding-left: 1.3em;}
|
200
|
+
|
201
|
+
.hidden { display: none; }
|
202
|
+
|
203
|
+
.copy {
|
204
|
+
width: 600px;
|
205
|
+
line-height: 1.55em;
|
206
|
+
}
|
207
|
+
|
208
|
+
blockquote {
|
209
|
+
margin: 0;
|
210
|
+
font: italic 18px Georgia, serif;
|
211
|
+
}
|
212
|
+
|
213
|
+
dt {
|
214
|
+
font-weight: bold;
|
215
|
+
font-size: 14px;
|
216
|
+
}
|
217
|
+
|
218
|
+
dd + dt {
|
219
|
+
margin-top: 0.5em;
|
220
|
+
}
|
221
|
+
|
222
|
+
dd {
|
223
|
+
margin-left: 1.0em;
|
224
|
+
}
|
225
|
+
|
226
|
+
button {
|
227
|
+
-webkit-appearance: push-button;
|
228
|
+
}
|
229
|
+
|
230
|
+
#site-footer {
|
231
|
+
clear: both;
|
232
|
+
margin: 20px 0px;
|
233
|
+
border-top: 2px solid white;
|
234
|
+
padding-top: 10px;
|
235
|
+
line-height: 30px;
|
236
|
+
font-size: 95%;
|
237
|
+
font-style: italic;
|
238
|
+
}
|
239
|
+
|
240
|
+
.license-copy {
|
241
|
+
font-size: 85%;
|
242
|
+
}
|
243
|
+
|
244
|
+
.demos #copy,
|
245
|
+
.docs #content {
|
246
|
+
max-width: 640px;
|
247
|
+
}
|
248
|
+
|
249
|
+
.docs #content h2 {
|
250
|
+
border-top: 2px solid #FFF;
|
251
|
+
padding-top: 10px;
|
252
|
+
}
|
253
|
+
|
254
|
+
.docs #content h2:target {
|
255
|
+
background: #D26;
|
256
|
+
color: white;
|
257
|
+
padding: 10px 5px 5px;
|
258
|
+
}
|
259
|
+
|
260
|
+
/**** Docs ****/
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
.options dl dt { font-weight: normal; }
|
265
|
+
|
266
|
+
.options dl dt,
|
267
|
+
.options dl dd {
|
268
|
+
float: left;
|
269
|
+
padding: 0 1.2em;;
|
270
|
+
background: #161616;
|
271
|
+
line-height: 32px;
|
272
|
+
height: 32px;
|
273
|
+
margin: 0;
|
274
|
+
}
|
275
|
+
|
276
|
+
.options dl.header dt,
|
277
|
+
.options dl.header dd {
|
278
|
+
background: #444;
|
279
|
+
}
|
280
|
+
|
281
|
+
.options dl .option-type {
|
282
|
+
font-size: 13px;
|
283
|
+
color: #AAA;
|
284
|
+
font-style: italic;
|
285
|
+
}
|
286
|
+
|
287
|
+
.options dl dd {
|
288
|
+
margin-left: 1px;
|
289
|
+
}
|
290
|
+
|
291
|
+
/**** Demos ****/
|
292
|
+
|
293
|
+
#container {
|
294
|
+
background: #FFF;
|
295
|
+
padding: 5px;
|
296
|
+
margin-bottom: 20px;
|
297
|
+
border-radius: 5px;
|
298
|
+
clear: both;
|
299
|
+
-webkit-border-radius: 5px;
|
300
|
+
-moz-border-radius: 5px;
|
301
|
+
border-radius: 5px;
|
302
|
+
}
|
303
|
+
|
304
|
+
.centered { margin: 0 auto; }
|
305
|
+
|
306
|
+
.box {
|
307
|
+
margin: 5px;
|
308
|
+
padding: 5px;
|
309
|
+
background: #D8D5D2;
|
310
|
+
font-size: 11px;
|
311
|
+
line-height: 1.4em;
|
312
|
+
float: left;
|
313
|
+
-webkit-border-radius: 5px;
|
314
|
+
-moz-border-radius: 5px;
|
315
|
+
border-radius: 5px;
|
316
|
+
}
|
317
|
+
|
318
|
+
.box h2 {
|
319
|
+
font-size: 14px;
|
320
|
+
font-weight: 200;
|
321
|
+
}
|
322
|
+
|
323
|
+
.box img,
|
324
|
+
#tumblelog img {
|
325
|
+
display: block;
|
326
|
+
width: 100%;
|
327
|
+
}
|
328
|
+
|
329
|
+
.rtl .box {
|
330
|
+
float: right;
|
331
|
+
text-align: right;
|
332
|
+
direction: rtl;
|
333
|
+
}
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
.col1 { width: 80px; }
|
338
|
+
.col2 { width: 180px; }
|
339
|
+
.col3 { width: 280px; }
|
340
|
+
.col4 { width: 380px; }
|
341
|
+
.col5 { width: 480px; }
|
342
|
+
|
343
|
+
.col1 img { max-width: 80px; }
|
344
|
+
.col2 img { max-width: 180px; }
|
345
|
+
.col3 img { max-width: 280px; }
|
346
|
+
.col4 img { max-width: 380px; }
|
347
|
+
.col5 img { max-width: 480px; }
|
348
|
+
|
349
|
+
/**** Gutters ****/
|
350
|
+
|
351
|
+
.has-gutters .box {
|
352
|
+
margin: 5px 0;
|
353
|
+
}
|
354
|
+
|
355
|
+
.has-gutters .col1 { width: 90px; }
|
356
|
+
.has-gutters .col2 { width: 230px; }
|
357
|
+
.has-gutters .col3 { width: 370px; }
|
358
|
+
.has-gutters .col4 { width: 550px; }
|
359
|
+
|
360
|
+
/**** Transitions ****/
|
361
|
+
|
362
|
+
.transitions-enabled.masonry,
|
363
|
+
.transitions-enabled.masonry .masonry-brick {
|
364
|
+
-webkit-transition-duration: 0.7s;
|
365
|
+
-moz-transition-duration: 0.7s;
|
366
|
+
-ms-transition-duration: 0.7s;
|
367
|
+
-o-transition-duration: 0.7s;
|
368
|
+
transition-duration: 0.7s;
|
369
|
+
}
|
370
|
+
|
371
|
+
.transitions-enabled.masonry {
|
372
|
+
-webkit-transition-property: height, width;
|
373
|
+
-moz-transition-property: height, width;
|
374
|
+
-ms-transition-property: height, width;
|
375
|
+
-o-transition-property: height, width;
|
376
|
+
transition-property: height, width;
|
377
|
+
}
|
378
|
+
|
379
|
+
.transitions-enabled.masonry .masonry-brick {
|
380
|
+
-webkit-transition-property: left, right, top;
|
381
|
+
-moz-transition-property: left, right, top;
|
382
|
+
-ms-transition-property: left, right, top;
|
383
|
+
-o-transition-property: left, right, top;
|
384
|
+
transition-property: left, right, top;
|
385
|
+
}
|
386
|
+
|
387
|
+
|
388
|
+
/* disable transitions on container */
|
389
|
+
.transitions-enabled.infinite-scroll.masonry {
|
390
|
+
-webkit-transition-property: none;
|
391
|
+
-moz-transition-property: none;
|
392
|
+
-ms-transition-property: none;
|
393
|
+
-o-transition-property: none;
|
394
|
+
transition-property: none;
|
395
|
+
}
|
396
|
+
|
397
|
+
/**** Primer comparison ****/
|
398
|
+
|
399
|
+
#comparison {
|
400
|
+
overflow: auto;
|
401
|
+
}
|
402
|
+
|
403
|
+
#comparison .example {
|
404
|
+
width: 420px;
|
405
|
+
float: left;
|
406
|
+
margin-right: 20px;
|
407
|
+
}
|
408
|
+
|
409
|
+
#comparison .box h5 {
|
410
|
+
float: left;
|
411
|
+
margin-bottom: 0;
|
412
|
+
font-size: 30px;
|
413
|
+
margin-right: 4px;
|
414
|
+
line-height: 28px;
|
415
|
+
font-weight: bold;
|
416
|
+
color: #FFF;
|
417
|
+
}
|
418
|
+
|
419
|
+
/* Homepage */
|
420
|
+
|
421
|
+
.homepage .item {
|
422
|
+
width: 200px;
|
423
|
+
float: left;
|
424
|
+
padding: 10px;
|
425
|
+
margin: 10px;
|
426
|
+
background: #D8D5D2;
|
427
|
+
font-weight: 300;
|
428
|
+
-webkit-border-radius: 5px;
|
429
|
+
-moz-border-radius: 5px;
|
430
|
+
border-radius: 5px;
|
431
|
+
}
|
432
|
+
|
433
|
+
.homepage .big-text,
|
434
|
+
.homepage .link {
|
435
|
+
font-size: 24px;
|
436
|
+
line-height: 1.2em;
|
437
|
+
}
|
438
|
+
|
439
|
+
.homepage .link {
|
440
|
+
padding: 0;
|
441
|
+
}
|
442
|
+
|
443
|
+
.homepage .link a {
|
444
|
+
display: block;
|
445
|
+
padding: 10px;
|
446
|
+
width: 200px;
|
447
|
+
background: #D26;
|
448
|
+
color: white;
|
449
|
+
-webkit-border-radius: 5px;
|
450
|
+
-moz-border-radius: 5px;
|
451
|
+
border-radius: 5px;
|
452
|
+
}
|
453
|
+
|
454
|
+
.homepage .link a:hover {
|
455
|
+
background: #A2C;
|
456
|
+
}
|
457
|
+
|
458
|
+
.homepage .col2 {
|
459
|
+
width: 440px;
|
460
|
+
}
|
461
|
+
|
462
|
+
.homepage .example {
|
463
|
+
padding: 0;
|
464
|
+
width: 220px;
|
465
|
+
background: transparent;
|
466
|
+
}
|
467
|
+
|
468
|
+
.homepage .example a { display: block; }
|
469
|
+
|
470
|
+
.homepage .example img {
|
471
|
+
display: block;
|
472
|
+
width: 100%;
|
473
|
+
}
|
474
|
+
|
475
|
+
.homepage .example a:hover {
|
476
|
+
background: #D26;
|
477
|
+
color: white;
|
478
|
+
}
|
479
|
+
|
480
|
+
.homepage .loading {
|
481
|
+
background: black;
|
482
|
+
color: #D8D5D2;
|
483
|
+
}
|
484
|
+
|
485
|
+
.homepage .loading img {
|
486
|
+
float: left;
|
487
|
+
padding-right: 5px;
|
488
|
+
width: 54px;
|
489
|
+
}
|
490
|
+
|
491
|
+
/* mini example */
|
492
|
+
|
493
|
+
.homepage .mini div {
|
494
|
+
float: left;
|
495
|
+
background: white;
|
496
|
+
margin: 3px;
|
497
|
+
color: #D8D5D2;
|
498
|
+
font-weight: bold;
|
499
|
+
font-size: 32px;
|
500
|
+
line-height: 46px;
|
501
|
+
text-align: center;
|
502
|
+
-webkit-border-radius: 3px;
|
503
|
+
-moz-border-radius: 3px;
|
504
|
+
border-radius: 3px;
|
505
|
+
}
|
506
|
+
|
507
|
+
.homepage .mini .w1 { width: 44px; }
|
508
|
+
.homepage .mini .h1 { height: 44px; }
|
509
|
+
.homepage .mini .w2 { width: 94px; }
|
510
|
+
.homepage .mini .h2 { height: 94px; }
|
511
|
+
|
512
|
+
/* Tumblelog example */
|
513
|
+
|
514
|
+
#tumblelog {
|
515
|
+
background: #FFF;
|
516
|
+
padding: 1.0em;
|
517
|
+
}
|
518
|
+
|
519
|
+
#tumblelog .story {
|
520
|
+
margin: 10px;
|
521
|
+
border-top: 4px solid #DCB;
|
522
|
+
padding-top: 10px;
|
523
|
+
background: #FFF;
|
524
|
+
float: left;
|
525
|
+
}
|
526
|
+
|
527
|
+
#tumblelog h1, #tumblelog h2, #tumblelog h3 { font-weight: bold;}
|
528
|
+
|
529
|
+
#tumblelog .col1 { width: 220px; }
|
530
|
+
#tumblelog .col2 { width: 460px; }
|
531
|
+
#tumblelog .col3 { width: 700px; }
|
532
|
+
|
533
|
+
#tumblelog .col1 img,
|
534
|
+
#tumblelog .col2 img,
|
535
|
+
#tumblelog .col3 img {
|
536
|
+
max-width: none;
|
537
|
+
}
|
538
|
+
|
539
|
+
/* Infinite Scroll loader */
|
540
|
+
#infscr-loading {
|
541
|
+
text-align: center;
|
542
|
+
z-index: 100;
|
543
|
+
position: fixed;
|
544
|
+
left: 45%;
|
545
|
+
bottom: 40px;
|
546
|
+
width: 200px;
|
547
|
+
padding: 10px;
|
548
|
+
background: #000;
|
549
|
+
opacity: 0.8;
|
550
|
+
color: #FFF;
|
551
|
+
-webkit-border-radius: 10px;
|
552
|
+
-moz-border-radius: 10px;
|
553
|
+
border-radius: 10px;
|
554
|
+
}
|
555
|
+
|
556
|
+
/**** Fluid ****/
|
557
|
+
|
558
|
+
#container.fluid {
|
559
|
+
padding: 5px 0;
|
560
|
+
}
|
561
|
+
|
562
|
+
/* right margin value is 0.1% less than calculated,
|
563
|
+
to allow for rounding errors in Firefox */
|
564
|
+
.fluid .box {
|
565
|
+
margin: 5px 0.9% 5px 1%;
|
566
|
+
padding: 5px 1%;
|
567
|
+
}
|
568
|
+
|
569
|
+
.fluid .box.col1 { width: 16%; }
|
570
|
+
.fluid .box.col2 { width: 36%; }
|
571
|
+
.fluid .box.col3 { width: 56%; }
|
572
|
+
|
573
|
+
/**** Corner stamp ****/
|
574
|
+
|
575
|
+
.corner-stamp {
|
576
|
+
width: 280px;
|
577
|
+
height: 340px;
|
578
|
+
padding: 10px;
|
579
|
+
margin: 10px;
|
580
|
+
float: right;
|
581
|
+
background: red;
|
582
|
+
color: white;
|
583
|
+
-webkit-border-radius: 5px;
|
584
|
+
-moz-border-radius: 5px;
|
585
|
+
border-radius: 5px;
|
586
|
+
}
|
587
|
+
|
588
|
+
/**** Pygments ****/
|
589
|
+
|
590
|
+
code .s1,
|
591
|
+
code .s { color: #78BD55; } /* string */
|
592
|
+
code .mi, /* integer */
|
593
|
+
code .cp, /* doctype */
|
594
|
+
code .kc { color: #5298D4; } /*boolean*/
|
595
|
+
code .k { color: #E39B79; } /* keyword */
|
596
|
+
code .kd, /* storage */
|
597
|
+
code .na { color: #A9D866; } /* markup attribute */
|
598
|
+
code .p { color: #EDB; } /* punctuation */
|
599
|
+
code .o { color: #F63; } /* operator */
|
600
|
+
code .nb { color: #AA97AC;} /* support */
|
601
|
+
|
602
|
+
/* comment */
|
603
|
+
code .c,
|
604
|
+
code .c1 { color: #666; font-style: italic; }
|
605
|
+
|
606
|
+
code .nt { color: #A0C8FC; } /* Markup open tag */
|
607
|
+
|
608
|
+
code .nf { color: #9EA8B8; } /* css id */
|
609
|
+
code .nc { color: #A78352; } /* CSS class */
|
610
|
+
code .m { color: #DE8E50; } /* CSS value */
|
611
|
+
code .nd { color: #9FAD7E; } /* CSS pseudo selector */
|
612
|
+
|
613
|
+
/**** Clearfix ****/
|
614
|
+
.clearfix:before, .clearfix:after { content: ""; display: table; }
|
615
|
+
.clearfix:after { clear: both; }
|
616
|
+
.clearfix { zoom: 1; }
|