1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 01:57:19 +00:00

Rename "tw-error-*" classes to "tc-error-*"

Part of #764
This commit is contained in:
Jermolene 2014-08-28 17:39:32 +01:00
parent 35a3224dba
commit 53368ba5fa
2 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ Basic styles used before we boot up the parsing engine
Error message and password prompt Error message and password prompt
*/ */
.tc-password-wrapper, .tw-error-form { .tc-password-wrapper, .tc-error-form {
font-family: sans-serif; font-family: sans-serif;
z-index: 20000; z-index: 20000;
position: fixed; position: fixed;
@ -22,7 +22,7 @@ Error message and password prompt
border-radius: 8px; border-radius: 8px;
} }
.tw-error-form { .tc-error-form {
color: #fff; color: #fff;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
background-color: rgb(255, 75, 75); background-color: rgb(255, 75, 75);
@ -31,11 +31,11 @@ Error message and password prompt
margin-left: -244px; /* - width/2 - paddingHorz/2 - border */ margin-left: -244px; /* - width/2 - paddingHorz/2 - border */
} }
.tw-error-form div { .tc-error-form div {
padding-bottom: 1em; padding-bottom: 1em;
} }
.tw-error-prompt { .tc-error-prompt {
color: #000; color: #000;
text-shadow: none; text-shadow: none;
} }

View File

@ -139,10 +139,10 @@ $tw.utils.error = function(err) {
// Display an error message to the user // Display an error message to the user
var dm = $tw.utils.domMaker, var dm = $tw.utils.domMaker,
heading = dm("h1",{text: errHeading}), heading = dm("h1",{text: errHeading}),
prompt = dm("div",{text: promptMsg, "class": "tw-error-prompt"}), prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}),
message = dm("div",{text: err}), message = dm("div",{text: err}),
button = dm("button",{text: "close"}), button = dm("button",{text: "close"}),
form = dm("form",{children: [heading,prompt,message,button], "class": "tw-error-form"}); form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"});
document.body.insertBefore(form,document.body.firstChild); document.body.insertBefore(form,document.body.firstChild);
form.addEventListener("submit",function(event) { form.addEventListener("submit",function(event) {
document.body.removeChild(form); document.body.removeChild(form);