# HG changeset patch # User Steve Losh # Date 1291159046 18000 # Node ID 5f05b296676badf96bb1648f93889066b9a82e9e # Parent 9d10c90cfa613493940152f2239de07011427d70 Start the Jilcrow rewrite. Move media folder. diff -r 9d10c90cfa61 -r 5f05b296676b files/media/css/aal.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/files/media/css/aal.css Tue Nov 30 18:17:26 2010 -0500 @@ -0,0 +1,115 @@ +/* + aardvark.legs originally by Anatoli Papirovski - http://fecklessmind.com/ + Licensed under the MIT license. http://www.opensource.org/licenses/mit-license.php +*/ + +/* + Reset first. Modified version of Eric Meyer and Paul Chaplin reset + from http://meyerweb.com/eric/tools/css/reset/ +*/ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +header, nav, section, article, aside, footer +{border: 0; margin: 0; outline: 0; padding: 0; background: transparent; vertical-align: baseline;} + +article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { + display:block; +} + +blockquote, q {quotes: none;} +blockquote:before,blockquote:after,q:before,q:after {content: ''; content: none;} + +header, nav, section, article, aside, footer {display: block;} + +/* Basic styles */ +html {overflow-y: scroll;} +body {background: #fdfdfd; color: #353535; font: normal 18px/25px Palatino, "Palatino Linotype", serif; text-rendering: optimizeLegibility;} +html>body {font-size: 18px; line-height: 25px;} + +img {display: inline-block; vertical-align: bottom;} + +h1,h2,h3,h4,h5,h6,strong,b,dt,th {font-weight: 700;} +address,cite,em,i,caption,dfn,var {font-style: italic;} + +h1 { font-size: 45px; line-height: 50px; margin: 25px 0; } +h2 { font-size: 32px; line-height: 50px; margin: 25px 0; } +h3 { font-size: 23px; line-height: 25px; margin: 25px 0; } +h4 {margin: 0 0 22px; font-size: 16px; line-height: 22px;} +h5 {margin: 0 0 22px; font-size: 14px; line-height: 22px;} +h6 {margin: 0 0 22px; font-size: 12px; line-height: 22px;} + +p,ul,ol,dl,blockquote,pre {margin: 0 0 25px;} + +li ul,li ol {margin: 0;} +ul {list-style: outside disc;} +ol {list-style: outside decimal;} +li {margin: 0 0 0 44px;} +dd {padding-left: 25px;} +blockquote {padding: 0 25px;} + +a {text-decoration: underline;} +a:hover {text-decoration: none;} +abbr,acronym {border-bottom: 1px dotted; cursor: help;} +del {text-decoration: line-through;} +ins {text-decoration: overline;} +sub {font-size: 14px; line-height: 25px; vertical-align: sub;} +sup {font-size: 14px; line-height: 25px; vertical-align: super;} + +tt,code,kbd,samp,pre {font-size: 14px; line-height: 25px; font-family: Menlo, Monaco, Consolas, "Courier New", monospace;} + +/* Table styles */ +/* TODO */ +table {border-collapse: collapse; border-spacing: 0; margin: 0 0 1.5em;} +caption {text-align: left;} +th, td {padding: .25em .5em;} +tbody td, tbody th {border: 1px solid #222;} +tfoot {font-style: italic;} + +/* Form styles */ +/* TODO */ +fieldset {clear: both;} +legend {padding: 0 0 1.286em; font-size: 1.167em; font-weight: 700;} +fieldset fieldset legend {padding: 0 0 1.5em; font-size: 1em;} +* html legend {margin-left: -7px;} +*+html legend {margin-left: -7px;} + +form .field, form .buttons {clear: both; margin: 0 0 1.5em;} +form .field label {display: block;} +form ul.fields li {list-style-type: none; margin: 0;} +form ul.inline li, form ul.inline label {display: inline;} +form ul.inline li {padding: 0 .75em 0 0;} + +input.radio, input.checkbox {vertical-align: top;} +label, button, input.submit, input.image {cursor: pointer;} +* html input.radio, * html input.checkbox {vertical-align: middle;} +*+html input.radio, *+html input.checkbox {vertical-align: middle;} + +textarea {overflow: auto;} +input.text, input.password, textarea, select {margin: 0; font: 1em/1.3 Helvetica, Arial, "Liberation Sans", "Bitstream Vera Sans", sans-serif; vertical-align: baseline;} +input.text, input.password, textarea {border: 1px solid #444; border-bottom-color: #666; border-right-color: #666; padding: 2px;} + +* html button {margin: 0 .34em 0 0;} +*+html button {margin: 0 .34em 0 0;} + +form.horizontal .field {padding-left: 150px;} +form.horizontal .field label {display: inline; float: left; width: 140px; margin-left: -150px;} + +/* Useful classes */ +/* TODO */ +img.left {display: inline; float: left; margin: 0 1.5em .75em 0;} +img.right {display: inline; float: right; margin: 0 0 .75em .75em;} +.group:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} + diff -r 9d10c90cfa61 -r 5f05b296676b files/media/css/colorbox.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/files/media/css/colorbox.css Tue Nov 30 18:17:26 2010 -0500 @@ -0,0 +1,50 @@ +/* + ColorBox Core Style + The following rules are the styles that are consistant between themes. + Avoid changing this area to maintain compatability with future versions of ColorBox. +*/ +#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;} +#cboxOverlay{position:fixed; width:100%; height:100%;} +#cboxMiddleLeft, #cboxBottomLeft{clear:left;} +#cboxContent{position:relative; overflow:visible;} +#cboxLoadedContent{overflow:auto;} +#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;} +#cboxTitle{margin:0;} +#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;} +#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} + +/* + ColorBox example user style + The following rules are ordered and tabbed in a way that represents the + order/nesting of the generated HTML, so that the structure easier to understand. +*/ +#cboxOverlay{background:#000;} + +#colorbox{} + #cboxTopLeft{width:14px; height:14px; background:url(/media/images/colorbox/controls.png) 0 0 no-repeat;} + #cboxTopCenter{height:14px; background:url(/media/images/colorbox/border.png) top left repeat-x;} + #cboxTopRight{width:14px; height:14px; background:url(/media/images/colorbox/controls.png) -36px 0 no-repeat;} + #cboxBottomLeft{width:14px; height:43px; background:url(/media/images/colorbox/controls.png) 0 -32px no-repeat;} + #cboxBottomCenter{height:43px; background:url(/media/images/colorbox/border.png) bottom left repeat-x;} + #cboxBottomRight{width:14px; height:43px; background:url(/media/images/colorbox/controls.png) -36px -32px no-repeat;} + #cboxMiddleLeft{width:14px; background:url(/media/images/colorbox/controls.png) -175px 0 repeat-y;} + #cboxMiddleRight{width:14px; background:url(/media/images/colorbox/controls.png) -211px 0 repeat-y;} + #cboxContent{background:#fff;} + #cboxLoadedContent{margin-bottom:5px;} + #cboxLoadingOverlay{background:url(/media/images/colorbox/loading_background.png) center center no-repeat;} + #cboxLoadingGraphic{background:url(/media/images/colorbox/loading.gif) center center no-repeat;} + #cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;} + #cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;} + + #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(/media/images/colorbox/controls.png) 0px 0px no-repeat; width:23px; height:23px; text-indent:-9999px;} + #cboxPrevious{left:0px; background-position: -51px -25px;} + #cboxPrevious.hover{background-position:-51px 0px;} + #cboxNext{left:27px; background-position:-75px -25px;} + #cboxNext.hover{background-position:-75px 0px;} + #cboxClose{right:0; background-position:-100px -25px;} + #cboxClose.hover{background-position:-100px 0px;} + + .cboxSlideshow_on #cboxSlideshow{background-position:-125px 0px; right:27px;} + .cboxSlideshow_on #cboxSlideshow.hover{background-position:-150px 0px;} + .cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;} + .cboxSlideshow_off #cboxSlideshow.hover{background-position:-125px 0px;} \ No newline at end of file diff -r 9d10c90cfa61 -r 5f05b296676b files/media/css/print.less --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/files/media/css/print.less Tue Nov 30 18:17:26 2010 -0500 @@ -0,0 +1,71 @@ +body { + font: normal 10pt/1.25 Palatino, "Palatino Linotype"; + text-rendering: optimizeLegibility; +} + +nav, header, .toc { + display: none; +} +#leaf-title { + a { + text-decoration: none; + color: black; + } +} +#leaf-content { + ul.print-links { + display: block; + font-size: 1em; + list-style-type: none; + margin-left: 0em; + + a { + text-decoration: none; + } + } + code, pre { + font: normal 9pt Menlo, Monaco, Consolas, "Courier New", Courier, monospace; + } + img { + display: block; + margin-left: auto; + margin-right: auto; + border: 1.43em solid #e5e5e5; + padding: 1px; + background: black; + } + img.left, img.right { + border: none; + background: none; + padding: none; + } + img.left { + margin: 0 1.5em 1em 0; + float: left; + } + img.right { + margin: 0 0 .75em 1em; + float: right; + } +} +div#leaf-content.with-diagrams img { + display: block; + margin-left: auto; + margin-right: auto; + background: none; + border: none; +} +span.amp { + font-family: "Palatino", "Constantia", "Palatino Linotype", serif; + font-style: italic; +} +.flattr { + display: none; +} +a { + text-decoration: underline; + color: #c06; +} +footer { + display: none; +} diff -r 9d10c90cfa61 -r 5f05b296676b files/media/css/pygments-monokai-light.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/files/media/css/pygments-monokai-light.css Tue Nov 30 18:17:26 2010 -0500 @@ -0,0 +1,60 @@ +/* @override http://localhost:8080/media/css/pygments-monokai-light.css */ +.codehilite .hll { background-color: #49483e } +.codehilite .c { color: #75715e } /* Comment */ +.codehilite .err { color: #960050; background-color: #1e0010 } /* Error */ +.codehilite .k { color: #00a8c8} /* Keyword */ +.codehilite .l { color: #ae81ff } /* Literal */ +.codehilite .n { color: #111111 } /* Name */ +.codehilite .o { color: #f92672 } /* Operator */ +.codehilite .p { color: #111111 } /* Punctuation */ +.codehilite .cm { color: #75715e } /* Comment.Multiline */ +.codehilite .cp { color: #75715e } /* Comment.Preproc */ +.codehilite .c1 { color: #75715e } /* Comment.Single */ +.codehilite .cs { color: #75715e } /* Comment.Special */ +.codehilite .ge { font-style: italic } /* Generic.Emph */ +.codehilite .gs { font-weight: bold } /* Generic.Strong */ +.codehilite .kc { color: #00a8c8 } /* Keyword.Constant */ +.codehilite .kd { color: #00a8c8 } /* Keyword.Declaration */ +.codehilite .kn { color: #f92672 } /* Keyword.Namespace */ +.codehilite .kp { color: #00a8c8 } /* Keyword.Pseudo */ +.codehilite .kr { color: #00a8c8 } /* Keyword.Reserved */ +.codehilite .kt { color: #00a8c8 } /* Keyword.Type */ +.codehilite .ld { color: #d88200 } /* Literal.Date */ +.codehilite .m { color: #ae81ff } /* Literal.Number */ +.codehilite .s { color: #d88200} /* Literal.String */ +.codehilite .na { color: #75af00 } /* Name.Attribute */ +.codehilite .nb { color: #111111 } /* Name.Builtin */ +.codehilite .nc { color: #75af00 } /* Name.Class */ +.codehilite .no { color: #00a8c8 } /* Name.Constant */ +.codehilite .nd { color: #75af00 } /* Name.Decorator */ +.codehilite .ni { color: #111111 } /* Name.Entity */ +.codehilite .ne { color: #75af00 } /* Name.Exception */ +.codehilite .nf { color: #75af00} /* Name.Function */ +.codehilite .nl { color: #111111 } /* Name.Label */ +.codehilite .nn { color: #111111} /* Name.Namespace */ +.codehilite .nx { color: #75af00 } /* Name.Other */ +.codehilite .py { color: #111111 } /* Name.Property */ +.codehilite .nt { color: #f92672 } /* Name.Tag */ +.codehilite .nv { color: #111111 } /* Name.Variable */ +.codehilite .ow { color: #f92672 } /* Operator.Word */ +.codehilite .w { color: #111111 } /* Text.Whitespace */ +.codehilite .mf { color: #ae81ff } /* Literal.Number.Float */ +.codehilite .mh { color: #ae81ff } /* Literal.Number.Hex */ +.codehilite .mi { color: #ae81ff } /* Literal.Number.Integer */ +.codehilite .mo { color: #ae81ff } /* Literal.Number.Oct */ +.codehilite .sb { color: #d88200 } /* Literal.String.Backtick */ +.codehilite .sc { color: #d88200 } /* Literal.String.Char */ +.codehilite .sd { color: #d88200 } /* Literal.String.Doc */ +.codehilite .s2 { color: #d88200 } /* Literal.String.Double */ +.codehilite .se { color: #8045FF } /* Literal.String.Escape */ +.codehilite .sh { color: #d88200 } /* Literal.String.Heredoc */ +.codehilite .si { color: #d88200 } /* Literal.String.Interpol */ +.codehilite .sx { color: #d88200 } /* Literal.String.Other */ +.codehilite .sr { color: #d88200 } /* Literal.String.Regex */ +.codehilite .s1 { color: #d88200 } /* Literal.String.Single */ +.codehilite .ss { color: #d88200 } /* Literal.String.Symbol */ +.codehilite .bp { color: #111111 } /* Name.Builtin.Pseudo */ +.codehilite .vc { color: #111111 } /* Name.Variable.Class */ +.codehilite .vg { color: #111111 } /* Name.Variable.Global */ +.codehilite .vi { color: #111111 } /* Name.Variable.Instance */ +.codehilite .il { color: #ae81ff } /* Literal.Number.Integer.Long */ \ No newline at end of file diff -r 9d10c90cfa61 -r 5f05b296676b files/media/css/sjl.less --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/files/media/css/sjl.less Tue Nov 30 18:17:26 2010 -0500 @@ -0,0 +1,312 @@ +@c-link: #e50053; +@c-body: #222; +@w-body: 612px; +@font-fancy: 'OFL Sorts Mill Goudy', 'OFL Sorts Mill Goudy TT', serif; + +html { + overflow-y: scroll; +} +body { + text-rendering: optimizeLegibility; + color: @c-body; + position: relative; + + &.rhythm { + background: transparent url("/media/images/rhythm.png") top left; + } + + a { + text-decoration: none; + color: @c-link; + + &:hover { + text-decoration: underline; + } + } + h1, h2, h3, h4, h5, h6 { + font-family: @font-fancy; + font-weight: normal; + + a { + color: @c-body; + + &:hover { + color: @c-link; + text-decoration: none; + } + } + .amp { + font-style: italic; + } + } + h1 { font-size: 45px; line-height: 50px; margin: 25px 0; } // 3 + h2 { font-size: 32px; line-height: 50px; margin: 25px 0; } // m7 + h3 { font-size: 23px; line-height: 25px; margin: 25px 0; } // 3 + h4 { font-size: 18px; line-height: 25px; margin: 25px 0; } // r + code, pre { + font-family: Consolas, Menlo, "Courier New", monospace; + font-size: 14px; + } + .codehilite { + code, pre { + font-family: Consolas, Menlo, "Courier New", monospace; + font-size: 16px; + line-height: 25px; + + overflow-x: auto; + + border: 1px solid #d5d5d5; + border-left: 10px solid #d5d5d5; + background-color: #fafafa; + + padding: 11px 15px 12px; + margin-left: -25px; + } + pre::-webkit-scrollbar { + height: 25px; + } + pre::-webkit-scrollbar-button:start, + pre::-webkit-scrollbar-button:end { + display: none; + } + pre::-webkit-scrollbar-track-piece { + background-color: #eee; + } + pre::-webkit-scrollbar-thumb { + background-color: #bbb; + border: 7px solid #eee; + -webkit-background-clip: padding-box; + -webkit-border-radius: 12px; + } + } + p code, li code { + border: 1px solid #ccc; + background-color: #fafafa; + font-size: 13px; + padding: 1px 3px; + line-height: 20px; + margin: 0; + white-space: nowrap; + } + + .wrap { + width: @w-body; + margin: 0 auto; + margin-bottom: 5em; + + .top { + header { + float: left; + font-family: @font-fancy; + font-size: 23px; // 3 + line-height: 50px; + text-transform: lowercase; + padding-left: 2px; + width: 612px - 2px - 400px; + + .amp { + font-style: italic; + } + a { + color: @c-body; + + &:hover { + color: @c-link; + } + } + } + nav { + font: normal 18px/50px @font-fancy; // 1 + text-align: right; + text-transform: lowercase; + padding-right: 2px; + width: 400px - 2px; + float: left; + + .sep { + padding: 0 4px; + color: #666; + } + } + } + .hr { + margin-top: -12px; + margin-bottom: 12px + 25px; + height: 25px; + background: transparent url('/media/images/hr.png') top left no-repeat; + } + .hrb { + height: 25px; + margin-top: 50px; + background: transparent url('/media/images/hrb.png') top left no-repeat; + } + footer { + font-size: 14px; + font-style: italic; + line-height: 50px; + text-align: center; + } + } +} +.splash { + color: #454545; + text-align: center; + font: normal 45px/50px @font-fancy; + margin-bottom: -1px; + padding-top: 25px; + + p { + margin-bottom: 50px; + } + .amp { + font-style: italic; + } +} +.section-listing { + margin-bottom: -50px; + ol { + list-style-type: none; + + @w-listing-item: 612px/2; + @w-listing-col-padding: 50px; + + li { + float: left; + width: @w-listing-item - (@w-listing-col-padding / 2); + height: 150px; + margin: 0; + text-align: center; + + a { + font: normal 23px/32px @font-fancy; // 3 + color: @c-body; + display: block; + + &:hover { + color: @c-link; + text-decoration: none; + } + } + + span.snip { + font-size: 18px; // 1 + color: #333; + font-family: @font-fancy; + line-height: 25px; + font-style: italic; + } + .amp { + font-style: italic; + } + + &:nth-child(odd) { + margin-right: @w-listing-col-padding / 2; + } + &:nth-child(even) { + margin-left: @w-listing-col-padding / 2; + } + } + } +} + +blockquote { + border: 1px solid #ccc; + background-color: #fafafa; + padding: 11px 15px 12px; + margin-left: 2em; + overflow: auto; + + p:last-child { + margin-bottom: 0; + } +} +span.dquo { + margin-left: -0.23em; +} + +#leaf-stats p { + color: #666; + margin-top: -22px; + margin-bottom: 22px; +} +#leaf-content { + img { + display: block; + margin: 25px auto 26px; + border: 11px solid #e5e5e5; + padding: 1px; + background: black; + } + img.left, img.right { + border: none; + background: none; + padding: none; + } + img.left { + margin: 0 1.5em 1em 0; + } + img.right { + margin: 0 0 .75em 1em; + } + .gallery img { + background: none; + padding: 0; + border: none; + display: inline; + margin-bottom: 25px; + margin-right: 25px; + } + .toc { + ul { + list-style: none; + } + + ul:first-child>li { + margin-left: 0em; + } + } +} +#leaf-content.with-diagrams img { + display: block; + margin: 25px auto; + padding: 0; + background: none; + border: none; +} + +.print-links { + display: none; +} +img.self { + border: none; + padding: 0; + margin: 0; + margin-right: -108px; + margin-top: -15px; + margin-left: 30px; + margin-bottom: 20px; +} + +div#cboxCurrent { + bottom: -30px; + font-size: 17px; + font-weight: normal; + left: 60px; +} + +#scrolling-header { + color: #999; + font-size: 23px; + font-style: italic; + font: italic 23px @font-fancy; + line-height: 30px; + position: fixed; + top: 75px; + text-align: right; + width: 180px; +} + +.flattr { + float: right; + padding-top: 1px; +} diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/02/dj-playlist-sorting.png Binary file files/media/images/blog/2009/02/dj-playlist-sorting.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/02/dj-playlist-unrated.png Binary file files/media/images/blog/2009/02/dj-playlist-unrated.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/03/prompt-with-branch.png Binary file files/media/images/blog/2009/03/prompt-with-branch.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/03/prompt-with-dirty.png Binary file files/media/images/blog/2009/03/prompt-with-dirty.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/03/prompt-without-branch.png Binary file files/media/images/blog/2009/03/prompt-without-branch.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/03/terminal-colors.png Binary file files/media/images/blog/2009/03/terminal-colors.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/08/branch-anon.png Binary file files/media/images/blog/2009/08/branch-anon.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/08/branch-base.png Binary file files/media/images/blog/2009/08/branch-base.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/08/branch-bookmark.png Binary file files/media/images/blog/2009/08/branch-bookmark.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/08/branch-clone.png Binary file files/media/images/blog/2009/08/branch-clone.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2009/08/branch-named.png Binary file files/media/images/blog/2009/08/branch-named.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/01/mercurial-vs-git.jpg Binary file files/media/images/blog/2010/01/mercurial-vs-git.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/02/hg-branching-1-after-merge.png Binary file files/media/images/blog/2010/02/hg-branching-1-after-merge.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/02/hg-branching-1-needs-merge.png Binary file files/media/images/blog/2010/02/hg-branching-1-needs-merge.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/02/hg-branching-1-other.png Binary file files/media/images/blog/2010/02/hg-branching-1-other.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/02/hg-branching-1-start.png Binary file files/media/images/blog/2010/02/hg-branching-1-start.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/02/zsh-prompt-comments.png Binary file files/media/images/blog/2010/02/zsh-prompt-comments.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/02/zsh-prompt.png Binary file files/media/images/blog/2010/02/zsh-prompt.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/05/default-stable-example.png Binary file files/media/images/blog/2010/05/default-stable-example.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/06/translation-branches.png Binary file files/media/images/blog/2010/06/translation-branches.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/08/git-basics.png Binary file files/media/images/blog/2010/08/git-basics.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/08/mercurial-basics.png Binary file files/media/images/blog/2010/08/mercurial-basics.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/08/mq-multiple.png Binary file files/media/images/blog/2010/08/mq-multiple.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/08/mq-one.png Binary file files/media/images/blog/2010/08/mq-one.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/08/mq-two.png Binary file files/media/images/blog/2010/08/mq-two.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/08/mq-versioned.png Binary file files/media/images/blog/2010/08/mq-versioned.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/09/rainbow.png Binary file files/media/images/blog/2010/09/rainbow.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/blog/2010/09/vim.png Binary file files/media/images/blog/2010/09/vim.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/colorbox/border.png Binary file files/media/images/colorbox/border.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/colorbox/controls.png Binary file files/media/images/colorbox/controls.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/colorbox/loading.gif Binary file files/media/images/colorbox/loading.gif has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/colorbox/loading_background.png Binary file files/media/images/colorbox/loading_background.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/hr.png Binary file files/media/images/hr.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/hrb.png Binary file files/media/images/hrb.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/fuego/Fuego-4852.jpg Binary file files/media/images/projects/fuego/Fuego-4852.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/fuego/Fuego-4887.jpg Binary file files/media/images/projects/fuego/Fuego-4887.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/fuego/Fuego-4919.jpg Binary file files/media/images/projects/fuego/Fuego-4919.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/fuego/Fuego-4941.jpg Binary file files/media/images/projects/fuego/Fuego-4941.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/fuego/Fuego-4985.jpg Binary file files/media/images/projects/fuego/Fuego-4985.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/fuego/Fuego-5133.jpg Binary file files/media/images/projects/fuego/Fuego-5133.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/hg-prompt/prompt.png Binary file files/media/images/projects/hg-prompt/prompt.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/lindyjam-com/lindyjamcom-splash.png Binary file files/media/images/projects/lindyjam-com/lindyjamcom-splash.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/alex-tele.jpg Binary file files/media/images/projects/women-in-water/alex-tele.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/alex-wide.jpg Binary file files/media/images/projects/women-in-water/alex-wide.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/anna-tele.jpg Binary file files/media/images/projects/women-in-water/anna-tele.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/anna-wide.jpg Binary file files/media/images/projects/women-in-water/anna-wide.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/erin-tele.jpg Binary file files/media/images/projects/women-in-water/erin-tele.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/erin-wide.jpg Binary file files/media/images/projects/women-in-water/erin-wide.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/leah-tele.jpg Binary file files/media/images/projects/women-in-water/leah-tele.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/leah-wide.jpg Binary file files/media/images/projects/women-in-water/leah-wide.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/lizza-tele.jpg Binary file files/media/images/projects/women-in-water/lizza-tele.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/projects/women-in-water/lizza-wide.jpg Binary file files/media/images/projects/women-in-water/lizza-wide.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/rhythm.png Binary file files/media/images/rhythm.png has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/images/self.jpg Binary file files/media/images/self.jpg has changed diff -r 9d10c90cfa61 -r 5f05b296676b files/media/js/jquery.colorbox.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/files/media/js/jquery.colorbox.js Tue Nov 30 18:17:26 2010 -0500 @@ -0,0 +1,752 @@ +// ColorBox v1.3.5 - a full featured, light-weight, customizable lightbox based on jQuery 1.3 +// c) 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com +// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php + +(function ($) { + // Shortcuts (to increase compression) + var colorbox = 'colorbox', + hover = 'hover', + TRUE = true, + FALSE = false, + cboxPublic, + isIE = !$.support.opacity, + isIE6 = isIE && !window.XMLHttpRequest, + + // Event Strings (to increase compression) + cbox_open = 'cbox_open', + cbox_load = 'cbox_load', + cbox_complete = 'cbox_complete', + cbox_cleanup = 'cbox_cleanup', + cbox_closed = 'cbox_closed', + cbox_resize = 'resize.cbox_resize', + + // Cached jQuery Object Variables + $overlay, + $cbox, + $wrap, + $content, + $topBorder, + $leftBorder, + $rightBorder, + $bottomBorder, + $related, + $window, + $loaded, + $loadingBay, + $loadingOverlay, + $loadingGraphic, + $title, + $current, + $slideshow, + $next, + $prev, + $close, + + // Variables for cached values or use across multiple functions + interfaceHeight, + interfaceWidth, + loadedHeight, + loadedWidth, + element, + bookmark, + index, + settings, + open, + active, + + // ColorBox Default Settings. + // See http://colorpowered.com/colorbox for details. + defaults = { + transition: "elastic", + speed: 350, + width: FALSE, + height: FALSE, + innerWidth: FALSE, + innerHeight: FALSE, + initialWidth: "400", + initialHeight: "400", + maxWidth: FALSE, + maxHeight: FALSE, + scalePhotos: TRUE, + scrolling: TRUE, + inline: FALSE, + html: FALSE, + iframe: FALSE, + photo: FALSE, + href: FALSE, + title: FALSE, + rel: FALSE, + opacity: 0.9, + preloading: TRUE, + current: "image {current} of {total}", + previous: "previous", + next: "next", + close: "close", + open: FALSE, + overlayClose: TRUE, + + slideshow: FALSE, + slideshowAuto: TRUE, + slideshowSpeed: 2500, + slideshowStart: "start slideshow", + slideshowStop: "stop slideshow", + + onOpen: FALSE, + onLoad: FALSE, + onComplete: FALSE, + onCleanup: FALSE, + onClosed: FALSE + }; + + // **************** + // HELPER FUNCTIONS + // **************** + + // Convert % values to pixels + function setSize(size, dimension) { + dimension = dimension === 'x' ? $window.width() : $window.height();//document.documentElement.clientWidth : document.documentElement.clientHeight; + return (typeof size === 'string') ? Math.round((size.match(/%/) ? (dimension / 100) * parseInt(size, 10) : parseInt(size, 10))) : size; + } + + // Checks an href to see if it is a photo. + // There is a force photo option (photo: true) for hrefs that cannot be matched by this regex. + function isImage(url) { + url = $.isFunction(url) ? url.call(element) : url; + return settings.photo || url.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i); + } + + // Assigns functions results to their respective settings. This allows functions to be used to set ColorBox options. + function process() { + for (var i in settings) { + if ($.isFunction(settings[i]) && i.substring(0, 2) !== 'on') { // checks to make sure the function isn't one of the callbacks, they will be handled at the appropriate time. + settings[i] = settings[i].call(element); + } + } + } + + function launch(elem) { + + element = elem; + + settings = $(element).data(colorbox); + + process(); // Convert functions to their returned values. + + var rel = settings.rel || element.rel; + + if (rel && rel !== 'nofollow') { + $related = $('.cboxElement').filter(function () { + var relRelated = $(this).data(colorbox).rel || this.rel; + return (relRelated === rel); + }); + index = $related.index(element); + + // Check direct calls to ColorBox. + if (index < 0) { + $related = $related.add(element); + index = $related.length - 1; + } + } else { + $related = $(element); + index = 0; + } + + if (!open) { + open = TRUE; + + active = TRUE; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys. + + bookmark = element; + + bookmark.blur(); // Remove the focus from the calling element. + + // Set Navigation Key Bindings + $().bind("keydown.cbox_close", function (e) { + if (e.keyCode === 27) { + e.preventDefault(); + cboxPublic.close(); + } + }).bind("keydown.cbox_arrows", function (e) { + if ($related.length > 1) { + if (e.keyCode === 37) { + e.preventDefault(); + $prev.click(); + } else if (e.keyCode === 39) { + e.preventDefault(); + $next.click(); + } + } + }); + + if (settings.overlayClose) { + $overlay.css({"cursor": "pointer"}).one('click', cboxPublic.close); + } + + $.event.trigger(cbox_open); + if (settings.onOpen) { + settings.onOpen.call(element); + } + + $overlay.css({"opacity": settings.opacity}).show(); + + // Opens inital empty ColorBox prior to content being loaded. + settings.w = setSize(settings.initialWidth, 'x'); + settings.h = setSize(settings.initialHeight, 'y'); + cboxPublic.position(0); + + if (isIE6) { + $window.bind('resize.cboxie6 scroll.cboxie6', function () { + $overlay.css({width: $window.width(), height: $window.height(), top: $window.scrollTop(), left: $window.scrollLeft()}); + }).trigger("scroll.cboxie6"); + } + } + + $current.add($prev).add($next).add($slideshow).add($title).hide(); + + $close.html(settings.close).show(); + + cboxPublic.slideshow(); + + cboxPublic.load(); + } + + // **************** + // PUBLIC FUNCTIONS + // Usage format: $.fn.colorbox.close(); + // Usage from within an iframe: parent.$.fn.colorbox.close(); + // **************** + + cboxPublic = $.fn.colorbox = function (options, callback) { + var $this = this; + + if (!$this.length) { + if ($this.selector === '') { // empty selector means a direct call, ie: $.fn.colorbox(); + $this = $($this); + options.open = TRUE; + } else { // else the selector didn't match anything, and colorbox should go ahead and return. + return this; + } + } + + $this.each(function () { + var data = $.extend({}, $(this).data(colorbox) ? $(this).data(colorbox) : defaults, options); + + $(this).data(colorbox, data).addClass("cboxElement"); + + if (callback) { + $(this).data(colorbox).onComplete = callback; + } + }); + + if (options && options.open) { + launch($this); + } + + return this; + }; + + // Initialize ColorBox: store common calculations, preload the interface graphics, append the html. + // This preps colorbox for a speedy open when clicked, and lightens the burdon on the browser by only + // having to run once, instead of each time colorbox is opened. + cboxPublic.init = function () { + + // jQuery object generator to save a bit of space + function $div(id) { + return $('
'); + } + + // Create & Append jQuery Objects + $window = $(window); + $cbox = $('
'); + $overlay = $div("Overlay").hide(); + $wrap = $div("Wrapper"); + $content = $div("Content").append( + $loaded = $div("LoadedContent").css({width: 0, height: 0}), + $loadingOverlay = $div("LoadingOverlay"), + $loadingGraphic = $div("LoadingGraphic"), + $title = $div("Title"), + $current = $div("Current"), + $slideshow = $div("Slideshow"), + $next = $div("Next"), + $prev = $div("Previous"), + $close = $div("Close") + ); + $wrap.append( // The 3x3 Grid that makes up ColorBox + $('
').append( + $div("TopLeft"), + $topBorder = $div("TopCenter"), + $div("TopRight") + ), + $('
').append( + $leftBorder = $div("MiddleLeft"), + $content, + $rightBorder = $div("MiddleRight") + ), + $('
').append( + $div("BottomLeft"), + $bottomBorder = $div("BottomCenter"), + $div("BottomRight") + ) + ).children().children().css({'float': 'left'}); + + $loadingBay = $("
"); + + $('body').prepend($overlay, $cbox.append($wrap, $loadingBay)); + + if (isIE) { + $cbox.addClass('cboxIE'); + if (isIE6) { + $overlay.css('position', 'absolute'); + } + } + + // Add rollover event to navigation elements + $content.children() + .addClass(hover) + .mouseover(function () { $(this).addClass(hover); }) + .mouseout(function () { $(this).removeClass(hover); }); + + // Cache values needed for size calculations + interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(TRUE) - $content.height();//Subtraction needed for IE6 + interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(TRUE) - $content.width(); + loadedHeight = $loaded.outerHeight(TRUE); + loadedWidth = $loaded.outerWidth(TRUE); + + // Setting padding to remove the need to do size conversions during the animation step. + $cbox.css({"padding-bottom": interfaceHeight, "padding-right": interfaceWidth}).hide(); + + // Setup button & key events. + $next.click(cboxPublic.next); + $prev.click(cboxPublic.prev); + $close.click(cboxPublic.close); + + // Adding the 'hover' class allowed the browser to load the hover-state + // background graphics. The class can now can be removed. + $content.children().removeClass(hover); + + $('.cboxElement').live('click', function (e) { + if (e.button !== 0 && typeof e.button !== 'undefined') {// checks to see if it was a non-left mouse-click. + return TRUE; + } else { + launch(this); + return FALSE; + } + }); + }; + + cboxPublic.position = function (speed, loadedCallback) { + var + animate_speed, + winHeight = $window.height(), + // keeps the top and left positions within the browser's viewport. + posTop = Math.max(winHeight - settings.h - loadedHeight - interfaceHeight,0)/2 + $window.scrollTop(), + posLeft = Math.max(document.documentElement.clientWidth - settings.w - loadedWidth - interfaceWidth,0)/2 + $window.scrollLeft(); + + // setting the speed to 0 to reduce the delay between same-sized content. + animate_speed = ($cbox.width() === settings.w+loadedWidth && $cbox.height() === settings.h+loadedHeight) ? 0 : speed; + + // this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly, + // but it has to be shrank down around the size of div#colorbox when it's done. If not, + // it can invoke an obscure IE bug when using iframes. + $wrap[0].style.width = $wrap[0].style.height = "9999px"; + + function modalDimensions (that) { + // loading overlay size has to be sure that IE6 uses the correct height. + $topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = that.style.width; + $loadingGraphic[0].style.height = $loadingOverlay[0].style.height = $content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = that.style.height; + } + + $cbox.dequeue().animate({width:settings.w+loadedWidth, height:settings.h+loadedHeight, top:posTop, left:posLeft}, {duration: animate_speed, + complete: function(){ + modalDimensions(this); + + active = FALSE; + + // shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation. + $wrap[0].style.width = (settings.w+loadedWidth+interfaceWidth) + "px"; + $wrap[0].style.height = (settings.h+loadedHeight+interfaceHeight) + "px"; + + if (loadedCallback) {loadedCallback();} + }, + step: function(){ + modalDimensions(this); + } + }); + }; + + cboxPublic.resize = function (object) { + if(!open){ return; } + + var topMargin, + prev, + prevSrc, + next, + nextSrc, + photo, + timeout, + speed = settings.transition==="none" ? 0 : settings.speed; + + $window.unbind(cbox_resize); + + if(!object){ + timeout = setTimeout(function(){ // timer allows IE to render the dimensions before attempting to calculate the height + var $child = $loaded.wrapInner("
").children(); // temporary wrapper to get an accurate estimate of just how high the total content should be. + settings.h = $child.height(); + $loaded.css({height:settings.h}); + $child.replaceWith($child.children()); // ditch the temporary wrapper div used in height calculation + cboxPublic.position(speed); + }, 1); + return; + } + + $loaded.remove(); + $loaded = $('
').html(object); + + function getWidth(){ + settings.w = settings.w || $loaded.width(); + settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w; + return settings.w; + } + function getHeight(){ + settings.h = settings.h || $loaded.height(); + settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h; + return settings.h; + } + + $loaded.hide() + .appendTo($loadingBay)// content has to be appended to the DOM for accurate size calculations. Appended to an absolutely positioned element, rather than BODY, which avoids an extremely brief display of the vertical scrollbar in Firefox that can occur for a small minority of websites. + .css({width:getWidth(), overflow:settings.scrolling ? 'auto' : 'hidden'}) + .css({height:getHeight()})// sets the height independently from the width in case the new width influences the value of height. + .prependTo($content); + + $('#cboxPhoto').css({cssFloat:'none'});// floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width. + + // Hides SELECT elements in IE6 because they would otherwise sit on top of the overlay. + if (isIE6) { + $('select:not(#colorbox select)').filter(function(){ + return this.style.visibility !== 'hidden'; + }).css({'visibility':'hidden'}).one(cbox_cleanup, function(){ + this.style.visibility = 'inherit'; + }); + } + + function setPosition (s) { + cboxPublic.position(s, function(){ + if (!open) { return; } + + if (isIE) { + //This fadeIn helps the bicubic resampling to kick-in. + if( photo ){$loaded.fadeIn(100);} + //IE adds a filter when ColorBox fades in and out that can cause problems if the loaded content contains transparent pngs. + $cbox[0].style.removeAttribute("filter"); + } + + //Waited until the iframe is added to the DOM & it is visible before setting the src. + //This increases compatability with pages using DOM dependent JavaScript. + if(settings.iframe){ + $loaded.append("