Move registration.scss

This commit is contained in:
Steffen van Bergerem 2015-10-05 13:21:53 +02:00
parent dfe5d32e06
commit 66fb953591
5 changed files with 59 additions and 56 deletions

View file

@ -27,7 +27,7 @@
/* login */
@import 'login';
@import 'new_styles/registration';
@import 'registration';
@import 'forms';
/* terms */

View file

@ -1,52 +0,0 @@
#registration {
.ball {
height: 633px;
max-width: 100%;
background: image-url("branding/ball.png") no-repeat;
background-size: contain;
}
.v-center {
display: table;
height: 633px;
.content {
display: table-cell;
vertical-align: middle;
#pod-name {
text-align: center;
margin: 12px;
font-size : 35px;
}
}
}
form {
max-width: 400px;
.captcha_img {
position: absolute;
left: 10px;
width: 120px;
top: 169px;
}
#user_captcha {
font-size: 16px;
height: 40px;
padding: 10px 10px 10px 130px;
line-height: $line-height-base;
box-sizing: border-box;
width: 100%;
border-bottom: 1px solid $border-grey;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
#terms > a {
color: inherit;
text-decoration: underline;
}
}
}

View file

@ -0,0 +1,52 @@
.page-registrations.action-new {
.ball {
background: image-url('branding/ball.png') no-repeat;
background-size: contain;
height: 633px;
max-width: 100%;
}
.v-center {
display: table;
height: 633px;
}
.content {
display: table-cell;
vertical-align: middle;
h2 {
font-size: 35px;
margin: 12px;
text-align: center;
}
}
form {
max-width: 400px;
}
.captcha-img {
left: 10px;
position: absolute;
top: 169px;
width: 120px;
}
.captcha-input {
border-bottom: 1px solid $border-grey;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
box-sizing: border-box;
font-size: 16px;
height: 40px;
line-height: $line-height-base;
padding: 10px 10px 10px 130px;
width: 100%;
}
.terms > a {
color: inherit;
text-decoration: underline;
}
}

View file

@ -46,12 +46,15 @@
aria: {labelledby: "passwordConfirmationLabel"}
- if AppConfig.settings.captcha.enable?
= show_simple_captcha object: 'user', :code_type => 'numeric', input_html: {class: "form-control"}
= show_simple_captcha object: "user",
code_type: "numeric",
class: "simple-captcha-image",
input_html: {class: "form-control captcha-input"}
= invite_hidden_tag(invite)
- if AppConfig.settings.terms.enable?
%p#terms.text-center
%p.terms.text-center#terms
= t('registrations.new.terms', terms_link: link_to(t('registrations.new.terms_link'), terms_path, target: "_blank")).html_safe
= f.submit t('registrations.new.sign_up'), class: "btn btn-block btn-large btn-default", data: {disable_with: t('registrations.new.submitting')}

View file

@ -1,3 +1,3 @@
.captcha_img
.captcha-img
= simple_captcha_options[:image]
= simple_captcha_options[:field]