start shrinking down the views.

This commit is contained in:
Quincy Larson
2015-06-06 22:51:39 -07:00
parent 7cfca0b5f8
commit feb0678a46
3 changed files with 13 additions and 24 deletions

View File

@ -200,8 +200,7 @@ exports.returnIndividualChallenge = function(req, res, next) {
title: challenge.name, title: challenge.name,
dashedName: dashedName, dashedName: dashedName,
name: challenge.name, name: challenge.name,
brief: challenge.description[0], details: challenge.description,
details: challenge.description.slice(1),
tests: challenge.tests, tests: challenge.tests,
challengeSeed: challenge.challengeSeed, challengeSeed: challenge.challengeSeed,
verb: resources.randomVerb(), verb: resources.randomVerb(),
@ -218,8 +217,7 @@ exports.returnIndividualChallenge = function(req, res, next) {
title: challenge.name, title: challenge.name,
dashedName: dashedName, dashedName: dashedName,
name: challenge.name, name: challenge.name,
brief: challenge.description[0], details: challenge.description,
details: challenge.description.slice(1),
tests: challenge.tests, tests: challenge.tests,
challengeSeed: challenge.challengeSeed, challengeSeed: challenge.challengeSeed,
verb: resources.randomVerb(), verb: resources.randomVerb(),
@ -283,7 +281,6 @@ exports.returnIndividualChallenge = function(req, res, next) {
dashedName: dashedName, dashedName: dashedName,
name: challenge.name, name: challenge.name,
difficulty: Math.floor(+challenge.difficulty), difficulty: Math.floor(+challenge.difficulty),
brief: challenge.description.shift(),
details: challenge.description, details: challenge.description,
tests: challenge.tests, tests: challenge.tests,
challengeSeed: challenge.challengeSeed, challengeSeed: challenge.challengeSeed,

View File

@ -251,6 +251,10 @@ ul {
margin-top: -20px; margin-top: -20px;
} }
.negative-bottom-margin-30 {
margin-bottom: -30px;
}
.large-p { .large-p {
font-size: 18px; font-size: 18px;
} }

View File

@ -25,26 +25,14 @@ block content
.well .well
.row .row
.col-xs-12 .col-xs-12
h2.text-center= name h4.text-center.negative-10= name
.bonfire-instructions .bonfire-instructions
p.wrappable!= brief
#brief-instructions
#more-info.btn.btn-primary.btn-block.btn-primary-ghost
span.ion-arrow-down-b
| More information
#long-instructions.row.hide
.col-xs-12
for sentence in details for sentence in details
p.wrappable!= sentence p.wrappable.!= sentence
#less-info.btn.btn-primary.btn-block.btn-primary-ghost .negative-bottom-margin-30
span.ion-arrow-up-b
| Less information
br
if (user) if (user)
a.btn.btn-primary.btn-big.btn-block#next-courseware-button a.btn.btn-primary.btn-sm.btn-block.negative-10#next-courseware-button Go to my next challenge (ctrl + enter)
| Go to my next challenge
br
| (ctrl + enter)
if (user.sentSlackInvite) if (user.sentSlackInvite)
.button-spacer .button-spacer
.btn-group.input-group.btn-group-justified .btn-group.input-group.btn-group-justified
@ -58,7 +46,7 @@ block content
script. script.
var userLoggedIn = true; var userLoggedIn = true;
else else
a.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress a.btn.signup-btn.btn-block.btn-sm.btn-block.negative-15(href='/login') Sign in so you can save your progress
script. script.
var userLoggedIn = false; var userLoggedIn = false;
.button-spacer .button-spacer