Skip to content

Commit

Permalink
Updated templates for new Jade version and regenerated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Jan 30, 2014
1 parent 3295343 commit 228e555
Show file tree
Hide file tree
Showing 17 changed files with 712 additions and 697 deletions.
116 changes: 58 additions & 58 deletions examples/cyborg-multi.html

Large diffs are not rendered by default.

113 changes: 57 additions & 56 deletions examples/cyborg.html

Large diffs are not rendered by default.

116 changes: 58 additions & 58 deletions examples/default-multi.html

Large diffs are not rendered by default.

113 changes: 57 additions & 56 deletions examples/default.html

Large diffs are not rendered by default.

116 changes: 58 additions & 58 deletions examples/flatly-multi.html

Large diffs are not rendered by default.

113 changes: 57 additions & 56 deletions examples/flatly.html

Large diffs are not rendered by default.

116 changes: 58 additions & 58 deletions examples/slate-multi.html

Large diffs are not rendered by default.

113 changes: 57 additions & 56 deletions examples/slate.html

Large diffs are not rendered by default.

133 changes: 68 additions & 65 deletions templates/_bootstrap-layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -14,68 +14,69 @@ html
style.
/* Highlight.js Theme */
.tomorrow-comment,pre .comment,pre .title{color:#8e908c}.tomorrow-red,pre .attribute,pre .css .class,pre .css .id,pre .css .pseudo,pre .html .doctype,pre .regexp,pre .ruby .constant,pre .tag,pre .variable,pre .xml .doctype,pre .xml .pi,pre .xml .tag .title{color:#c82829}.tomorrow-orange,pre .built_in,pre .constant,pre .literal,pre .number,pre .params,pre .preprocessor{color:#f5871f}.tomorrow-yellow,pre .class,pre .css .rules .attribute,pre .ruby .class .title{color:#eab700}.tomorrow-green,pre .header,pre .inheritance,pre .ruby .symbol,pre .string,pre .value,pre .xml .cdata{color:#718c00}.tomorrow-aqua,pre .css .hexcolor{color:#3e999f}.tomorrow-blue,pre .coffeescript .title,pre .function,pre .javascript .title,pre .perl .sub,pre .python .decorator,pre .python .title,pre .ruby .function .title,pre .ruby .title .keyword{color:#4271ae}.tomorrow-purple,pre .javascript .function,pre .keyword{color:#8959a8}pre code{display:block;background:#fff;color:#4d4d4c;font-family:Menlo,Monaco,Consolas,monospace;line-height:1.5;border:1px solid #ccc;padding:10px}
:stylus
body, h4, h5
font-family 'Roboto' sans-serif !important
style
:stylus
body, h4, h5
font-family 'Roboto' sans-serif !important

h1, h2, h3, .aglio
font-family 'Raleway' sans-serif !important
h1, h2, h3, .aglio
font-family 'Raleway' sans-serif !important

h1, h2, h3, h4, h5
& a
display none
h1, h2, h3, h4, h5
& a
display none

&:hover a
display inline

&:hover a
display inline

code
color #444
background-color #ddd
font-family 'Inconsolata' monospace !important

a[data-target]
cursor pointer

h4
font-size 100%
font-weight bold
text-transform uppercase

.back-to-top
position fixed
z-index 1
bottom 0px
right 24px
padding 4px 8px
background-color #eee
text-decoration none !important
border-top 1px solid rgba(0, 0, 0, 0.1)
border-left 1px solid rgba(0, 0, 0, 0.1)
border-right 1px solid rgba(0, 0, 0, 0.1)
border-top-left-radius 3px
border-top-right-radius 3px

.panel
overflow hidden

.panel-heading
code
color #c7254e
background-color transparent
h3
margin-top 10px
margin-bottom 10px

a.list-group-item
white-space nowrap
text-overflow ellipsis
overflow hidden

&.heading
background-color #f5f5f5

.list-group-item.collapse
display none
color #444
background-color #ddd
font-family 'Inconsolata' monospace !important

a[data-target]
cursor pointer

h4
font-size 100%
font-weight bold
text-transform uppercase

.back-to-top
position fixed
z-index 1
bottom 0px
right 24px
padding 4px 8px
background-color #eee
text-decoration none !important
border-top 1px solid rgba(0, 0, 0, 0.1)
border-left 1px solid rgba(0, 0, 0, 0.1)
border-right 1px solid rgba(0, 0, 0, 0.1)
border-top-left-radius 3px
border-top-right-radius 3px

.panel
overflow hidden

.panel-heading
code
color #c7254e
background-color transparent
h3
margin-top 10px
margin-bottom 10px

a.list-group-item
white-space nowrap
text-overflow ellipsis
overflow hidden

&.heading
background-color #f5f5f5

.list-group-item.collapse
display none
body
a.text-muted.back-to-top(href='#top')
i.fa.fa-toggle-up
Expand All @@ -100,11 +101,13 @@ html

script(src="//code.jquery.com/jquery-1.10.1.min.js")
script(src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js")
:coffee
# Show a warning when viewed as a local file, which will break the
# links above that start with `//`.
if location.protocol is 'file:'
document.getElementById('localFile').style.display = 'block';
block scripts
script
:coffee
$('table').addClass 'table'
# Show a warning when viewed as a local file, which will break the
# links above that start with `//`.
if location.protocol is 'file:'
document.getElementById('localFile').style.display = 'block';
block scripts
script
:coffee
$('table').addClass 'table'
41 changes: 21 additions & 20 deletions templates/_bootstrap-mixins.jade
Original file line number Diff line number Diff line change
Expand Up @@ -206,29 +206,30 @@ mixin Content(getButtonClass, multipage)
mixin Multipage()
//- Multi-page support through Knockout.js
script(src="http://cdnjs.cloudflare.com/ajax/libs/knockout/3.0.0/knockout-min.js")
:coffee
class App
constructor: ->
@page = ko.observable 'home'
script
:coffee
class App
constructor: ->
@page = ko.observable 'home'
window.app = new App()
window.app = new App()
window.onhashchange = ->
vars = {}
for v in location.hash.substr(1).split(',')
parts = v.split ':'
vars[parts[0]] = parts[1]
window.onhashchange = ->
vars = {}
for v in location.hash.substr(1).split(',')
parts = v.split ':'
vars[parts[0]] = parts[1]
# Set the page
window.app.page vars.page or 'home'
# Set the page
window.app.page vars.page or 'home'
# Scroll to a header if Set
if vars.header
$("##{vars.header}")[0].scrollIntoView true
else
window.scrollTo 0, 0
# Scroll to a header if Set
if vars.header
$("##{vars.header}")[0].scrollIntoView true
else
window.scrollTo 0, 0
ko.applyBindings window.app
ko.applyBindings window.app
# Load the correct page
window.onhashchange()
# Load the correct page
window.onhashchange()
3 changes: 2 additions & 1 deletion templates/cyborg-multi.jade
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ block content
+Content('info', true)

block scripts
:coffee
script
:coffee
$('table').addClass 'table'
+Multipage()
103 changes: 52 additions & 51 deletions templates/cyborg.jade
Original file line number Diff line number Diff line change
Expand Up @@ -9,69 +9,70 @@ block styles
/* Highlight.js Theme */
pre{background:#1a1a1a;border:1px solid rgba(255, 255, 255, 0.1)}
pre code{display:block;padding:.5em;background:#1a1a1a}pre .ini .title,pre .nginx .title,pre .profile .header *{color:#fff}pre .comment,pre .css .rules,pre .diff,pre .doctype,pre .javadoc,pre .pi,pre .preprocessor,pre .preprocessor .title,pre .profile .summary,pre .shebang,pre .tag,pre .template_comment,pre .tex .special{color:#444}pre .clojure .attribute,pre .coffeescript .attribute,pre .diff .change,pre .ini .value,pre .regexp,pre .smalltalk .char,pre .string,pre .symbol,pre .xml .attribute,pre .xml .value{color:#fc3}pre .addition,pre .number{color:#0c6}pre .built_in,pre .css .funtion,pre .django .variable,pre .flow,pre .go .constant,pre .go .typename,pre .hexcolor,pre .important,pre .inheritance,pre .ini .keyword,pre .literal,pre .lua .title,pre .mel .variable,pre .parser3 .variable,pre .perl .variable,pre .php .variable,pre .smalltalk .method,pre .vhdl .typename{color:#32AAEE}pre .clojure .built_in,pre .css .attr_selector,pre .css .class,pre .css .id,pre .css .pseudo,pre .css .tag,pre .keyword,pre .lisp .title,pre .request,pre .status,pre .tag .title,pre .tex .command,pre .winutils{color:#64a}pre .apache .tag,pre .avrasm .label,pre .bash .variable,pre .css .keyword,pre .deletion,pre .envvar,pre .go .built_in,pre .lisp .keyword,pre .lua .built_in,pre .nginx .variable,pre .objectivec .class .id,pre .parent,pre .rsl .built_in,pre .ruby .constant,pre .smalltalk .class,pre .tail,pre .template_tag,pre .tex .formula,pre .tex .formula *,pre .title,pre .vala .constant,pre .vbscript .built_in{color:#b16}pre .apache .tag,pre .ini .title,pre .parser3 .title,pre .phpdoc,pre .profile .header,pre .yardoctag{font-weight:700}pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .cdata,pre .xml .css,pre .xml .javascript,pre .xml .vbscript{opacity:.6}pre .container,pre .css,pre .css .attribute,pre .css .value,pre .diff .chunk,pre .erlang *,pre .erlang_repl *,pre .haskell *,pre .javascript,pre .lisp .number,pre .lisp .string,pre .subst,pre .tail .params,pre .xml,pre code{color:#aaa}
:stylus
body, h4, h5
font-family 'Roboto' sans-serif !important
style
:stylus
body, h4, h5
font-family 'Roboto' sans-serif !important

h1, h2, h3, .aglio
font-family 'Raleway' sans-serif !important
h1, h2, h3, .aglio
font-family 'Raleway' sans-serif !important

h1, h2, h3, h4, h5
& a
display none
h1, h2, h3, h4, h5
& a
display none

&:hover a
display inline
&:hover a
display inline

code
color #222
background-color #aaa
font-family 'Inconsolata' monospace !important
code
color #222
background-color #aaa
font-family 'Inconsolata' monospace !important

a[data-target]
cursor pointer
a[data-target]
cursor pointer

h4
font-size 100%
font-weight bold
text-transform uppercase
h4
font-size 100%
font-weight bold
text-transform uppercase

.back-to-top
position fixed
z-index 1
bottom 0px
right 24px
padding 4px 8px
color #aaa
background-color #1a1a1a
text-decoration none !important
border-top 1px solid rgba(0, 0, 0, 0.1)
border-left 1px solid rgba(0, 0, 0, 0.1)
border-right 1px solid rgba(0, 0, 0, 0.1)
border-top-left-radius 3px
border-top-right-radius 3px
.back-to-top
position fixed
z-index 1
bottom 0px
right 24px
padding 4px 8px
color #aaa
background-color #1a1a1a
text-decoration none !important
border-top 1px solid rgba(0, 0, 0, 0.1)
border-left 1px solid rgba(0, 0, 0, 0.1)
border-right 1px solid rgba(0, 0, 0, 0.1)
border-top-left-radius 3px
border-top-right-radius 3px

.panel
overflow hidden
.panel
overflow hidden

.panel-heading
code
color white
background-color transparent
h3
margin-top 10px
margin-bottom 10px
.panel-heading
code
color white
background-color transparent
h3
margin-top 10px
margin-bottom 10px

a.list-group-item
white-space nowrap
text-overflow ellipsis
overflow hidden
a.list-group-item
white-space nowrap
text-overflow ellipsis
overflow hidden

&.heading
background-color #3c3c3c
&.heading
background-color #3c3c3c

.list-group-item.collapse
display none
.list-group-item.collapse
display none

block content
+Content('info', false)
3 changes: 2 additions & 1 deletion templates/default-multi.jade
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ block content
+Content('primary', true)

block scripts
:coffee
script
:coffee
$('table').addClass 'table'
+Multipage()
3 changes: 2 additions & 1 deletion templates/flatly-multi.jade
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ block content
+Content('info', true)

block scripts
:coffee
script
:coffee
$('table').addClass 'table'
+Multipage()

0 comments on commit 228e555

Please sign in to comment.