Revise page header styles
- more compact headers when announcements are showing - when no announcement showing, top level docs sections (eg Concepts, Tasks, Reference) have a heading in the top nav - when announcement is showing, rely on the breadcrumb trail plus page introduction text for each top level section - switch from plain black docs header to match other sections
This commit is contained in:
@@ -15,18 +15,18 @@
|
||||
{{- if or (eq .endTime nil ) (gt ( time .endTime ) now ) -}}
|
||||
{{- if not $announcementShown -}}
|
||||
{{- $announcementShown = true -}}
|
||||
<section lang="en" id="announcement" style="background-color: #3371e3; color: #fff; {{ .style | safeCSS }}">
|
||||
<div lang="en" id="announcement" style="background-color: #3371e3; color: #fff; {{ .style | safeCSS }}">
|
||||
<aside>
|
||||
<div class="content announcement main-section" data-nosnippet>
|
||||
<div class="announcement-main" data-nosnippet>
|
||||
{{ if .title }}
|
||||
<h4 class="announcement">
|
||||
<h4>
|
||||
{{ .title | markdownify }}
|
||||
</h4>
|
||||
{{ end }}
|
||||
<p class="announcement">{{ .message | markdownify }}</p>
|
||||
<p>{{ .message | markdownify }}</p>
|
||||
</div>
|
||||
</aside>
|
||||
</section>
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user