Commit 3361b3bf authored by webchick's avatar webchick

#987102 by Jeff Burnz, tim.plunkett: Fixed Preview logo not removed when logo...

#987102 by Jeff Burnz, tim.plunkett: Fixed Preview logo not removed when logo theme setting is off in Bartik
parent b9a0db2f
...@@ -29,7 +29,7 @@ html.js #preview { ...@@ -29,7 +29,7 @@ html.js #preview {
} }
#preview-logo { #preview-logo {
float: left; float: left;
padding: 15px 30px 15px 10px; padding: 15px 15px 15px 10px;
} }
#preview-site-name { #preview-site-name {
color: #686868; color: #686868;
...@@ -37,6 +37,7 @@ html.js #preview { ...@@ -37,6 +37,7 @@ html.js #preview {
font-size: 1.821em; font-size: 1.821em;
line-height: 1; line-height: 1;
margin-bottom: 30px; margin-bottom: 30px;
margin-left: 15px;
padding-top: 34px; padding-top: 34px;
} }
#preview-main-menu { #preview-main-menu {
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
$('#preview #preview-logo img').attr('src', Drupal.settings.color.logo); $('#preview #preview-logo img').attr('src', Drupal.settings.color.logo);
this.logoChanged = true; this.logoChanged = true;
} }
// Remove the logo if the setting is toggled off.
if (Drupal.settings.color.logo == null) {
$('div').remove('#preview-logo');
}
// Solid background. // Solid background.
$('#preview', form).css('backgroundColor', $('#palette input[name="palette[bg]"]', form).val()); $('#preview', form).css('backgroundColor', $('#palette input[name="palette[bg]"]', form).val());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment