Merge branch 'test-filemanager' into login
This commit is contained in:
@@ -10,7 +10,7 @@ define([
|
||||
var main = function () {
|
||||
var url = window.location.pathname;
|
||||
var isHtml = /\.html/.test(url) || url === '/' || url === '';
|
||||
var isPoll = /\/poll\//.test(url) || /\/file\//.test(url);
|
||||
var isPoll = /\/poll\//.test(url);
|
||||
if (!isHtml && !isPoll) {
|
||||
Messages._applyTranslation();
|
||||
return;
|
||||
|
||||
@@ -143,7 +143,7 @@ define([
|
||||
});
|
||||
|
||||
}).on('ready', function () {
|
||||
if (JSON.stringify(rt.proxy) === '{}') {
|
||||
if (!rt.proxy[Cryptpad.storageKey] || !Cryptpad.isArray(rt.proxy[Cryptpad.storageKey])) {
|
||||
var oldStore = Cryptpad.getStore(true);
|
||||
oldStore.get(Cryptpad.storageKey, function (err, s) {
|
||||
rt.proxy.filesData = s;
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
</noscript>
|
||||
<h5 id="tryit" data-localization="tryIt"></h5>
|
||||
|
||||
<table class="recent scroll" style="display:none">
|
||||
<!-- <table class="recent scroll" style="display:none">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
@@ -80,6 +80,8 @@
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
-->
|
||||
<iframe src="/file#iframe" style="width: 100%; height: 500px;"></iframe>
|
||||
|
||||
<div id="buttons" class="buttons">
|
||||
<a id="create-pad" class="button create" href="/pad/" data-localization="button_newpad"></a>
|
||||
|
||||
@@ -1,3 +1,204 @@
|
||||
.alertify-logs > * {
|
||||
padding: 12px 48px;
|
||||
color: #fafafa;
|
||||
font-weight: bold;
|
||||
font-size: large;
|
||||
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);
|
||||
border-radius: 1px;
|
||||
}
|
||||
.alertify-logs > *,
|
||||
.alertify-logs > *.default {
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
.alertify-logs > *.error {
|
||||
background: #FF0073;
|
||||
}
|
||||
.alertify-logs > *.success {
|
||||
background: #46E981;
|
||||
color: #302B28;
|
||||
}
|
||||
.alertify {
|
||||
position: fixed;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 99999;
|
||||
}
|
||||
.alertify.hide {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.alertify,
|
||||
.alertify.show {
|
||||
box-sizing: border-box;
|
||||
transition: all 0.33s cubic-bezier(0.25, 0.8, 0.25, 1);
|
||||
}
|
||||
.alertify,
|
||||
.alertify * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.alertify .dialog {
|
||||
padding: 12px;
|
||||
}
|
||||
.alertify .dialog,
|
||||
.alertify .alert {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.alertify .dialog > div,
|
||||
.alertify .alert > div {
|
||||
background-color: #685d56;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.alertify .dialog > *,
|
||||
.alertify .alert > * {
|
||||
width: 400px;
|
||||
max-width: 95%;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
padding: 12px;
|
||||
background: #fff;
|
||||
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.14), 0 4px 5px 0 rgba(0, 0, 0, 0.098), 0 1px 10px 0 rgba(0, 0, 0, 0.084);
|
||||
}
|
||||
.alertify .dialog .msg,
|
||||
.alertify .alert .msg {
|
||||
padding: 12px;
|
||||
margin-bottom: 12px;
|
||||
margin: 0;
|
||||
text-align: left;
|
||||
}
|
||||
.alertify .dialog input:not(.form-control),
|
||||
.alertify .alert input:not(.form-control) {
|
||||
background-color: #302B28;
|
||||
color: #fafafa;
|
||||
border: 0px;
|
||||
border-radius: 5px;
|
||||
margin-bottom: 15px;
|
||||
width: 100%;
|
||||
font-size: 100%;
|
||||
padding: 12px;
|
||||
}
|
||||
.alertify .dialog nav,
|
||||
.alertify .alert nav {
|
||||
text-align: right;
|
||||
}
|
||||
.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button),
|
||||
.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button) {
|
||||
background-color: transparent;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
outline: 0;
|
||||
border: 0;
|
||||
display: inline-block;
|
||||
align-items: center;
|
||||
padding: 0 6px;
|
||||
margin: 6px 8px;
|
||||
line-height: 36px;
|
||||
min-height: 36px;
|
||||
white-space: nowrap;
|
||||
min-width: 88px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
color: #fafafa;
|
||||
border: 1px solid #302B28;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):hover,
|
||||
.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):hover,
|
||||
.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):active,
|
||||
.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):active {
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):focus,
|
||||
.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button):focus {
|
||||
border: 1px dotted #302B28;
|
||||
}
|
||||
.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button)::-moz-focus-inner,
|
||||
.alertify .alert nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button)::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
.alertify .dialog nav button.btn,
|
||||
.alertify .alert nav button.btn {
|
||||
margin: 6px 4px;
|
||||
}
|
||||
.alertify-logs {
|
||||
position: fixed;
|
||||
z-index: 99999;
|
||||
}
|
||||
.alertify-logs.bottom,
|
||||
.alertify-logs:not(.top) {
|
||||
bottom: 16px;
|
||||
}
|
||||
.alertify-logs.left,
|
||||
.alertify-logs:not(.right) {
|
||||
left: 16px;
|
||||
}
|
||||
.alertify-logs.left > *,
|
||||
.alertify-logs:not(.right) > * {
|
||||
float: left;
|
||||
transform: translate3d(0, 0, 0);
|
||||
height: auto;
|
||||
}
|
||||
.alertify-logs.left > *.show,
|
||||
.alertify-logs:not(.right) > *.show {
|
||||
left: 0;
|
||||
}
|
||||
.alertify-logs.left > *,
|
||||
.alertify-logs:not(.right) > *,
|
||||
.alertify-logs.left > *.hide,
|
||||
.alertify-logs:not(.right) > *.hide {
|
||||
left: -110%;
|
||||
}
|
||||
.alertify-logs.right {
|
||||
right: 16px;
|
||||
}
|
||||
.alertify-logs.right > * {
|
||||
float: right;
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
.alertify-logs.right > *.show {
|
||||
right: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
.alertify-logs.right > *,
|
||||
.alertify-logs.right > *.hide {
|
||||
right: -110%;
|
||||
opacity: 0;
|
||||
}
|
||||
.alertify-logs.top {
|
||||
top: 0;
|
||||
}
|
||||
.alertify-logs > * {
|
||||
box-sizing: border-box;
|
||||
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
|
||||
position: relative;
|
||||
clear: both;
|
||||
backface-visibility: hidden;
|
||||
perspective: 1000;
|
||||
max-height: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.alertify-logs > *.show {
|
||||
margin-top: 12px;
|
||||
opacity: 1;
|
||||
max-height: 1000px;
|
||||
padding: 12px;
|
||||
pointer-events: auto;
|
||||
}
|
||||
a.github-corner > svg {
|
||||
fill: #46E981;
|
||||
color: #302B28;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
@import "./variables.less";
|
||||
@import "./alertify.less";
|
||||
|
||||
.fontface(@family, @src, @style: normal, @weight: 400, @fmt: 'truetype'){
|
||||
@font-face{
|
||||
|
||||
@@ -9,8 +9,21 @@
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.toolbar-container {
|
||||
.cryptpad-lag {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
font: 12px Arial,Helvetica,Tahoma,Verdana,sans-serif;
|
||||
background: -webkit-linear-gradient(#EEEEEE, #DADADA); /* For Safari 5.1 to 6.0 */
|
||||
background: -o-linear-gradient(#f5f5f5, #DDDDDD); /* For Opera 11.1 to 12.0 */
|
||||
background: -moz-linear-gradient(#f5f5f5, #DDDDDD); /* For Firefox 3.6 to 15 */
|
||||
background: linear-gradient(#f5f5f5, #DDDDDD); /* Standard syntax */
|
||||
}
|
||||
|
||||
.cryptpad-toolbar {
|
||||
box-sizing: border-box;
|
||||
padding: 0px 6px;
|
||||
|
||||
.unselectable;
|
||||
|
||||
@@ -75,6 +88,7 @@
|
||||
|
||||
.cryptpad-state {
|
||||
line-height: 30px; /* equivalent to 26px + 2*2px margin used for buttons */
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rightside-button {
|
||||
@@ -120,9 +134,11 @@
|
||||
line-height: 32px;
|
||||
}
|
||||
.pencilIcon {
|
||||
display: none;
|
||||
//display: none;
|
||||
margin-left: 11px;
|
||||
&:hover {
|
||||
color: #999;
|
||||
margin-left: 0px;
|
||||
}
|
||||
span {
|
||||
cursor: pointer;
|
||||
|
||||
@@ -6,8 +6,24 @@
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.toolbar-container {
|
||||
font: 12px Arial, Helvetica, Tahoma, Verdana, sans-serif;
|
||||
background: -webkit-linear-gradient(#EEEEEE, #DADADA);
|
||||
/* For Safari 5.1 to 6.0 */
|
||||
background: -o-linear-gradient(#f5f5f5, #DDDDDD);
|
||||
/* For Opera 11.1 to 12.0 */
|
||||
background: -moz-linear-gradient(#f5f5f5, #DDDDDD);
|
||||
/* For Firefox 3.6 to 15 */
|
||||
background: linear-gradient(#f5f5f5, #DDDDDD);
|
||||
/* Standard syntax */
|
||||
}
|
||||
.toolbar-container .cryptpad-lag {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
}
|
||||
.cryptpad-toolbar {
|
||||
box-sizing: border-box;
|
||||
padding: 0px 6px;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
@@ -78,6 +94,7 @@
|
||||
.cryptpad-toolbar .cryptpad-state {
|
||||
line-height: 30px;
|
||||
/* equivalent to 26px + 2*2px margin used for buttons */
|
||||
float: left;
|
||||
}
|
||||
.cryptpad-toolbar .rightside-button {
|
||||
float: right;
|
||||
@@ -120,10 +137,11 @@
|
||||
line-height: 32px;
|
||||
}
|
||||
.cryptpad-toolbar-top .cryptpad-title .pencilIcon {
|
||||
display: none;
|
||||
margin-left: 11px;
|
||||
}
|
||||
.cryptpad-toolbar-top .cryptpad-title .pencilIcon:hover {
|
||||
color: #999;
|
||||
margin-left: 0px;
|
||||
}
|
||||
.cryptpad-toolbar-top .cryptpad-title .pencilIcon span {
|
||||
cursor: pointer;
|
||||
|
||||
Reference in New Issue
Block a user