work in progress

This commit is contained in:
CatalinScr
2017-08-03 18:09:25 +03:00
parent 89ab82c0e2
commit 15fa801bc8
37 changed files with 472 additions and 168 deletions

View File

@@ -1,17 +1,15 @@
@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 {
color: @colortheme_link-color;
&:visited {
color: @colortheme_link-color-visited;
}
&:visited { color: @colortheme_link-color-visited; }
//opacity: 0.8;
//transition: opacity 0.2s;
}
@@ -20,14 +18,86 @@
}
border: 0;
padding: 0;
margin: 0;
padding: 0;
margin: 0;
font-size: 14px;
font-size: 14px;
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;
}
h2 {
font-size: 2em;
margin-top: 1em;
margin-bottom: 0.5em;
}
h3 {
font-size: 1.5em;
margin-top: 1em;
margin-bottom: 0.5em;
}
img {
&.left {
float: left;
}
max-width: 100%;
}
.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;
}
}
}
}
footer {
background-color: white;
.container {
.col {
margin-top: 1em;
}
width: 100%;
text-align: center;
margin-bottom: 1em;
ul.list-unstyled {
margin: 0;
}
}
.cp-version-footer {
background-color: @colortheme_info-background;
color: black;
text-align: center;
padding: 0.5em;
}
}
};
@@ -69,10 +139,22 @@
-webkit-user-select: none;
-ms-user-select: none;
.navbar-nav {
display: flex;
align-items: center;
}
a {
font-weight: 500;
padding: 0.6em;
.infopages_link()
}
.cp-logo {
img {
height: @infopages_infobar-height / 2;
}
margin-right: 0.5em;
}
}
}
}

View File

@@ -5,4 +5,8 @@
div#cp-main.cp-page-index { @import "./pages/page-index.less"; }
div#cp-main.cp-page-contact { @import "./pages/page-contact.less"; }
div#cp-main.cp-page-login { @import "./pages/page-login.less"; }
div#cp-main.cp-page-register { @import "./pages/page-register.less"; }
div#cp-main.cp-page-register { @import "./pages/page-register.less"; }
div#cp-main.cp-page-what-is-cryptpad { @import "./pages/page-what-is-cryptpad.less"; }
div#cp-main.cp-page-about { @import "./pages/page-about.less"; }
div#cp-main.cp-page-privacy { @import "./pages/page-privacy.less"; }
div#cp-main.cp-page-terms { @import "./pages/page-terms.less"; }

View File

@@ -0,0 +1,12 @@
@import (once) "../include/infopages.less";
@import (once) "../include/colortheme.less";
.infopages_main();
.infopages_topbar();
.bio-avatar {
border-radius: 50%;
margin: 1em 0;
max-width: 300px;
max-height: 300px;
}

View File

@@ -1,4 +1,9 @@
@import (once) "../include/infopages.less";
@import (once) "../include/colortheme.less";
.infopages_main();
.infopages_topbar();
.fa {
padding-right: 0.25em;
}

View File

@@ -13,6 +13,7 @@
color: #FFF;
background: linear-gradient( @background_darker, @background_lighter ), url('/customize/bg14.jpg');
background-size: cover;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-around;
@@ -84,6 +85,7 @@
font-size: 1.6rem;
}
}
<<<<<<< HEAD
img {
height: 5vh;
margin-top: -4px;
@@ -93,6 +95,11 @@
transform: none;
}
};
=======
a.cp-logo {
display: none;
}
>>>>>>> ae176b0465121f57e2147ed0c80c9e62ce65c3a5
}
@callout-padding: 15px;
a:hover {
@@ -213,10 +220,14 @@ h4 {
.navbar-nav a {
text-align: right !important;
}
<<<<<<< HEAD
.cp-right .cp-login-btn {
padding: 0.5em;
}
}
.collapsing a {
text-align: right !important;
}
}
=======
}
>>>>>>> ae176b0465121f57e2147ed0c80c9e62ce65c3a5

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

@@ -0,0 +1,5 @@
@import (once) "../include/infopages.less";
@import (once) "../include/colortheme.less";
.infopages_main();
.infopages_topbar();

View File

@@ -0,0 +1,23 @@
@import (once) "../include/infopages.less";
@import (once) "../include/colortheme.less";
.infopages_main();
.infopages_topbar();
.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%;
}
}
}

View File

@@ -0,0 +1,5 @@
@import (once) "../include/infopages.less";
@import (once) "../include/colortheme.less";
.infopages_main();
.infopages_topbar();

View File

@@ -0,0 +1,9 @@
@import (once) "../include/infopages.less";
@import (once) "../include/colortheme.less";
.infopages_main();
.infopages_topbar();
img#zeroknowledge {
width: 100%;
}