Updated design settings and theme directory
Refs https://github.com/TryGhost/Team/issues/1149
This commit is contained in:
parent
8b5f62439d
commit
e0842183c0
@ -55,6 +55,12 @@ export default class SettingsDesignRoute extends AuthenticatedRoute {
|
||||
this.hasConfirmed = false;
|
||||
}
|
||||
|
||||
buildRouteInfoMetadata() {
|
||||
return {
|
||||
mainClasses: ['gh-main-fullwidth']
|
||||
};
|
||||
}
|
||||
|
||||
confirmUnsavedChanges() {
|
||||
if (!this.settings.get('hasDirtyAttributes') && !this.customThemeSettings.isDirty) {
|
||||
return Promise.resolve(true);
|
||||
|
@ -458,7 +458,7 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.td-item-desc span {
|
||||
.td-item-category {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
margin-left: 4px;
|
||||
@ -1381,7 +1381,7 @@ p.theme-validation-details {
|
||||
align-items: center;
|
||||
margin-bottom: 40px;
|
||||
padding: 6px 0;
|
||||
color: var(--darkgrey);
|
||||
color: var(--darkgrey-l1);
|
||||
font-size: 1.35rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: .2px;
|
||||
@ -1392,14 +1392,22 @@ p.theme-validation-details {
|
||||
display: block;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
margin-right: 8px;
|
||||
margin: 1px 8px 0 0;
|
||||
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);;
|
||||
}
|
||||
|
||||
.gh-nav-menu-back-button svg path {
|
||||
stroke: var(--darkgrey-l1);
|
||||
}
|
||||
|
||||
.gh-nav-menu-back-button:hover svg {
|
||||
transform: translateX(-3px)
|
||||
}
|
||||
|
||||
.gh-nav-menu-back-button:hover svg path {
|
||||
stroke: var(--black);
|
||||
}
|
||||
|
||||
.gh-nav-menu-back-button:hover {
|
||||
color: var(--black);
|
||||
}
|
||||
@ -1408,11 +1416,11 @@ p.theme-validation-details {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
margin-bottom: 8px;
|
||||
margin-bottom: 4px;
|
||||
padding: 8px var(--mainmenu-padding) 8px calc(var(--mainmenu-padding) + 7px);
|
||||
color: var(--black);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
font-weight: 500;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
|
||||
@ -1420,6 +1428,10 @@ p.theme-validation-details {
|
||||
background: var(--mainmenu-color-hover-bg);
|
||||
}
|
||||
|
||||
.gh-nav-design .gh-nav-menu-title:focus {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.gh-nav-design-tab {
|
||||
display: flex;
|
||||
position: relative;
|
||||
@ -1453,13 +1465,17 @@ p.theme-validation-details {
|
||||
align-items: center;
|
||||
color: var(--black);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.gh-nav-bottom .gh-nav-design-tab:focus span {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.gh-nav-bottom .gh-nav-design-tab .active-theme {
|
||||
color: var(--midgrey);
|
||||
font-size: 1.3rem;
|
||||
font-weight: 400;
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
|
||||
.gh-nav-design .gh-nav-list .active svg {
|
||||
@ -1472,7 +1488,7 @@ p.theme-validation-details {
|
||||
}
|
||||
|
||||
.gh-nav-design .gh-nav-bottom {
|
||||
padding: 32px 0;
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
.gh-nav-design .gh-nav-bottom svg {
|
||||
@ -1566,6 +1582,12 @@ p.theme-validation-details {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.gh-design {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.gh-design-page-preview-mode,
|
||||
.gh-design-page-preview-mode select {
|
||||
height: 34px;
|
||||
@ -1587,6 +1609,10 @@ p.theme-validation-details {
|
||||
fill: var(--midgrey);
|
||||
}
|
||||
|
||||
.gh-design .view-container {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.gh-themes-container-labs {
|
||||
margin-bottom: 40px;
|
||||
background: var(--main-color-content-greybg);
|
||||
@ -1699,6 +1725,10 @@ p.theme-validation-details {
|
||||
left: 24px;
|
||||
}
|
||||
|
||||
.td-item-labs {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.td-item-screenshot-labs {
|
||||
line-height: 0;
|
||||
border-radius: 0 0 3px 3px;
|
||||
@ -1708,6 +1738,28 @@ p.theme-validation-details {
|
||||
border-radius: 0 0 3px 3px;
|
||||
}
|
||||
|
||||
.theme-directory-labs .td-item-desc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.td-item-name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 4px;
|
||||
font-size: 1.6rem;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.td-item-labs .td-item-category {
|
||||
margin-left: 0;
|
||||
color: var(--midgrey);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.gh-theme-directory-footer-container {
|
||||
width: 100%;
|
||||
background: var(--main-color-content-greybg);
|
||||
|
@ -17,7 +17,7 @@
|
||||
<div class="gh-theme-directory-container-labs">
|
||||
<div class="theme-directory-labs">
|
||||
{{#each this.themesList as |theme|}}
|
||||
<LinkTo @route="settings.design.change-theme.view" @model={{theme.name}} class="td-item">
|
||||
<LinkTo @route="settings.design.change-theme.view" @model={{theme.name}} class="td-item td-item-labs">
|
||||
<div class="gh-theme-browser">
|
||||
<span class="gh-theme-browser-button"></span>
|
||||
</div>
|
||||
@ -25,13 +25,15 @@
|
||||
<img style="object-fit:contain;" src={{theme.image}} alt="{{theme.name}} Theme" />
|
||||
</div>
|
||||
<div class="td-item-desc">
|
||||
<div>{{theme.name}}</div>
|
||||
<span>• {{theme.category}}</span>
|
||||
{{#if theme.isActive}}
|
||||
<span class="gh-badge">Active</span>
|
||||
{{else if theme.isDefault}}
|
||||
<span class="gh-badge">Default</span>
|
||||
{{/if}}
|
||||
<div class="td-item-name">{{theme.name}}
|
||||
{{#if theme.isDefault}}
|
||||
(Default)
|
||||
{{/if}}
|
||||
{{#if theme.isActive}}
|
||||
<span class="gh-badge">Active</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="td-item-category">{{theme.category}}</div>
|
||||
</div>
|
||||
</LinkTo>
|
||||
{{/each}}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<section class="gh-canvas flex flex-column h-100">
|
||||
<section class="gh-canvas gh-design">
|
||||
<GhCanvasHeader class="gh-canvas-header">
|
||||
<h2 class="gh-canvas-title">Site design</h2>
|
||||
<section class="view-actions">
|
||||
|
@ -27,7 +27,7 @@
|
||||
</div>
|
||||
<div class="td-item-desc">
|
||||
<div>{{theme.name}}</div>
|
||||
<span>• {{theme.category}}</span>
|
||||
<span class="td-item-category">• {{theme.category}}</span>
|
||||
</div>
|
||||
</a>
|
||||
{{/each}}
|
||||
|
@ -1,9 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="17px" height="27px" viewBox="0 0 17 27" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 39.1 (31720) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>arrow-left3</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
|
||||
<g id="Stroke-42" transform="translate(2.000000, 2.000000)" stroke-width="3" stroke="#0B0B0A">
|
||||
<polyline points="13.5401 0.4256 0.3971 11.9256 13.5401 23.4256"></polyline>
|
||||
|
Before Width: | Height: | Size: 720 B After Width: | Height: | Size: 550 B |
Loading…
Reference in New Issue
Block a user