turn login and register into infopages

This commit is contained in:
Pierre Bondoerffer
2017-08-01 17:11:03 +02:00
parent 549b1b2c4f
commit dc0a037894
4 changed files with 99 additions and 35 deletions

View File

@@ -1,10 +1,10 @@
@import (once) "./colortheme.less";
@infopages_infobar-height: 64px;
@infopages_padding: 32px;
// Basic setup for info pages, this should be used at the global level
.infopages_main () {
min-height: 100vh;
background-color: @colortheme_info-background;
a {
@@ -27,7 +27,35 @@
font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
.cp-container {
padding-top: @infopages_infobar-height;
margin-top: @infopages_infobar-height;
padding-top: @infopages_padding;
padding-bottom: @infopages_padding;
min-height: 75vh;
h1 {
font-size: 3em;
margin-bottom: 0.5em;
}
.form-group {
& > * {
margin-top: 0.5em;
}
display: flex;
flex-direction: column;
align-items: center;
.checkbox-container {
width: 100%;
display: flex;
align-items: center;
label {
margin: 0;
}
input {
margin-right: 0.5em;
}
}
}
}
};
@@ -75,4 +103,4 @@
.infopages_link()
}
}
}
}

View File

@@ -0,0 +1,17 @@
@import (once) "../include/infopages.less";
@import (once) "../include/colortheme.less";
.infopages_main();
.infopages_topbar();
.form-group {
.extra {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
.login {
}
}
}

View File

@@ -4,6 +4,20 @@
.infopages_main();
.infopages_topbar();
#cp-main.cp-page-register {
.cp-container {
.form-group {
.checkbox-container {
&:nth-of-type(1) {
margin-top: 2em;
}
&:last-of-type {
margin-bottom: 1em;
}
}
#register {
margin-top: 16px;
font-size: 1.25em;
width: 30%;
}
}
}