mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
commit
3713cc4755
@ -149,6 +149,9 @@
|
||||
this.$el.html(this.template(this.model.toJSON()));
|
||||
if (!this.model.attributes.settings.enabled) {
|
||||
this.$(".widget-content").html(this.addSubview(new WidgetContent({model: this.model})).render().el);
|
||||
} else {
|
||||
var size = !this.model.get('size') ? "1x1" : this.model.get('size');
|
||||
this.$el.find("[data-size='" + size + "']").addClass('active');
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
@ -349,6 +349,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.widget-settings {
|
||||
.widget-content {
|
||||
background-image: none;
|
||||
}
|
||||
.widget-footer {
|
||||
background: inherit;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
} // .widget-image
|
||||
|
||||
/* ==========================================================================
|
||||
|
@ -12,7 +12,7 @@
|
||||
</section>
|
||||
<footer class="widget-footer">
|
||||
<div class="widget-size-options">
|
||||
<div class="size-options-container active js-widget-resizer" data-size="1x1">
|
||||
<div class="size-options-container js-widget-resizer" data-size="1x1">
|
||||
<span class="mini-widget size-1x1 active"></span>
|
||||
<span class="mini-widget size-1x1"></span>
|
||||
<span class="mini-widget size-1x1"></span>
|
||||
|
Loading…
Reference in New Issue
Block a user