Test new home page

This commit is contained in:
yflory
2017-01-16 18:28:37 +01:00
parent a9063e0459
commit 6652e9d6d9
22 changed files with 644 additions and 187 deletions

View File

@@ -5,6 +5,7 @@
@import "./bar.less";
@import "./loading.less";
@import "./dropdown.less";
@import "./topbar.less";
html.cp, .cp body {
font-size: .875em;
@@ -12,13 +13,13 @@ html.cp, .cp body {
color: @fore;
font-family: Georgia,Cambria,serif;
height: 100;
height: 100%;
}
.cp:not(.poll) {
#language-selector {
position: absolute;
top: 0px;
top: 80px;
right: 0px;
display: inline-block;
}
@@ -30,6 +31,7 @@ body {
font-size: 1rem;
font-weight: 400;
line-height: 2rem;
margin: 0;
}
a.github-corner > svg {
@@ -97,11 +99,11 @@ h6 {
a {
cursor: pointer;
color: @cp-green;
color: @cp-darkblue;
text-decoration: none;
&:hover {
color: @cp-accent;
color: @cp-accent2;
}
}
@@ -123,12 +125,111 @@ p, pre, td, a, table, tr {
.lato;
}
body.html {
}
.page {
width: 70vw;
height: 90vh;
margin-left: 15vw;
background: blue;
&.first {
margin-top: ~"calc(100vh - 80px)";
}
}
.page2 {
width: 70vw;
height: 100vh;
background: red;
}
#main {
width: 70vw;
background-image: url('/customize/bg.jpg');
background-size: cover;
}
#main, #main_other {
position: absolute;
left: 0;
right: 0;
padding: 0 @main-border-width;
height: ~"calc(100vh - 80px)";
margin: auto;
//margin-top: 100px;
font-size: medium;
padding-bottom: 1em;
//padding-bottom: 1em;
// Vertical positioning (middle)
//margin-top: 50vh;
//transform: translateY( ~"calc(40px - 50%)" ); //"
#data {
p {
margin: 0;
padding: 0;
}
h5 {
color: @topbar-color;
}
color: @topbar-color;
padding: 15px;
box-sizing: border-box;
position: absolute;
top: 50%;
transform: translateY(-50%);
width: ~"calc(100% - 450px - 30vw)";
background-color: rgba(34, 177, 221, 0.8);
}
#userForm {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: @main-border-width;
margin-left: 50px;
display: inline-block;
width: 400px;
height: 350px;
background-color: rgba(34, 177, 221, 0.8);
padding: 10px;
box-sizing: border-box;
font-family: lato, Helvetica, sans-serif;
color: @topbar-color;
h1 {
color: black;
}
[type="text"], [type="password"] {
width: ~"calc(100% - 10px)";
height: 1.5em;
border-radius: 0;
}
[type="checkbox"] {
vertical-align: sub;
margin: 0;
margin-top: 10px;
margin-right: 5px;
}
button {
width: 100%;
margin: 2px 0px;
text-transform: uppercase;
cursor: pointer;
&.half {
width: ~"calc(50% - 2px)";
&.first {
}
}
}
}
.buttons {
margin-top: 20px;
}
}
#fileManagerIframe {
@@ -139,27 +240,22 @@ p, pre, td, a, table, tr {
/* buttons */
// home page button container
.buttons {
margin-bottom: 50px;
margin-top: 20px;
line-height: 2.5em;
}
.create, .action {
display: inline-block;
@thick: 2px;
border: @thick solid @cp-green;
background-color: @base;
color: @cp-green;
//border: @thick solid @cp-darkblue;
border: 0;
background-color: @cp-darkblue;
color: @topbar-button-color;
font-weight: bold;
font-size: large;
margin-right: 5px;
margin-left: 5px;
&:hover {
border: @thick solid @cp-accent;
color: @cp-green;
color: darken(@topbar-button-color, 20%);
//border: @thick solid @cp-accent2;
//color: @cp-darkblue;
}
}
@@ -168,8 +264,9 @@ p, pre, td, a, table, tr {
@vpad: 2 * 2px;
padding: @vpad @hpad @vpad @hpad;
margin-top: 2 * 6px;
margin-bottom: 2 * 6px;
//margin-top: 2 * 6px;
//margin-bottom: 2 * 6px;
margin: 2px 0;
display: inline-block;
line-height: 1.5em;
}

View File

@@ -0,0 +1,55 @@
@import "./variables.less";
#cryptpadTopBar {
background: @topbar-back;
position: relative;
top: 0;
left: 0;
right: 0;
height: 80px;
color: @topbar-color;
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
padding: 5px;
box-sizing: border-box;
font-size: 40px;
&> span {
vertical-align: middle;
display: inline-block;
height: 100%;
}
.cryptpad-logo {
height: 70px;
vertical-align: middle;
}
.slogan {
font-size: 20px;
color: @topbar-color;
line-height: 70px;
}
.gotoMain {
color: @topbar-color;
height: 70px;
line-height: 70px;
}
.right {
float: right;
font-size: 20px;
margin: 0px 5px;
background: @topbar-button-bg;
a {
text-align: center;
min-width: 100px;
font-weight: bold;
height: 70px;
padding: 0 10px;
line-height: 70px;
display: inline-block;
color: @topbar-button-color;
}
}
}

View File

@@ -1,7 +1,7 @@
@base: #302B28;
@base: #ddd;
@light-base: lighten(@base, 20%);
@less-light-base: lighten(@base, 10%);
@fore: #fafafa;
@fore: #111;
@cp-green: #46E981;
@cp-accent: lighten(@cp-green, 20%);
@@ -51,3 +51,11 @@
@toolbar-gradient-start: #f5f5f5;
@toolbar-gradient-end: #DDDDDD;
@topbar-back: #fff;
@topbar-color: #000;
@topbar-button-bg: #2E9AFE;
@topbar-button-color: #fff;
@main-border-width: 15vw;
@cp-darkblue: #3333ff;
@cp-accent2: darken(@cp-darkblue, 20%);