Use bootstrap 4 in the main page
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<a data-localization-title="github_ribbon" href="https://github.com/xwiki-labs/cryptpad" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 80px; border: 0; left: 0; transform: scale(-1, 1);z-index:2;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
|
||||
<a data-localization-title="github_ribbon" href="https://github.com/xwiki-labs/cryptpad" class="github-corner" aria-label="View source on Github"><svg width="80" height="80" viewBox="0 0 250 250" style="position: absolute; top: 50px; border: 0; left: 0; transform: scale(-1, 1);z-index:2;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
|
||||
<!-- Thanks! http://tholman.com/github-corners/ -->
|
||||
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
<div id="main">
|
||||
<div id="overlay"></div>
|
||||
<div id="data">
|
||||
<p class="left" data-localization="main_p1"><!-- Zero Knowledge collaborative realtime editor. Protected from the NSA. --></p>
|
||||
|
||||
<h5 id="tryit" data-localization="tryIt"></h5>
|
||||
<center>
|
||||
<h5 id="tryit" data-localization="tryIt"></h5>
|
||||
</center>
|
||||
|
||||
<div id="buttons" class="buttons">
|
||||
<a id="create-pad" class="button create" href="/pad/" data-localization="button_newpad"></a><br/>
|
||||
<a id="create-code" class="button create" href="/code/" data-localization="button_newcode"></a><br/>
|
||||
<a id="create-poll" class="button create" href="/poll/" data-localization="button_newpoll"></a><br/>
|
||||
<a id="create-slide" class="button create" href="/slide/" data-localization="button_newslide"></a>
|
||||
<a id="create-pad" href="/pad/"><button class="btn btn-secondary" data-localization="button_newpad"></button></a>
|
||||
<a id="create-code" href="/code/"><button class="btn btn-secondary" data-localization="button_newcode"></button></a>
|
||||
<a id="create-poll" href="/poll/"><button class="btn btn-secondary" data-localization="button_newpoll"></button></a>
|
||||
<a id="create-slide" href="/slide/"><button class="btn btn-secondary" data-localization="button_newslide"></button></a>
|
||||
<br>
|
||||
<button class="btn btn-default nologin" data-localization="login_nologin"></button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -25,9 +30,7 @@
|
||||
|
||||
<input type="checkbox" id="rememberme" checked="checked"><label for="rememberme" data-localization="login_remember"></label><br>
|
||||
<br>
|
||||
<button class="create button login half first" data-localization="login_login"></button> <button class="create button register half" data-localization="login_register"></button><br>
|
||||
<button class="create button nologin" data-localization="login_nologin"></button>
|
||||
|
||||
<button class="btn btn-secondary login half first" data-localization="login_login"></button> <button class="btn btn-primary register half" data-localization="login_register"></button><br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
<span class="slogan" data-localization="main_slogan"></span>
|
||||
|
||||
<span id="language-selector" class="right dropdown-bar"></span>
|
||||
<span class="right">
|
||||
<a href="/about.html" data-localization="about">About</a>
|
||||
</span>
|
||||
|
||||
@@ -17,13 +17,13 @@ html.cp, .cp body {
|
||||
}
|
||||
|
||||
.cp:not(.poll) {
|
||||
#language-selector {
|
||||
/*#language-selector {
|
||||
position: absolute;
|
||||
top: 80px;
|
||||
top: @topbar-height;
|
||||
right: 0px;
|
||||
display: inline-block;
|
||||
z-index: 2;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
.cp {
|
||||
@@ -144,16 +144,31 @@ body.html {
|
||||
background: red;
|
||||
}
|
||||
|
||||
.btn-default {
|
||||
&:hover {
|
||||
background-color: #d8d8d8;
|
||||
}
|
||||
}
|
||||
#main {
|
||||
background-image: url('/customize/bg.jpg');
|
||||
background-image: url('/customize/bg2.jpg');
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
}
|
||||
#main, #main_other {
|
||||
#overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #000;
|
||||
opacity: 0.2;
|
||||
}
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 0 @main-border-width;
|
||||
height: ~"calc(100vh - 80px)";
|
||||
height: ~"calc(100vh - 50px)";
|
||||
margin: auto;
|
||||
//margin-top: 100px;
|
||||
|
||||
@@ -165,16 +180,20 @@ body.html {
|
||||
padding: 0;
|
||||
}
|
||||
h5 {
|
||||
color: @topbar-color;
|
||||
color: @main-color;
|
||||
}
|
||||
color: @topbar-color;
|
||||
color: @main-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);
|
||||
// background-color: @main-block-bg;
|
||||
|
||||
#tryit {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
#userForm {
|
||||
@@ -185,21 +204,19 @@ body.html {
|
||||
margin-left: 50px;
|
||||
display: inline-block;
|
||||
width: 400px;
|
||||
background-color: rgba(34, 177, 221, 0.8);
|
||||
// background-color: @main-block-bg;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
font-family: lato, Helvetica, sans-serif;
|
||||
color: @topbar-color;
|
||||
color: @main-color;
|
||||
|
||||
h1 {
|
||||
color: black;
|
||||
color: @main-color;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
[type="text"], [type="password"] {
|
||||
width: ~"calc(100% - 10px)";
|
||||
height: 1.5em;
|
||||
border-radius: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
[type="checkbox"] {
|
||||
@@ -209,21 +226,32 @@ body.html {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
label {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
button {
|
||||
width: 100%;
|
||||
margin: 2px 0px;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
&.half {
|
||||
width: ~"calc(50% - 2px)";
|
||||
&.first {
|
||||
width: ~"calc(50% - 4px)";
|
||||
&:not(.first) {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.buttons {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
button {
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: #f9f9f9;
|
||||
min-width: 160px;
|
||||
min-width: 200px;
|
||||
box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
|
||||
z-index: 1000;
|
||||
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 80px;
|
||||
height: @topbar-height;
|
||||
color: @topbar-color;
|
||||
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
padding: 5px;
|
||||
box-sizing: border-box;
|
||||
font-size: 40px;
|
||||
font-size: 30px;
|
||||
|
||||
&> span {
|
||||
vertical-align: middle;
|
||||
@@ -19,37 +19,49 @@
|
||||
height: 100%;
|
||||
}
|
||||
.cryptpad-logo {
|
||||
height: 70px;
|
||||
height: 40px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.slogan {
|
||||
font-size: 20px;
|
||||
color: @topbar-color;
|
||||
line-height: 70px;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.gotoMain {
|
||||
color: @topbar-color;
|
||||
height: 70px;
|
||||
line-height: 70px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
color: #558;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
float: right;
|
||||
font-size: 20px;
|
||||
margin: 0px 5px;
|
||||
background: @topbar-button-bg;
|
||||
margin: 0px 10px;
|
||||
line-height: 40px;
|
||||
|
||||
a {
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
font-size: 0.75em;
|
||||
color: #558;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
color: #000;
|
||||
}
|
||||
/* text-align: center;
|
||||
min-width: 100px;
|
||||
font-weight: bold;
|
||||
height: 70px;
|
||||
padding: 0 10px;
|
||||
line-height: 70px;
|
||||
display: inline-block;
|
||||
color: @topbar-button-color;
|
||||
color: @topbar-button-color;*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,11 @@
|
||||
@topbar-color: #000;
|
||||
@topbar-button-bg: #2E9AFE;
|
||||
@topbar-button-color: #fff;
|
||||
@topbar-height: 50px;
|
||||
|
||||
@main-border-width: 15vw;
|
||||
@cp-darkblue: #3333ff;
|
||||
@cp-accent2: darken(@cp-darkblue, 20%);
|
||||
|
||||
@main-block-bg: rgba(200, 200, 200, 0.3);
|
||||
@main-color: #fff;
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
<link rel="stylesheet" type="text/css" href="/customize/main.css" />
|
||||
<link rel="stylesheet" href="/bower_components/components-font-awesome/css/font-awesome.min.css">
|
||||
<link rel="icon" type="image/png" href="/customize/main-favicon.png" id="favicon"/>
|
||||
<script src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.min.css">
|
||||
<script data-main="/customize/main" src="/bower_components/requirejs/require.js"></script>
|
||||
<script src="/bower_components/requirejs/require.js"></script>
|
||||
<script>
|
||||
@@ -19,7 +21,6 @@
|
||||
|
||||
{{fork}}
|
||||
|
||||
<span id="language-selector" class="dropdown-bar"></span>
|
||||
{{noscript}}
|
||||
|
||||
{{main}}
|
||||
|
||||
Reference in New Issue
Block a user