From 27d2bb4efe11d7cc138e7307bb3502d33e0b9061 Mon Sep 17 00:00:00 2001 From: Sam Jewell Date: Fri, 12 Dec 2014 01:21:45 +0000 Subject: [PATCH] Got the next page/last page nav arrows working at the top of the page Also renamed some CSS into SuitCSS style utils to make things a little easier to refactor / understand --- guide/assets/css/style.css | 18 ++++++++--------- guide/buildpages.js | 5 ++++- .../branches_arent_just_for_birds.html | 20 +++++++++++-------- guide/challenges/commit_to_it.html | 20 +++++++++++-------- guide/challenges/forks_and_clones.html | 20 +++++++++++-------- guide/challenges/get_git.html | 20 +++++++++++-------- guide/challenges/githubbin.html | 20 +++++++++++-------- guide/challenges/its_a_small_world.html | 20 +++++++++++-------- guide/challenges/merge_tada.html | 20 +++++++++++-------- guide/challenges/pull_never_out_of_date.html | 20 +++++++++++-------- guide/challenges/remote_control.html | 20 +++++++++++-------- guide/challenges/repository.html | 20 +++++++++++-------- .../requesting_you_pull_please.html | 20 +++++++++++-------- guide/partials/footer.html | 6 +++--- guide/partials/header.html | 14 ++++++++----- 15 files changed, 157 insertions(+), 106 deletions(-) diff --git a/guide/assets/css/style.css b/guide/assets/css/style.css index 65941cf566..eb0813cf04 100644 --- a/guide/assets/css/style.css +++ b/guide/assets/css/style.css @@ -7,15 +7,19 @@ body { margin: 0; } -.right { +.u-floatRight { float: right; } -.left { +.u-floatLeft { float: left; } -.tar { +.u-textCenter { + text-align: center; +} + +.u-textRight { text-align: right; } @@ -23,10 +27,6 @@ li { padding-bottom: 4px; } -.nav { - text-align: center; -} - .wrapper { width: 600px; margin: 30px auto; @@ -44,7 +44,7 @@ li { .hand { font-size: 40px; padding: 9px 12px; - /* color: #ff00ff;*/ + color: #0087ff; } .challenge-band h2, .number-band h2 { @@ -281,6 +281,6 @@ n, v, adj { opacity: 0.8; } -.u-inline-block { +.u-inlineBlock { display: inline-block; } \ No newline at end of file diff --git a/guide/buildpages.js b/guide/buildpages.js index 155afce11d..a48bf43e74 100644 --- a/guide/buildpages.js +++ b/guide/buildpages.js @@ -69,13 +69,16 @@ function makeTitleName(filename) { function buildHeader(filename) { var num = filename.split('/').pop().split('_')[0] + var data = getPrevious(num) var title = makeTitleName(filename) var source = fs.readFileSync(__dirname + '/partials/header.html').toString() var template = Handlebars.compile(source) var content = { challengetitle: title, challengenumber: num, - lang: lang ? '-' + lang : '' + lang: lang ? '-' + lang : '', + preurl: data.preurl, + nexturl: data.nexturl } return template(content) } diff --git a/guide/challenges/branches_arent_just_for_birds.html b/guide/challenges/branches_arent_just_for_birds.html index c11398c76d..cb315bb626 100644 --- a/guide/challenges/branches_arent_just_for_birds.html +++ b/guide/challenges/branches_arent_just_for_birds.html @@ -16,18 +16,22 @@