Make white background permanent

(imported from commit a9164b8f800cbc992ec72e9125a5adb08bb97615)
This commit is contained in:
Allen Rabinovich
2013-12-10 10:45:13 -07:00
parent 6721c465c9
commit c51a2355ee
3 changed files with 2 additions and 27 deletions

View File

@@ -47,7 +47,6 @@ exports.use_socket = page_params.staging;
exports.clicking_notification_causes_narrow = page_params.staging || is_customer4 ||
_.contains(['customer25.invalid', 'mit.edu', 'customer21.invalid'], page_params.domain);
exports.experimental_background = page_params.staging || _.contains(['mit.edu'], page_params.domain);
exports.full_width = page_params.staging;
exports.show_digest_email_setting = page_params.staging;

View File

@@ -851,25 +851,6 @@ exports.collapse_recipient_group = function (row) {
/* EXPERIMENTS */
/* This method allows an advanced user to use the console
* to switch to a different pair of backgrounds for home
* view and narrowed view. It either defaults to a specific
* pair of colors, or allows the user to specify them.
*/
exports.switchBackground = function (homecolor, narrowcolor) {
homecolor = homecolor || "#ffffff";
narrowcolor = narrowcolor || "#effcff";
$("#white-background-style").remove();
$('head').append('<style id="white-background-style" type="text/css">' +
'body, #tab_bar, #tab_bar_underpadding, .message_list, #compose-container {' +
'background-color: ' + homecolor + '; }' +
'body.narrowed_view, .narrowed_view #tab_bar, .narrowed_view #tab_bar_underpadding,' +
'.narrowed_view .message_list, .narrowed_view #compose-container {' +
'background-color: ' + narrowcolor + '; }' +
'</style>');
return ("Background has been changed");
};
/* This method allows an advanced user to use the console
* to switch the application to span full width of the browser.
*/
@@ -1649,11 +1630,6 @@ $(function () {
$("#group-pm-list").hide();
}
// UI experiments
if (feature_flags.experimental_background) {
exports.switchBackground();
}
if (feature_flags.full_width) {
exports.switchToFullWidth();
}

View File

@@ -15,7 +15,7 @@ body,
#tab_bar_underpadding,
.message_list,
#compose-container {
background-color: #f4f5f4;
background-color: ##ffffff;
-webkit-transition: background-color 200ms linear;
-moz-transition: background-color 200ms linear;
-o-transition: background-color 200ms linear;
@@ -28,7 +28,7 @@ body.narrowed_view,
.narrowed_view #tab_bar_underpadding,
.narrowed_view .message_list,
.narrowed_view #compose-container {
background-color: #f0f8ff;
background-color: #effcff;
-webkit-transition: background-color 200ms linear;
-moz-transition: background-color 200ms linear;
-o-transition: background-color 200ms linear;