mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 15:29:19 +03:00
Added open/close animation for design settings sidebar groups
refs https://github.com/TryGhost/Team/issues/1149 - basic switch to `{{liquid-if}}` for animating the expand/collapse interaction
This commit is contained in:
parent
3f0dbb0e8b
commit
6dd1d058e5
@ -10,13 +10,13 @@
|
||||
<span class="gh-nav-button-expand">{{svg-jar (if isOpen "arrow-down-stroke" "arrow-right-stroke")}}</span>
|
||||
{{svg-jar "paintbrush"}}Brand
|
||||
</button>
|
||||
{{#if isOpen}}
|
||||
{{#liquid-if isOpen}}
|
||||
<div class="gh-nav-design-settings">
|
||||
<Settings::Design::GeneralSettingsForm
|
||||
@updatePreview={{perform this.themeManagement.updatePreviewHtmlTask}}
|
||||
/>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/liquid-if}}
|
||||
{{/let}}
|
||||
|
||||
{{#each this.customThemeSettings.settingGroups as |group|}}
|
||||
@ -26,14 +26,14 @@
|
||||
{{svg-jar group.icon}} {{group.name}}
|
||||
</button>
|
||||
|
||||
{{#if isOpen}}
|
||||
{{#liquid-if isOpen}}
|
||||
<div class="gh-nav-design-settings">
|
||||
<Settings::Design::ThemeSettingsForm
|
||||
@themeSettings={{group.settings}}
|
||||
@updatePreview={{perform this.themeManagement.updatePreviewHtmlTask}}
|
||||
/>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/liquid-if}}
|
||||
{{/let}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user