#987102 by Jeff Burnz, tim.plunkett: Fixed Preview logo not removed when logo theme setting is off in Bartik
parent
b9a0db2fb2
commit
3361b3bfc2
|
@ -29,7 +29,7 @@ html.js #preview {
|
|||
}
|
||||
#preview-logo {
|
||||
float: left;
|
||||
padding: 15px 30px 15px 10px;
|
||||
padding: 15px 15px 15px 10px;
|
||||
}
|
||||
#preview-site-name {
|
||||
color: #686868;
|
||||
|
@ -37,6 +37,7 @@ html.js #preview {
|
|||
font-size: 1.821em;
|
||||
line-height: 1;
|
||||
margin-bottom: 30px;
|
||||
margin-left: 15px;
|
||||
padding-top: 34px;
|
||||
}
|
||||
#preview-main-menu {
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
$('#preview #preview-logo img').attr('src', Drupal.settings.color.logo);
|
||||
this.logoChanged = true;
|
||||
}
|
||||
// Remove the logo if the setting is toggled off.
|
||||
if (Drupal.settings.color.logo == null) {
|
||||
$('div').remove('#preview-logo');
|
||||
}
|
||||
|
||||
// Solid background.
|
||||
$('#preview', form).css('backgroundColor', $('#palette input[name="palette[bg]"]', form).val());
|
||||
|
|
Loading…
Reference in New Issue