generated from nginx/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 3
Killing Oldframe #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lamATnginx
wants to merge
47
commits into
main
Choose a base branch
from
mainframe
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,100
−18,508
Open
Killing Oldframe #276
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
1a4e351
Mainframe: Remove old css
nginx-jack 2a7f080
Mainframe: Remove old js
nginx-jack 4be5ef6
Mainframe: Removed css data-mf tags
lamATnginx d6d80ca
Mainframe: Disabled the visual regression test
lamATnginx 57c9841
Mainframe: Add aria label to sidebar mobile button
lamATnginx b2de7d5
Mainframe: Removed screenshots
lamATnginx 8e00c3e
Mainframe: Fix duplicate doc. Fix catalog
nginx-jack 453e5bb
Mainframe: Fixed issue with card
lamATnginx 6264fd1
Mainframe: Removed bootstrap, jquery css and js
lamATnginx 9139655
Mainframe: Removed legacy coveo js
lamATnginx 42dca5b
Mainframe: Fixed tab groups
lamATnginx de990b3
Mainframe: Added accessibility to tabs
lamATnginx 21bfa13
Mainframe: Fixed header
lamATnginx a218e11
Mainframe: Adjusted js for tabs to add home + end + space support
lamATnginx 5eebec8
Chore: Merge branch 'main' into mainframe
TasoOneAsia 8c23ad0
Mainframe: Fixed F5 sites dropdown
lamATnginx 3f08fa5
Grid: Restructure high-level DOM and Grid
nginx-jack 4200a46
Redocly: Fix regrid layout
nginx-jack 941527e
Sidebar: Add image and fix scroll behaviour
nginx-jack fb60399
Grid: Add spcing to header and content container
nginx-jack 696e9c0
Homepage: Fix spacing, footer, and header
nginx-jack 79a71ed
Layouts: Move shared layout components to base of
nginx-jack d53d624
Header: Fix search and f5 sites
nginx-jack e9b2699
Search: Fix search page render on new grid
nginx-jack 23ec93b
Headers: Handle show hide logo depending on page
nginx-jack 03b9f07
Headers: Add back product selector
nginx-jack e3f9270
Headers: Fix header responsivness
nginx-jack 3ffd1d2
Card: Fixed build error on card-layout due to Scratch
lamATnginx 84fa71d
Chore: Merge branch 'main' into mainframe
lamATnginx 44c87a7
Mainframe: Removed old sidebar partial reference
lamATnginx 52ca5c8
Mainframe: Update test product landing + small card bug fix
lamATnginx e7a086c
Chore: Merge branch 'mainframe' into mainframe-regrid
lamATnginx 417422e
Landing: Updated list page with custom landing params
lamATnginx 44a5a3d
Header: Added default product selector text
lamATnginx a8a39b3
Merge pull request #281 from nginxinc/mainframe-regrid
nginx-jack 75b847a
Chore: Merge branch 'main' into mainframe
lamATnginx cbbb369
Fix: Truthy .Value check
TasoOneAsia 46c6955
Chore: Merge branch 'main' into mainframe
lamATnginx a0e1c02
Biome: Update v2 and remove unused css files
nginx-jack 13f83bd
Purgecss: Remove unused css from purgecss run
nginx-jack f6a77b9
Merge pull request #289 from nginxinc/biome-v2
nginx-jack 9fc3a63
Chore: Merge branch 'main' into mainframe
lamATnginx b180269
Feat: Mainframe tables + deprecate bootstrap-table
TasoOneAsia ba8de8b
Mainframe: Fix up old 404 page
TasoOneAsia bb0c31a
Merge pull request #293 from nginxinc/misc/mainframe-fixes
nginx-jack 03070ff
Collapsible sidebar (#292)
nginx-jack e233b60
Chore: Merge branch 'main' into mainframe
lamATnginx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,64 @@ | ||
{{- .Page.Scratch.Add "tabset-counter" 1 -}} | ||
{{- $tab_set_id := .Get "name" | default (printf "tabset-%s-%d" (.Page.RelPermalink) (.Page.Scratch.Get "tabset-counter") ) | anchorize -}} | ||
{{- $tabs := .Scratch.Get "tabs" -}} | ||
{{- if .Inner -}}{{- /* We don't use the inner content, but Hugo will complain if we don't reference it. */ -}}{{- end -}} | ||
<div class="tabs-container"> | ||
<ul class="nav nav-tabs" id="{{ $tab_set_id }}" role="tablist"> | ||
{{- range $i, $e := $tabs -}} | ||
{{- $id := printf "%s-%d" $tab_set_id $i -}} | ||
{{- if (eq $i 0) -}} | ||
<li class="nav-item"><a data-toggle="tab" class="nav-link active" href="#{{ $id }}" role="tab" aria-controls="{{ $id }}" aria-selected="true">{{- trim .name " " -}}</a></li> | ||
{{ else }} | ||
<li class="nav-item"><a data-toggle="tab" class="nav-link" href="#{{ $id }}" role="tab" aria-controls="{{ $id }}">{{- trim .name " " -}}</a></li> | ||
{{- end -}} | ||
{{- if .Inner -}} | ||
<div class="tabs-container" id="{{ $tab_set_id }}"> | ||
{{- range $i, $e := $tabs -}} | ||
{{- $id := printf "%s-tab%d" $tab_set_id $i -}} | ||
{{- if eq $i 0 -}} | ||
<input type="radio" name="{{$tab_set_id}}" id="{{$id}}" aria-hidden="true" checked="checked"> | ||
{{- else -}} | ||
<input type="radio" name="{{$tab_set_id}}" id="{{$id}}" aria-hidden="true"> | ||
{{- end -}} | ||
{{- end -}} | ||
<ul class="tab-labels" role="tablist" id="{{ $tab_set_id }}"> | ||
{{- range $i, $e := $tabs -}} | ||
{{- $id := printf "%s-tab%d" $tab_set_id $i -}} | ||
<li> | ||
{{- if eq $i 0 -}} | ||
<label class="tab-label" role="tab" id="{{$id}}" for="{{$id}}" aria-controls="{{ $id }}" aria-selected="true" tabindex="0"> | ||
{{- trim .name " " -}} | ||
</label> | ||
{{- else -}} | ||
<label class="tab-label" role="tab" id="{{$id}}" for="{{$id}}" aria-controls="{{ $id }}" tabindex="0"> | ||
{{- trim .name " " -}} | ||
</label> | ||
{{- end -}} | ||
</li> | ||
{{- end -}} | ||
</ul> | ||
</div> | ||
<div class="tab-content" id="{{ $tab_set_id }}"> | ||
{{- range $i, $e := $tabs -}} | ||
{{- $id := printf "%s-%d" $tab_set_id $i -}} | ||
{{- if (eq $i 0) -}} | ||
<div id="{{ $id }}" class="tab-pane show active" role="tabpanel" aria-labelledby="{{ $id }}"> | ||
{{ else }} | ||
<div id="{{ $id }}" class="tab-pane" role="tabpanel" aria-labelledby="{{ $id }}"> | ||
<div class="tabs-content"> | ||
{{- range $i, $e := $tabs -}} | ||
{{- $id := printf "%s-panel%d" $tab_set_id $i -}} | ||
<div class="tab-content" role="tabpanel" id="{{ $tab_set_id }}-panel{{ $i }}" aria-labelledby="{{ $id }}"> | ||
{{ with .content }} | ||
{{ . }} | ||
{{ end }} | ||
</div> | ||
{{- end -}} | ||
</div> | ||
</div> | ||
{{ end }} | ||
{{- with .content -}} | ||
{{- . -}} | ||
{{- else -}} | ||
{{- if eq $.Page.BundleType "leaf" -}} | ||
{{- /* find the file somewhere inside the bundle. Note the use of double asterisk */ -}} | ||
{{- with $.Page.Resources.GetMatch (printf "**%s*" .include) -}} | ||
{{- if ne .ResourceType "page" -}} | ||
{{- /* Assume it is a file that needs code highlighting. */ -}} | ||
{{- $codelang := $e.codelang | default ( path.Ext .Name | strings.TrimPrefix ".") -}} | ||
{{- highlight .Content $codelang "" -}} | ||
{{- else -}} | ||
{{- .Content -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- else -}} | ||
{{- $path := path.Join $.Page.File.Dir .include -}} | ||
{{- $page := site.GetPage "page" $path -}} | ||
{{- with $page -}} | ||
{{- .Content -}} | ||
{{- else -}} | ||
{{- errorf "[%s] tabs include not found for path %q" site.Language.Lang $path -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} | ||
</div> | ||
{{- end -}} | ||
</div> | ||
<style> | ||
{{- range $i, $e := $tabs -}} | ||
.tabs-container input[type="radio"]:checked:nth-of-type({{ add $i 1 }}) ~ .tab-labels li:nth-of-type({{ add $i 1 }}) { | ||
border: none; | ||
border-top: 1px solid oklch(var(--color-foreground)); | ||
border-left: 1px solid oklch(var(--color-foreground)); | ||
border-bottom: none; | ||
color: oklch(var(--color-foreground)); | ||
|
||
+ li { | ||
border-left: 1px solid oklch(var(--color-foreground)); | ||
} | ||
|
||
&:last-of-type { | ||
border-right: 1px solid oklch(var(--color-foreground)); | ||
} | ||
} | ||
|
||
.tabs-container input[type="radio"]:checked:nth-of-type({{ add $i 1 }}) ~ .tabs-content div:nth-of-type({{ add $i 1 }}) { | ||
display: block; | ||
} | ||
{{- end -}} | ||
</style> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.