mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
commit
3713cc4755
@ -149,6 +149,9 @@
|
|||||||
this.$el.html(this.template(this.model.toJSON()));
|
this.$el.html(this.template(this.model.toJSON()));
|
||||||
if (!this.model.attributes.settings.enabled) {
|
if (!this.model.attributes.settings.enabled) {
|
||||||
this.$(".widget-content").html(this.addSubview(new WidgetContent({model: this.model})).render().el);
|
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;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -349,6 +349,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.widget-settings {
|
||||||
|
.widget-content {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
.widget-footer {
|
||||||
|
background: inherit;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} // .widget-image
|
} // .widget-image
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<footer class="widget-footer">
|
<footer class="widget-footer">
|
||||||
<div class="widget-size-options">
|
<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 active"></span>
|
||||||
<span class="mini-widget size-1x1"></span>
|
<span class="mini-widget size-1x1"></span>
|
||||||
<span class="mini-widget size-1x1"></span>
|
<span class="mini-widget size-1x1"></span>
|
||||||
|
Loading…
Reference in New Issue
Block a user