mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-09 08:25:00 -04:00
refactor index inline css into external css file
This commit is contained in:
parent
309e3b0994
commit
3745873e13
3 changed files with 170 additions and 175 deletions
107
static/css/index.css
Normal file
107
static/css/index.css
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
height: 100%;
|
||||||
|
color: #333;
|
||||||
|
font: 14px helvetica, sans-serif;
|
||||||
|
background: #ddd;
|
||||||
|
background: -webkit-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
||||||
|
background: -moz-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
||||||
|
background: -ms-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
||||||
|
background: -o-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
||||||
|
border-top: 8px solid rgba(51,51,51,.8);
|
||||||
|
}
|
||||||
|
#wrapper {
|
||||||
|
border-top: 1px solid #999;
|
||||||
|
margin-top: 160px;
|
||||||
|
padding: 15px;
|
||||||
|
background: #eee;
|
||||||
|
background: -webkit-linear-gradient(#fff,#ccc);
|
||||||
|
background: -moz-linear-gradient(#fff,#ccc);
|
||||||
|
background: -ms-linear-gradient(#fff,#ccc);
|
||||||
|
background: -o-linear-gradient(#fff,#ccc);
|
||||||
|
opacity: .9;
|
||||||
|
box-shadow: 0px 1px 8px rgba(0,0,0,0.3);
|
||||||
|
}
|
||||||
|
#inner {
|
||||||
|
width: 300px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
#button {
|
||||||
|
margin: 0 auto;
|
||||||
|
border-radius: 3px;
|
||||||
|
text-align: center;
|
||||||
|
font: 36px verdana,arial,sans-serif;
|
||||||
|
color: white;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.8);
|
||||||
|
height: 70px;
|
||||||
|
line-height: 70px;
|
||||||
|
background: #555;
|
||||||
|
background: -webkit-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
||||||
|
background: -moz-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
||||||
|
background: -ms-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
||||||
|
background: -o-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
||||||
|
box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
|
||||||
|
}
|
||||||
|
#button:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
background: #666;
|
||||||
|
background: -webkit-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
||||||
|
background: -moz-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
||||||
|
background: -ms-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
||||||
|
background: -o-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
||||||
|
}
|
||||||
|
#button:active {
|
||||||
|
box-shadow: inset 0 1px 12px rgba(0,0,0,0.9);
|
||||||
|
background: #444;
|
||||||
|
}
|
||||||
|
#label {
|
||||||
|
text-align: left;
|
||||||
|
text-shadow: 0 1px 1px #fff;
|
||||||
|
margin: 16px auto 0;
|
||||||
|
}
|
||||||
|
form {
|
||||||
|
height: 38px;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
border-radius: 3px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
button, input {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
input[type="text"] {
|
||||||
|
border-radius: 3px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
padding: 0 45px 0 10px;
|
||||||
|
*padding: 0; /* IE7 hack */
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
outline: none;
|
||||||
|
border: none;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
button[type="submit"] {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
width: 45px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
@media only screen and (min-device-width: 320px) and (max-device-width: 720px) {
|
||||||
|
body {
|
||||||
|
background: #bbb;
|
||||||
|
background: -webkit-linear-gradient(#aaa,#eee 60%) center fixed;
|
||||||
|
background: -moz-linear-gradient(#aaa,#eee 60%) center fixed;
|
||||||
|
background: -ms-linear-gradient(#aaa,#eee 60%) center fixed;
|
||||||
|
}
|
||||||
|
#wrapper {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
#inner {
|
||||||
|
width: 95%;
|
||||||
|
}
|
||||||
|
#label {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,161 +1,49 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
|
<title>Etherpad Lite</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
||||||
|
<link href="static/css/index.css" rel="stylesheet">
|
||||||
|
<link href="static/custom/index.css" rel="stylesheet">
|
||||||
|
|
||||||
<title>Etherpad Lite</title>
|
<div id="wrapper">
|
||||||
|
<div id="inner">
|
||||||
<meta charset="utf-8">
|
<div id="button" onclick="go2Random()" class="translate">New Pad</div>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
|
<div id="label" class="translate">or create/open a Pad with the name</div>
|
||||||
|
<form action="#" onsubmit="go2Name();return false;">
|
||||||
<style>
|
<input type="text" id="padname" autofocus x-webkit-speech>
|
||||||
body {
|
<button type="submit">OK</button>
|
||||||
margin: 0;
|
</form>
|
||||||
height: 100%;
|
|
||||||
color: #333;
|
|
||||||
font: 14px helvetica, sans-serif;
|
|
||||||
background: #ddd;
|
|
||||||
background: -webkit-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
|
||||||
background: -moz-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
|
||||||
background: -ms-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
|
||||||
background: -o-radial-gradient(circle,#aaa,#eee 60%) center fixed;
|
|
||||||
border-top: 8px solid rgba(51,51,51,.8);
|
|
||||||
}
|
|
||||||
#wrapper {
|
|
||||||
border-top: 1px solid #999;
|
|
||||||
margin-top: 160px;
|
|
||||||
padding: 15px;
|
|
||||||
background: #eee;
|
|
||||||
background: -webkit-linear-gradient(#fff,#ccc);
|
|
||||||
background: -moz-linear-gradient(#fff,#ccc);
|
|
||||||
background: -ms-linear-gradient(#fff,#ccc);
|
|
||||||
background: -o-linear-gradient(#fff,#ccc);
|
|
||||||
opacity: .9;
|
|
||||||
box-shadow: 0px 1px 8px rgba(0,0,0,0.3);
|
|
||||||
}
|
|
||||||
#inner {
|
|
||||||
width: 300px;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
#button {
|
|
||||||
margin: 0 auto;
|
|
||||||
border-radius: 3px;
|
|
||||||
text-align: center;
|
|
||||||
font: 36px verdana,arial,sans-serif;
|
|
||||||
color: white;
|
|
||||||
text-shadow: 0 -1px 0 rgba(0,0,0,.8);
|
|
||||||
height: 70px;
|
|
||||||
line-height: 70px;
|
|
||||||
background: #555;
|
|
||||||
background: -webkit-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
|
||||||
background: -moz-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
|
||||||
background: -ms-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
|
||||||
background: -o-linear-gradient(#5F5F5F,#565656 50%,#4C4C4C 51%,#373737);
|
|
||||||
box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
|
|
||||||
}
|
|
||||||
#button:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
background: #666;
|
|
||||||
background: -webkit-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
|
||||||
background: -moz-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
|
||||||
background: -ms-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
|
||||||
background: -o-linear-gradient(#707070,#666666 50%,#5B5B5B 51%,#474747);
|
|
||||||
}
|
|
||||||
#button:active {
|
|
||||||
box-shadow: inset 0 1px 12px rgba(0,0,0,0.9);
|
|
||||||
background: #444;
|
|
||||||
}
|
|
||||||
#label {
|
|
||||||
text-align: left;
|
|
||||||
text-shadow: 0 1px 1px #fff;
|
|
||||||
margin: 16px auto 0;
|
|
||||||
}
|
|
||||||
form {
|
|
||||||
height: 38px;
|
|
||||||
background: #fff;
|
|
||||||
border: 1px solid #bbb;
|
|
||||||
border-radius: 3px;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
button, input {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
input[type="text"] {
|
|
||||||
border-radius: 3px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
padding: 0 45px 0 10px;
|
|
||||||
*padding: 0; /* IE7 hack */
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
outline: none;
|
|
||||||
border: none;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
button[type="submit"] {
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
width: 45px;
|
|
||||||
height: 38px;
|
|
||||||
}
|
|
||||||
@media only screen and (min-device-width: 320px) and (max-device-width: 720px) {
|
|
||||||
body {
|
|
||||||
background: #bbb;
|
|
||||||
background: -webkit-linear-gradient(#aaa,#eee 60%) center fixed;
|
|
||||||
background: -moz-linear-gradient(#aaa,#eee 60%) center fixed;
|
|
||||||
background: -ms-linear-gradient(#aaa,#eee 60%) center fixed;
|
|
||||||
}
|
|
||||||
#wrapper {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
#inner {
|
|
||||||
width: 95%;
|
|
||||||
}
|
|
||||||
#label {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<link href="static/custom/index.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<div id="wrapper">
|
|
||||||
<div id="inner">
|
|
||||||
<div id="button" onclick="go2Random()" class="translate">New Pad</div>
|
|
||||||
<div id="label" class="translate">or create/open a Pad with the name</div>
|
|
||||||
<form action="#" onsubmit="go2Name();return false;">
|
|
||||||
<input type="text" id="padname" autofocus x-webkit-speech>
|
|
||||||
<button type="submit">OK</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script src="static/custom/index.js"></script>
|
<script src="static/custom/index.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function go2Name()
|
function go2Name()
|
||||||
{
|
{
|
||||||
var padname = document.getElementById("padname").value;
|
var padname = document.getElementById("padname").value;
|
||||||
padname.length > 0 ? window.location = "p/" + padname : alert("Please enter a name")
|
padname.length > 0 ? window.location = "p/" + padname : alert("Please enter a name")
|
||||||
}
|
}
|
||||||
|
|
||||||
function go2Random()
|
|
||||||
{
|
|
||||||
window.location = "p/" + randomPadName();
|
|
||||||
}
|
|
||||||
|
|
||||||
function randomPadName()
|
|
||||||
{
|
|
||||||
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
||||||
var string_length = 10;
|
|
||||||
var randomstring = '';
|
|
||||||
for (var i = 0; i < string_length; i++)
|
|
||||||
{
|
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
|
||||||
randomstring += chars.substring(rnum, rnum + 1);
|
|
||||||
}
|
|
||||||
return randomstring;
|
|
||||||
}
|
|
||||||
|
|
||||||
// start the custom js
|
|
||||||
if (typeof customStart == "function") customStart();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
function go2Random()
|
||||||
|
{
|
||||||
|
window.location = "p/" + randomPadName();
|
||||||
|
}
|
||||||
|
|
||||||
|
function randomPadName()
|
||||||
|
{
|
||||||
|
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||||
|
var string_length = 10;
|
||||||
|
var randomstring = '';
|
||||||
|
for (var i = 0; i < string_length; i++)
|
||||||
|
{
|
||||||
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
|
randomstring += chars.substring(rnum, rnum + 1);
|
||||||
|
}
|
||||||
|
return randomstring;
|
||||||
|
}
|
||||||
|
|
||||||
|
// start the custom js
|
||||||
|
if (typeof customStart == "function") customStart();
|
||||||
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<li id="clearAuthorship" onClick="window.pad&&pad.editbarClick('clearauthorship');return false;">
|
<li id="clearAuthorship" onClick="window.pad&&pad.editbarClick('clearauthorship');return false;">
|
||||||
<a class="buttonicon buttonicon-clearauthorship" title="Clear Authorship Colors"></a>
|
<a class="buttonicon buttonicon-clearauthorship" title="Clear Authorship Colors"></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul id="menu_right">
|
<ul id="menu_right">
|
||||||
<li id="settingslink" onClick="window.pad&&pad.editbarClick('settings');return false;">
|
<li id="settingslink" onClick="window.pad&&pad.editbarClick('settings');return false;">
|
||||||
<a class="buttonicon buttonicon-settings" id="settingslink" title="Settings of this pad"></a>
|
<a class="buttonicon buttonicon-settings" id="settingslink" title="Settings of this pad"></a>
|
||||||
|
@ -81,17 +81,17 @@
|
||||||
<button id="mycolorpickersave">Save</button>
|
<button id="mycolorpickersave">Save</button>
|
||||||
<button id="mycolorpickercancel">Cancel</button>
|
<button id="mycolorpickercancel">Cancel</button>
|
||||||
<span id="mycolorpickerpreview" class="myswatchboxhoverable"></span>
|
<span id="mycolorpickerpreview" class="myswatchboxhoverable"></span>
|
||||||
</div>
|
</div>
|
||||||
<div id="myswatchbox"><div id="myswatch"></div></div>
|
<div id="myswatchbox"><div id="myswatch"></div></div>
|
||||||
<div id="myusernameform"><input type="text" id="myusernameedit" disabled="disabled"></div>
|
<div id="myusernameform"><input type="text" id="myusernameedit" disabled="disabled"></div>
|
||||||
<div id="mystatusform"><input type="text" id="mystatusedit" disabled="disabled"></div>
|
<div id="mystatusform"><input type="text" id="mystatusedit" disabled="disabled"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="otherusers">
|
<div id="otherusers">
|
||||||
<div id="guestprompts"></div>
|
<div id="guestprompts"></div>
|
||||||
<table id="otheruserstable" cellspacing="0" cellpadding="0" border="0">
|
<table id="otheruserstable" cellspacing="0" cellpadding="0" border="0">
|
||||||
<tr><td></td></tr>
|
<tr><td></td></tr>
|
||||||
</table>
|
</table>
|
||||||
<div id="nootherusers"></div>
|
<div id="nootherusers"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="userlistbuttonarea"></div>
|
<div id="userlistbuttonarea"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -136,20 +136,20 @@
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h2>Import from text file, HTML, PDF, Word, ODT or RTF</h2><br>
|
<h2>Import from text file, HTML, PDF, Word, ODT or RTF</h2><br>
|
||||||
<form id="importform" method="post" action="" target="importiframe" enctype="multipart/form-data">
|
<form id="importform" method="post" action="" target="importiframe" enctype="multipart/form-data">
|
||||||
<div class="importformdiv" id="importformfilediv">
|
<div class="importformdiv" id="importformfilediv">
|
||||||
<input type="file" name="file" size="15" id="importfileinput">
|
<input type="file" name="file" size="15" id="importfileinput">
|
||||||
<div class="importmessage" id="importmessagefail"></div>
|
<div class="importmessage" id="importmessagefail"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="import"></div>
|
<div id="import"></div>
|
||||||
<div class="importmessage" id="importmessagesuccess">Successful!</div>
|
<div class="importmessage" id="importmessagesuccess">Successful!</div>
|
||||||
<div class="importformdiv" id="importformsubmitdiv">
|
<div class="importformdiv" id="importformsubmitdiv">
|
||||||
<input type="hidden" name="padId" value="blpmaXT35R">
|
<input type="hidden" name="padId" value="blpmaXT35R">
|
||||||
<span class="nowrap">
|
<span class="nowrap">
|
||||||
<input type="submit" name="submit" value="Import Now" disabled="disabled" id="importsubmitinput">
|
<input type="submit" name="submit" value="Import Now" disabled="disabled" id="importsubmitinput">
|
||||||
<img alt="" id="importstatusball" src="../static/img/loading.gif" align="top">
|
<img alt="" id="importstatusball" src="../static/img/loading.gif" align="top">
|
||||||
<img alt="" id="importarrow" src="../static/img/leftarrow.png" align="top">
|
<img alt="" id="importarrow" src="../static/img/leftarrow.png" align="top">
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
@ -209,7 +209,7 @@
|
||||||
<div id="modaloverlay">
|
<div id="modaloverlay">
|
||||||
<div id="modaloverlay-inner"></div>
|
<div id="modaloverlay-inner"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="mainmodals">
|
<div id="mainmodals">
|
||||||
<div id="connectionbox" class="modaldialog">
|
<div id="connectionbox" class="modaldialog">
|
||||||
<div id="connectionboxinner" class="modaldialog-inner">
|
<div id="connectionboxinner" class="modaldialog-inner">
|
||||||
|
@ -254,7 +254,7 @@
|
||||||
<input type="hidden" class="missedChanges" name="missedChanges">
|
<input type="hidden" class="missedChanges" name="missedChanges">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" src="../static/js/require-kernel.js"></script>
|
<script type="text/javascript" src="../static/js/require-kernel.js"></script>
|
||||||
|
@ -275,5 +275,5 @@
|
||||||
padimpexp = require('/pad_impexp').padimpexp;
|
padimpexp = require('/pad_impexp').padimpexp;
|
||||||
}());
|
}());
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue