From 53368ba5fa96d60a44a6c15bf606f5b37efb38fb Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 28 Aug 2014 17:39:32 +0100 Subject: [PATCH] Rename "tw-error-*" classes to "tc-error-*" Part of #764 --- boot/boot.css.tid | 8 ++++---- boot/boot.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/boot/boot.css.tid b/boot/boot.css.tid index 21363cc03..2cf486be8 100644 --- a/boot/boot.css.tid +++ b/boot/boot.css.tid @@ -9,7 +9,7 @@ Basic styles used before we boot up the parsing engine Error message and password prompt */ -.tc-password-wrapper, .tw-error-form { +.tc-password-wrapper, .tc-error-form { font-family: sans-serif; z-index: 20000; position: fixed; @@ -22,7 +22,7 @@ Error message and password prompt border-radius: 8px; } -.tw-error-form { +.tc-error-form { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); background-color: rgb(255, 75, 75); @@ -31,11 +31,11 @@ Error message and password prompt margin-left: -244px; /* - width/2 - paddingHorz/2 - border */ } -.tw-error-form div { +.tc-error-form div { padding-bottom: 1em; } -.tw-error-prompt { +.tc-error-prompt { color: #000; text-shadow: none; } diff --git a/boot/boot.js b/boot/boot.js index 84cef0a7f..32294c881 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -139,10 +139,10 @@ $tw.utils.error = function(err) { // Display an error message to the user var dm = $tw.utils.domMaker, 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}), 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); form.addEventListener("submit",function(event) { document.body.removeChild(form);