mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2024-11-10 02:28:02 +00:00
Header settings cleanup
This commit is contained in:
parent
5424c465fb
commit
21c6f59a61
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -110,40 +110,47 @@ production stylesheet in assets/built/screen.css
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
padding-top: 64px;
|
||||
align-items: center;
|
||||
padding-top: 6.4vmin;
|
||||
padding-bottom: 6.4vmin;
|
||||
color: var(--color-darkgrey);
|
||||
}
|
||||
|
||||
.site-header-content.vertical {
|
||||
align-items: center;
|
||||
padding-top: 84px;
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
|
||||
.has-cover-image .site-header-content {
|
||||
min-height: 600px;
|
||||
padding-top: 104px;
|
||||
padding-top: 10vmin;
|
||||
background-color: var(--ghost-accent-color);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body:not(.has-cover-image) .site-header-content:not(.vertical) {
|
||||
padding-top: 104px;
|
||||
padding-bottom: 24px;
|
||||
body:not(.has-cover-image) .site-header-content:not(.left-aligned) {
|
||||
padding-bottom: 3.2vmin;
|
||||
}
|
||||
|
||||
.site-header-content.left-aligned {
|
||||
padding-top: 10vmin;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.has-cover-image .site-header-content.left-aligned {
|
||||
align-items: flex-end;
|
||||
padding-bottom: 6.4vmin;
|
||||
}
|
||||
|
||||
.site-header-content.no-content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.site-header-inner {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.site-header-content.vertical .site-header-inner {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
.site-header-content.left-aligned .site-header-inner {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.site-logo {
|
||||
@ -177,21 +184,11 @@ body:not(.has-cover-image) .site-header-content:not(.vertical) {
|
||||
|
||||
.site-description {
|
||||
z-index: 10;
|
||||
margin-top: 8px;
|
||||
max-width: 560px;
|
||||
font-size: 2rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.site-header-content.vertical .site-description {
|
||||
margin: 0 auto;
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
|
||||
.site-header-content.vertical .site-title + .site-description {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.site-header-content {
|
||||
padding-bottom: 36px;
|
||||
|
@ -18,7 +18,7 @@
|
||||
{{ghost_head}}
|
||||
|
||||
</head>
|
||||
<body class="{{body_class}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Modern sans-serif"}} has-sans-body{{/match}}{{#if @custom.show_publication_cover}} has-cover-image{{/if}}{{#is "home"}}{{#match @custom.about_section "!=" "None"}}{{#if @custom.include_logo_in_about_section}} no-logo{{/if}}{{/match}}{{/is}}">
|
||||
<body class="{{body_class}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Modern sans-serif"}} has-sans-body{{/match}}{{#if @custom.show_publication_cover}} has-cover-image{{/if}}{{#is "home"}}{{#match @custom.header_style "!=" "Hidden"}}{{#if @custom.site_logo_in_main_navigation}} no-logo{{/if}}{{/match}}{{/is}}">
|
||||
<div class="viewport">
|
||||
|
||||
<header id="gh-head" class="gh-head outer">
|
||||
|
35
index.hbs
35
index.hbs
@ -2,7 +2,7 @@
|
||||
{{!-- The tag above means: insert everything in this file
|
||||
into the {body} of the default.hbs template --}}
|
||||
|
||||
<div class="site-header-content outer{{#match @custom.about_section "Vertical"}} vertical{{/match}}">
|
||||
<div class="site-header-content outer{{#match @custom.header_style "Left aligned"}} left-aligned{{/match}}{{#unless @custom.show_publication_cover}}{{#match @custom.header_style "Hidden"}}{{/match}} no-content{{/unless}}">
|
||||
|
||||
{{#if @custom.show_publication_cover}}
|
||||
{{#if @site.cover_image}}
|
||||
@ -20,34 +20,19 @@ into the {body} of the default.hbs template --}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#match @custom.about_section "!=" "None"}}
|
||||
<section class="site-header-inner inner">
|
||||
{{#if @custom.include_logo_in_about_section}}
|
||||
{{#match @custom.header_style "!=" "Hidden"}}
|
||||
<div class="site-header-inner inner">
|
||||
{{#if @custom.site_logo_in_main_navigation}}
|
||||
{{#if @site.logo}}
|
||||
<img class="site-logo" src="{{@site.logo}}" alt="{{@site.title}}">
|
||||
{{else}}
|
||||
<h1 class="site-title">{{@site.title}}</h1>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<div class="site-header-wrapper">
|
||||
{{#match @custom.about_section "Horizontal"}}
|
||||
{{#if @site.logo}}
|
||||
<h1 class="site-title">{{@site.title}}</h1>
|
||||
{{else}}
|
||||
{{#if @custom.include_logo_in_about_section}}
|
||||
<h1 class="site-title">{{@site.title}}</h1>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if @custom.include_logo_in_about_section}}
|
||||
{{#unless @site.logo}}
|
||||
<h1 class="site-title">{{@site.title}}</h1>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/match}}
|
||||
{{#if @site.description}}
|
||||
<p class="site-description">{{@site.description}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
</section>
|
||||
{{#if @site.description}}
|
||||
<p class="site-description">{{@site.description}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/match}}
|
||||
|
||||
</div>
|
||||
|
12
package.json
12
package.json
@ -110,17 +110,17 @@
|
||||
"default": true,
|
||||
"group": "homepage"
|
||||
},
|
||||
"about_section": {
|
||||
"header_style": {
|
||||
"type": "select",
|
||||
"options": [
|
||||
"Vertical",
|
||||
"Horizontal",
|
||||
"None"
|
||||
"Center aligned",
|
||||
"Left aligned",
|
||||
"Hidden"
|
||||
],
|
||||
"default": "Vertical",
|
||||
"default": "Center aligned",
|
||||
"group": "homepage"
|
||||
},
|
||||
"include_logo_in_about_section": {
|
||||
"site_logo_in_main_navigation": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"group": "homepage"
|
||||
|
Loading…
Reference in New Issue
Block a user