diff --git a/_config.yml b/_config.yml index 64ff301..854cbfc 100644 --- a/_config.yml +++ b/_config.yml @@ -1,2 +1,3 @@ name: jQuery Masonry Ordered permalink: /:title +pygments: true diff --git a/_layouts/default.html b/_layouts/default.html index 531d923..3fd0f95 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,6 +7,7 @@ {% if page.category != 'home' %}{{ page.title }} – {% endif %}{{ site.name }} + @@ -24,7 +25,7 @@

Masonry Ordered

-
+
{{ content }}
diff --git a/_posts/1970-01-01-introduction.md b/_posts/1970-01-01-introduction.md index 200691d..712df77 100644 --- a/_posts/1970-01-01-introduction.md +++ b/_posts/1970-01-01-introduction.md @@ -1,7 +1,37 @@ --- layout: default +class: docs --- #Introduction -[TODO] +In case you haven't, you should start by reading the [introduction to jQuery Masonry](http://masonry.desandro.com/docs/intro.html). The usage of jQuery Masonry Ordered is almost same, this page highlights the few differences. + +## Getting started -- markup + +The only difference is that after including jQuery and Masonry, you need to include Masonry Sorted: + +{% highlight html %} + + + +{% endhighlight %} + +## Repository / development + +The repository of jQuery Masonry Sorted is at [github.com/tasuk/masonry-ordered](http://github.com/tasuk/masonry-ordered). There you can find the newest version, submit bug reports, or help with development. + +## Thanks to: +- [David DeSandro](http://desandro.com/) for the amazing [jQuery Masonry](http://masonry.desandro.com/) +- [John Resig](http://ejohn.org/) for creating [jQuery](http://jquery.com/) + +## License +JQuery Masonry Sorted is provided under the MIT license: + +> Copyright © 2012 Vit 'tasuki' Brunner +> +> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +> +> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +> +> The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software. diff --git a/css/pygments.css b/css/pygments.css new file mode 100644 index 0000000..98f40da --- /dev/null +++ b/css/pygments.css @@ -0,0 +1,59 @@ +.hll { background-color: #49483e } +.c { color: #75715e } /* Comment */ +.err { color: #960050; background-color: #1e0010 } /* Error */ +.k { color: #66d9ef } /* Keyword */ +.l { color: #ae81ff } /* Literal */ +.n { color: #f8f8f2 } /* Name */ +.o { color: #f92672 } /* Operator */ +.p { color: #f8f8f2 } /* Punctuation */ +.cm { color: #75715e } /* Comment.Multiline */ +.cp { color: #75715e } /* Comment.Preproc */ +.c1 { color: #75715e } /* Comment.Single */ +.cs { color: #75715e } /* Comment.Special */ +.ge { font-style: italic } /* Generic.Emph */ +.gs { font-weight: bold } /* Generic.Strong */ +.kc { color: #66d9ef } /* Keyword.Constant */ +.kd { color: #66d9ef } /* Keyword.Declaration */ +.kn { color: #f92672 } /* Keyword.Namespace */ +.kp { color: #66d9ef } /* Keyword.Pseudo */ +.kr { color: #66d9ef } /* Keyword.Reserved */ +.kt { color: #66d9ef } /* Keyword.Type */ +.ld { color: #e6db74 } /* Literal.Date */ +.m { color: #ae81ff } /* Literal.Number */ +.s { color: #e6db74 } /* Literal.String */ +.na { color: #a6e22e } /* Name.Attribute */ +.nb { color: #f8f8f2 } /* Name.Builtin */ +.nc { color: #a6e22e } /* Name.Class */ +.no { color: #66d9ef } /* Name.Constant */ +.nd { color: #a6e22e } /* Name.Decorator */ +.ni { color: #f8f8f2 } /* Name.Entity */ +.ne { color: #a6e22e } /* Name.Exception */ +.nf { color: #a6e22e } /* Name.Function */ +.nl { color: #f8f8f2 } /* Name.Label */ +.nn { color: #f8f8f2 } /* Name.Namespace */ +.nx { color: #a6e22e } /* Name.Other */ +.py { color: #f8f8f2 } /* Name.Property */ +.nt { color: #f92672 } /* Name.Tag */ +.nv { color: #f8f8f2 } /* Name.Variable */ +.ow { color: #f92672 } /* Operator.Word */ +.w { color: #f8f8f2 } /* Text.Whitespace */ +.mf { color: #ae81ff } /* Literal.Number.Float */ +.mh { color: #ae81ff } /* Literal.Number.Hex */ +.mi { color: #ae81ff } /* Literal.Number.Integer */ +.mo { color: #ae81ff } /* Literal.Number.Oct */ +.sb { color: #e6db74 } /* Literal.String.Backtick */ +.sc { color: #e6db74 } /* Literal.String.Char */ +.sd { color: #e6db74 } /* Literal.String.Doc */ +.s2 { color: #e6db74 } /* Literal.String.Double */ +.se { color: #ae81ff } /* Literal.String.Escape */ +.sh { color: #e6db74 } /* Literal.String.Heredoc */ +.si { color: #e6db74 } /* Literal.String.Interpol */ +.sx { color: #e6db74 } /* Literal.String.Other */ +.sr { color: #e6db74 } /* Literal.String.Regex */ +.s1 { color: #e6db74 } /* Literal.String.Single */ +.ss { color: #e6db74 } /* Literal.String.Symbol */ +.bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */ +.vc { color: #f8f8f2 } /* Name.Variable.Class */ +.vg { color: #f8f8f2 } /* Name.Variable.Global */ +.vi { color: #f8f8f2 } /* Name.Variable.Instance */ +.il { color: #ae81ff } /* Literal.Number.Integer.Long */ diff --git a/css/style.css b/css/style.css index c0ce409..31fd1f8 100644 --- a/css/style.css +++ b/css/style.css @@ -2,18 +2,27 @@ .clear { clear: both; } body { background: #553; color: #FFD; font-family: Ubuntu, Helvetica, Arial, sans-serif; font-size: 16px; padding: 10px; } +a { color: #D17; } +a:hover { text-decoration: none; } -h1 { color: #199; font-size: 20px; margin-bottom: 5px; } +h1, #content.docs h2, #content.docs h3 { color: #199; margin-bottom: 10px; } +blockquote { border-left: 2px solid #553; font-size: 10px; padding: 0px 5px; } +p { margin: 5px 0px; } .left { float: left; } .right { float: right; } .padmore { padding: 10px; } #navigation { position: absolute; width: 180px; } +#navigation h1 { font-size: 20px; margin-top: 25px; } #navigation li { list-style-type: none; margin-top: 5px; } #navigation a { color: #FFD; text-decoration: none; } #navigation a:hover { text-decoration: underline; } #content { background: #FFD; border-radius: 5px; color: #553; padding: 10px; margin-left: 200px; } +#content.docs { max-width: 800px; padding: 20px; } +#content.docs h1 { font-size: 30px; letter-spacing: -1px; } +#content.docs h2 { font-size: 20px; margin: 15px 0px 5px 0px; } +#content.docs li { list-style-type: none; } .item { background: #199; color: #FFD; float: left; font-size: 20px; margin: 10px; padding: 10px; width: 200px; border-radius: 5px; } .item a { color: #FFD; } .item a:hover { text-decoration: none; } @@ -34,3 +43,5 @@ h1 { color: #199; font-size: 20px; margin-bottom: 5px; } #slider-explanation { margin-right: 330px; } #slider-wrap { float: right; margin: 10px; width: 300px; } #slider { font-size: 13px; } + +.highlight { background: #553; border-radius: 5px; color: #FFD; margin: 10px 0px; padding: 10px; }