Commit bc026353 authored by Matthew Taylor's avatar Matthew Taylor

align gender/org input msg with others

Because the `input` field is already to the right, they were being transformed too far over. This overrides the transform to be correct, and also scopes some css in more detail
parent db2b7ebc
...@@ -21,6 +21,26 @@ ...@@ -21,6 +21,26 @@
} }
} }
.form {
padding: 3rem 4rem;
.card-button {
margin: 0 0 -3rem -4rem;
}
.row {
margin-bottom: 1.2rem;
&.has-error {
.input {
border: 1px solid $ui-orange;
}
}
.col-sm-9 {
position: relative;
}
.validation-message { .validation-message {
$arrow-border-width: 1rem; $arrow-border-width: 1rem;
display: block; display: block;
...@@ -57,26 +77,6 @@ ...@@ -57,26 +77,6 @@
content: ""; content: "";
} }
} }
.form {
padding: 3rem 4rem;
.card-button {
margin: 0 0 -3rem -4rem;
}
.row {
margin-bottom: 1.2rem;
&.has-error {
.input {
border: 1px solid $ui-orange;
}
}
.col-sm-9 {
position: relative;
}
} }
} }
} }
...@@ -105,6 +105,8 @@ ...@@ -105,6 +105,8 @@
@media only screen and (max-width: $desktop - 1) { @media only screen and (max-width: $desktop - 1) {
.card { .card {
.form {
.row {
.validation-message { .validation-message {
position: relative; position: relative;
transform: none; transform: none;
...@@ -117,4 +119,6 @@ ...@@ -117,4 +119,6 @@
} }
} }
} }
}
}
} }
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
@import "../../frameless"; @import "../../frameless";
.registration-step { .registration-step {
.demographics-checkbox-is-robot {
display: none;
}
.invite-avatar { .invite-avatar {
display: block; display: block;
margin: 0 auto 1rem auto; margin: 0 auto 1rem auto;
...@@ -13,6 +9,11 @@ ...@@ -13,6 +9,11 @@
border-radius: 8px; border-radius: 8px;
} }
.card {
.demographics-checkbox-is-robot {
display: none;
}
.gender-input, .gender-input,
.other-input { .other-input {
float: right; float: right;
...@@ -20,6 +21,10 @@ ...@@ -20,6 +21,10 @@
.row { .row {
margin-left: .5rem; margin-left: .5rem;
.validation-message {
transform: translate(14rem, 0);
}
} }
} }
...@@ -28,6 +33,7 @@ ...@@ -28,6 +33,7 @@
text-align: left; text-align: left;
color: $ui-dark-gray; color: $ui-dark-gray;
} }
}
&.class-invite-step { &.class-invite-step {
text-align: center; text-align: center;
...@@ -51,12 +57,15 @@ ...@@ -51,12 +57,15 @@
} }
&.username-step { &.username-step {
.card {
.username-label { .username-label {
margin-bottom: .75rem; margin-bottom: .75rem;
} }
} }
}
&.demographics-step { &.demographics-step {
.card {
.gender-input { .gender-input {
margin-top: -5.5rem; margin-top: -5.5rem;
} }
...@@ -70,8 +79,10 @@ ...@@ -70,8 +79,10 @@
} }
} }
} }
}
&.phone-step { &.phone-step {
.card {
.form-group { .form-group {
margin-bottom: 2rem; margin-bottom: 2rem;
} }
...@@ -82,8 +93,10 @@ ...@@ -82,8 +93,10 @@
} }
} }
} }
}
&.organization-step { &.organization-step {
.card {
.checkbox-group { .checkbox-group {
.validation-message { .validation-message {
transform: translate(16rem, 8rem); transform: translate(16rem, 8rem);
...@@ -100,9 +113,10 @@ ...@@ -100,9 +113,10 @@
margin-top: -5.75rem; margin-top: -5.75rem;
} }
} }
}
&.usescratch-step { &.usescratch-step {
.form { .card {
.form-group { .form-group {
margin-bottom: 0; margin-bottom: 0;
...@@ -112,7 +126,6 @@ ...@@ -112,7 +126,6 @@
} }
} }
} }
}
p { p {
&.char-count { &.char-count {
...@@ -122,6 +135,7 @@ ...@@ -122,6 +135,7 @@
} }
} }
} }
}
&.last-step, &.last-step,
&.error-step { &.error-step {
...@@ -149,11 +163,13 @@ ...@@ -149,11 +163,13 @@
@media only screen and (max-width: $mobile - 1) { @media only screen and (max-width: $mobile - 1) {
.registration-step { .registration-step {
&.demographics-step { &.demographics-step {
.card {
.radio { .radio {
width: 100%; width: 100%;
text-align: left; text-align: left;
} }
} }
}
&.last-step, &.last-step,
&.error-step { &.error-step {
...@@ -167,11 +183,14 @@ ...@@ -167,11 +183,14 @@
@media only screen and (max-width: $desktop - 1) { @media only screen and (max-width: $desktop - 1) {
.registration-step { .registration-step {
.card {
.form { .form {
text-align: left; text-align: left;
} }
}
&.phone-step { &.phone-step {
.card {
.checkbox, .checkbox,
.validation-message { .validation-message {
text-align: left; text-align: left;
...@@ -181,11 +200,14 @@ ...@@ -181,11 +200,14 @@
margin-bottom: 1rem; margin-bottom: 1rem;
} }
} }
}
&.organization-step { &.organization-step {
.card {
.checkbox-group { .checkbox-group {
text-align: left; text-align: left;
} }
} }
} }
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment