Align deprecation warnings more with Docsy
This change helps us prepare the site so we could serve it with near-vanilla Docsy.
This commit is contained in:
		
							parent
							
								
									97cbae19d2
								
							
						
					
					
						commit
						483a8ce311
					
				|  | @ -1183,38 +1183,27 @@ body.cid-community #cncf-code-of-conduct h2:after { | |||
|   } | ||||
| } | ||||
| 
 | ||||
| #caseStudies body > #deprecation-warning, body.cid-casestudies > #deprecation-warning, body.cid-community > #deprecation-warning { | ||||
|     display: inline-block; | ||||
|     vertical-align: top; | ||||
|     position: relative; | ||||
|     background-color: $primary; | ||||
|     color: #fff; | ||||
| body.cid-casestudies, body.cid-community, body.cid-partners { | ||||
|   section#deprecation-warning { | ||||
|     padding: 0; | ||||
|     margin: 0; | ||||
|     width: 100%; | ||||
| 
 | ||||
|     border-top: solid 1em $primary; | ||||
|     border-bottom: solid 1em $primary; | ||||
| 
 | ||||
|     // Center the pageinfo | ||||
|     padding-left: calc(max(1rem, (100vw - 60rem) / 2)); | ||||
|     padding-right: calc(max(1rem, (100vw - 60rem) / 2)); | ||||
|   } | ||||
|   /* Ensure color overrides */ | ||||
|   section#deprecation-warning, section#deprecation-warning > .pageinfo.deprecation-warning { | ||||
|     background-color: $primary; | ||||
|     color: #fff; | ||||
|   } | ||||
| } | ||||
| #caseStudies body > #deprecation-warning, body.cid-casestudies > #deprecation-warning { | ||||
|     padding-top: 32px; | ||||
| } | ||||
| 
 | ||||
| body.cid-partners { | ||||
|     > #deprecation-warning { | ||||
|         padding: 0; | ||||
|         margin-right: 0; | ||||
|         margin-left: 0; | ||||
|         margin-top: 0; | ||||
|         width: 100vw; | ||||
|         > .content { | ||||
|             width: 100%; | ||||
|             max-width: initial; | ||||
|             margin-right: 0; | ||||
|             margin-left: 0; | ||||
|             margin-top: 0; | ||||
|             padding-left: 5vw; | ||||
|             padding-right: 5vw; | ||||
|             padding-top: 2rem; | ||||
|             padding-bottom: 2rem; | ||||
|         } | ||||
|     } | ||||
|     /*  SECTIONS  */ | ||||
|     .section { | ||||
|         clear: both; | ||||
|  |  | |||
|  | @ -25,15 +25,15 @@ | |||
| 		</section> | ||||
| 		{{ block "post-hero" . }} | ||||
|     </header> | ||||
|       {{ block "deprecated" . }} | ||||
|         {{ if or .IsHome ( eq .Params.cid "partners" ) ( eq .Params.cid "community" ) }} | ||||
|           {{ partial "deprecation-warning.html" . }} | ||||
|         {{ end }} | ||||
|       {{ end }} | ||||
|     {{ end }} | ||||
| 		{{ end }} | ||||
|     <div class="td-outer"> | ||||
|       <main role="main" class="td-main" {{ if (or (ne .FirstSection "case-studies") (not .IsSection) ) }}data-pagefind-body{{ end }}> | ||||
|         {{ block "deprecation_warning" . }} | ||||
|           {{ if or .IsHome ( eq .Params.cid "partners" ) ( eq .Params.cid "community" ) }} | ||||
|             {{ partial "deprecation-warning.html" . }} | ||||
|           {{ end }} | ||||
|         {{ end }} | ||||
|         {{ block "main" . }}{{ end }} | ||||
|       </main> | ||||
|     </div> | ||||
|  |  | |||
|  | @ -37,6 +37,9 @@ | |||
|               RSS <i class="fa-solid fa-rss ml-2 "></i> | ||||
|             </a> | ||||
|             {{ end -}} | ||||
|             {{ block "deprecation_warning" . }} | ||||
|               {{ partial "deprecation-warning.html" . }} | ||||
|             {{ end }} | ||||
|             {{ block "main" . }}{{ end }} | ||||
|           </main> | ||||
|           <div class="d-none d-xl-block col-xl-2 td-toc d-print-none"> | ||||
|  |  | |||
|  | @ -12,7 +12,6 @@ have blog posts --> | |||
| {{ $pageGroups := $pag.PageGroups}} | ||||
| {{ if eq $pag.PageNumber 1 }} | ||||
| {{ end }} | ||||
| {{ partial "deprecation-warning.html" . }} | ||||
| <div class="row"> | ||||
| 	<div class="col-12"> | ||||
| 		{{ range $pageGroups }} | ||||
|  |  | |||
|  | @ -1,4 +0,0 @@ | |||
| {{ define "main" }} | ||||
| {{ partial "deprecation-warning.html" . }} | ||||
| {{ .Render "content" }} | ||||
| {{ end }} | ||||
|  | @ -9,7 +9,6 @@ | |||
| {{ end }} | ||||
| {{ end }} | ||||
| {{ $featured := (where $pages "Params.featured" true).ByWeight | first 4 }} | ||||
| 	{{ partial "deprecation-warning.html" . }} | ||||
| 	<section id="case-studies"> | ||||
| 		<h2>{{ .Title }}</h2> | ||||
| 		<div class="case-studies"> | ||||
|  |  | |||
|  | @ -0,0 +1,18 @@ | |||
| <!DOCTYPE html> | ||||
| <html id="{{ .Params.cid }}" lang="{{ .Language }}" class="{{ .Params.class }}"> | ||||
| 	<head> | ||||
| 		{{ partial "head.html" . }} | ||||
| 	</head> | ||||
|         <body{{ with .Page.Params.body_class }} class="{{ . }}"{{ end }}> | ||||
| 		{{ partial "navbar.html" . }} | ||||
| 		{{ block "deprecation_warning.html" . }} | ||||
| 		{{ partial "deprecation-warning.html" . }} | ||||
| 		{{ end }} | ||||
| 		<div data-pagefind-body> | ||||
| 		{{ block "main" . }}{{ end }} | ||||
| 		</div> | ||||
| 		{{ partialCached "footer.html" . }} | ||||
|     {{ partialCached "scripts.html" . }} | ||||
| 
 | ||||
| 	</body> | ||||
| </html> | ||||
|  | @ -24,6 +24,9 @@ | |||
|           <!--main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main"--> | ||||
|           <main role="main" class="col-xl-8" {{ if ne .Params.cid "docsHome" }}data-pagefind-body{{ end }}{{ if (and .IsPage .Params.description ) }} data-pagefind-meta="description:{{ .Params.description }}"{{ end }}> | ||||
|               {{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }} | ||||
|               {{ block "deprecation_warning" . }} | ||||
|                 {{ partial "deprecation-warning.html" . }} | ||||
|               {{ end }} | ||||
|               {{ block "outdated_content" . }} | ||||
|                 {{ partial "docs/outdated_content.html" . }} | ||||
|               {{ end }} | ||||
|  |  | |||
|  | @ -3,7 +3,6 @@ | |||
| {{ end }} | ||||
| 
 | ||||
| {{ define "main" }} | ||||
| {{ partial "deprecation-warning.html" . }} | ||||
| <h1>{{ .Title }}</h1> | ||||
| <p>{{ T "layouts_docs_glossary_description" }}</p> | ||||
| <div id="tag-container"> | ||||
|  |  | |||
|  | @ -6,7 +6,6 @@ | |||
| {{- end -}} | ||||
| {{- end -}} | ||||
|     <div class="td-content"> | ||||
|         {{- partial "deprecation-warning.html" . -}} | ||||
|         {{ $hasContent := false }} | ||||
|         {{ with .File }} | ||||
|             {{ if ne .Filename "" }} | ||||
|  |  | |||
|  | @ -2,7 +2,6 @@ | |||
| {{ if not .Site.Params.deprecated }} | ||||
|   {{ .Content }} | ||||
| {{ else }} | ||||
| {{ partial "deprecation-warning.html" . }} | ||||
| <div class="section-index"> | ||||
|   {{ range where .Site.Pages "Section" "releases" }} | ||||
|     {{ if not .IsNode }} | ||||
|  |  | |||
|  | @ -1,5 +1,4 @@ | |||
| {{ define "main" }} | ||||
| {{ partial "deprecation-warning.html" . }} | ||||
|     <div class="td-content"> | ||||
|     {{- if .HasShortcode "kat-button" -}} | ||||
|     <div class="pageinfo pageinfo-secondary"> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue