mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Made design settings sidenav footer sticky
This commit is contained in:
parent
875f3156c7
commit
829fc138a2
@ -42,13 +42,15 @@
|
||||
</div>
|
||||
|
||||
<div class="gh-nav-bottom">
|
||||
<LinkTo class="gh-nav-design-tab" @route="settings.design.change-theme" {{on "click" this.closeAllSections}}>
|
||||
<div>
|
||||
<span>Change theme</span>
|
||||
<span class="active-theme">Current: {{this.activeTheme.name}}{{#if this.activeTheme.package.version}} - v{{this.activeTheme.package.version}}{{/if}}</span>
|
||||
</div>
|
||||
<div class="gh-nav-design-tabicon">{{svg-jar "sync"}}</div>
|
||||
</LinkTo>
|
||||
<div class="gh-change-theme">
|
||||
<LinkTo class="gh-nav-design-tab" @route="settings.design.change-theme" {{on "click" this.closeAllSections}}>
|
||||
<div>
|
||||
<span>Change theme</span>
|
||||
<span class="active-theme">Current: {{this.activeTheme.name}}{{#if this.activeTheme.package.version}} - v{{this.activeTheme.package.version}}{{/if}}</span>
|
||||
</div>
|
||||
<div class="gh-nav-design-tabicon">{{svg-jar "sync"}}</div>
|
||||
</LinkTo>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
@ -1512,7 +1512,45 @@ p.theme-validation-details {
|
||||
}
|
||||
|
||||
.gh-nav-design .gh-nav-bottom {
|
||||
padding: 40px 0;
|
||||
position: sticky;
|
||||
-webkit-position: sticky;
|
||||
bottom: -24px;
|
||||
z-index: 997;
|
||||
height: 120px;
|
||||
padding: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.gh-nav-design .gh-nav-bottom::before,
|
||||
.gh-nav-design .gh-nav-bottom::after {
|
||||
content: "";
|
||||
position: sticky;
|
||||
-webkit-position: sticky;
|
||||
display: block;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.gh-nav-design .gh-nav-bottom::before {
|
||||
z-index: 998;
|
||||
bottom: 0;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.gh-nav-design .gh-nav-bottom::after {
|
||||
bottom: 72px;
|
||||
box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 -8px 16px -3px rgba(0,0,0,.15);
|
||||
}
|
||||
|
||||
.gh-change-theme {
|
||||
position: sticky;
|
||||
-webkit-position: sticky;
|
||||
bottom: 0;
|
||||
z-index: 999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 96px;
|
||||
margin-bottom: -24px;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.gh-nav-design-tabicon {
|
||||
|
Loading…
Reference in New Issue
Block a user