Merge pull request #610 from mewtaylor/cleanup/teacher-styling

styling cleanup for teacher registration
This commit is contained in:
Matthew Taylor 2016-06-24 11:25:25 -04:00 committed by GitHub
commit ef881a07f9
7 changed files with 194 additions and 197 deletions

View file

@ -14,14 +14,14 @@
.step-navigation { .step-navigation {
margin-top: 2rem; margin-top: 2rem;
text-align: center;
} }
}
.slide { .slide {
max-width: 28.75rem; max-width: 28.75rem;
h2, h2,
p { .description {
text-align: center; text-align: center;
color: $type-white; color: $type-white;
} }
@ -30,24 +30,14 @@
margin-top: 0; margin-top: 0;
margin-bottom: 2rem; margin-bottom: 2rem;
} }
} }
.card { .card {
margin: 0 auto; margin: 0 auto;
width: 23.75rem; width: 23.75rem;
&,
h2,
p {
color: $type-gray;
} }
}
.step-navigation { .form {
text-align: center;
}
.form {
padding: 3rem 4rem; padding: 3rem 4rem;
.form-group { .form-group {
@ -78,13 +68,13 @@
box-shadow: none; box-shadow: none;
} }
} }
} }
.input { .input {
width: $cols5; width: $cols5;
} }
.help-block { .help-block {
$arrow-border-width: 1rem; $arrow-border-width: 1rem;
display: block; display: block;
position: absolute; position: absolute;
@ -117,9 +107,11 @@
content: ""; content: "";
} }
}
} }
@media only screen and (max-width: $mobile - 1) { @media only screen and (max-width: $mobile - 1) {
.deck {
.card { .card {
width: 22.5rem; width: 22.5rem;
} }
@ -131,15 +123,19 @@
width: 22.5rem; width: 22.5rem;
} }
} }
}
} }
@media only screen and (max-width: $tablet - 1) { @media only screen and (max-width: $tablet - 1) {
.deck {
.input { .input {
width: 90%; width: 90%;
} }
}
} }
@media only screen and (max-width: $desktop - 1) { @media only screen and (max-width: $desktop - 1) {
.deck {
.help-block { .help-block {
position: relative; position: relative;
transform: none; transform: none;
@ -151,4 +147,5 @@
display: none; display: none;
} }
} }
}
} }

View file

@ -1,7 +1,6 @@
@import "../../colors"; @import "../../colors";
p { .char-count {
&.char-count {
letter-spacing: 1px; letter-spacing: 1px;
color: lighten($type-gray, 30%); color: lighten($type-gray, 30%);
font-weight: 500; font-weight: 500;
@ -9,5 +8,4 @@ p {
&.overmax { &.overmax {
color: $ui-orange; color: $ui-orange;
} }
}
} }

View file

@ -1,4 +1,5 @@
.checkbox-group { .checkbox-group {
.row {
.col-sm-9 { .col-sm-9 {
flex-flow: column wrap; flex-flow: column wrap;
@ -6,4 +7,5 @@
margin: .5rem 0; margin: .5rem 0;
} }
} }
}
} }

View file

@ -6,10 +6,8 @@
label { label {
font-weight: 300; font-weight: 300;
} }
}
}
input { input {
&[type=checkbox] { &[type=checkbox] {
display: block; display: block;
float: left; float: left;
@ -40,4 +38,6 @@ input {
} }
} }
} }
}
}
} }

View file

@ -6,9 +6,8 @@
font-weight: 300; font-weight: 300;
} }
} }
}
.col-sm-9 { .col-sm-9 {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
@ -43,4 +42,5 @@
} }
} }
} }
}
} }

View file

@ -5,9 +5,8 @@
label { label {
font-weight: 500; font-weight: 500;
} }
}
select { select {
transition: all .5s ease; transition: all .5s ease;
margin: .75rem 0; margin: .75rem 0;
border: 1px solid $active-gray; border: 1px solid $active-gray;
@ -35,4 +34,5 @@ select {
background-color: $ui-white; background-color: $ui-white;
width: 100%; width: 100%;
} }
}
} }

View file

@ -291,7 +291,7 @@ module.exports = {
<h2> <h2>
<intl.FormattedMessage id="teacherRegistration.phoneStepTitle" /> <intl.FormattedMessage id="teacherRegistration.phoneStepTitle" />
</h2> </h2>
<p> <p className="description">
<intl.FormattedMessage id="teacherRegistration.phoneStepDescription" /> <intl.FormattedMessage id="teacherRegistration.phoneStepDescription" />
<Tooltip title={'?'} <Tooltip title={'?'}
tipContent={formatMessage({id: 'teacherRegistration.nameStepTooltip'})} /> tipContent={formatMessage({id: 'teacherRegistration.nameStepTooltip'})} />
@ -359,7 +359,7 @@ module.exports = {
<h2> <h2>
<intl.FormattedMessage id="teacherRegistration.orgStepTitle" /> <intl.FormattedMessage id="teacherRegistration.orgStepTitle" />
</h2> </h2>
<p> <p className="description">
<intl.FormattedMessage id="teacherRegistration.orgStepDescription" /> <intl.FormattedMessage id="teacherRegistration.orgStepDescription" />
<Tooltip title={'?'} <Tooltip title={'?'}
tipContent={formatMessage({id: 'teacherRegistration.nameStepTooltip'})} /> tipContent={formatMessage({id: 'teacherRegistration.nameStepTooltip'})} />
@ -448,7 +448,7 @@ module.exports = {
return this.props.onNextStep(formData); return this.props.onNextStep(formData);
} else { } else {
return invalidate({ return invalidate({
'all': <FormattedMessage id="teacherRegistration.addressValidationError" /> 'all': <intl.FormattedMessage id="teacherRegistration.addressValidationError" />
}); });
} }
}.bind(this)); }.bind(this));
@ -693,7 +693,7 @@ module.exports = {
<Slide className="error-step"> <Slide className="error-step">
<h2>Something went wrong</h2> <h2>Something went wrong</h2>
<Card> <Card>
<h2>There was an error while processing your registration</h2> <h4>There was an error while processing your registration</h4>
<p> <p>
{this.props.registrationError} {this.props.registrationError}
</p> </p>