diff --git a/assets/css/global.css b/assets/css/global.css index e1d27a0b3227..bd7d62c1cbff 100644 --- a/assets/css/global.css +++ b/assets/css/global.css @@ -104,3 +104,6 @@ input[type="search"]::-ms-clear { list-style-type: lower-roman; } } +.navbar-group:first-of-type { + margin-top: 0.2rem !important; +} diff --git a/assets/css/utilities.css b/assets/css/utilities.css index 5bd521f8f195..9141f145f05a 100644 --- a/assets/css/utilities.css +++ b/assets/css/utilities.css @@ -118,9 +118,20 @@ } } +@utility navbar-entry-margin { + @apply px-2 py-1; +} + +@utility navbar-group { + @apply mt-5; +} + +@utility navbar-entry-background-current { + @apply bg-gray-100 dark:bg-gray-900; +} @utility navbar-group-font-title { font-size: var(--color-navbar-group-font-title-size); - @apply font-semibold uppercase; + @apply pb-1.5 font-semibold uppercase; color: var(--color-navbar-text); .dark & { color: var(--color-navbar-text-dark); diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html index e00638f94484..f79fcd46582c 100644 --- a/layouts/_default/_markup/render-codeblock.html +++ b/layouts/_default/_markup/render-codeblock.html @@ -40,7 +40,7 @@ > ` }} + {{- $emptyState := `
Start typing to search… or try
` }} {{- $emptyState | safe.HTML }} diff --git a/layouts/partials/sidebar/guides.html b/layouts/partials/sidebar/guides.html index f3220d1cb9f9..b601eae7ea62 100644 --- a/layouts/partials/sidebar/guides.html +++ b/layouts/partials/sidebar/guides.html @@ -28,7 +28,7 @@ {{- end }} {{- with ($root.Params.time) }} -
+
{{ partialCached "icon" "schedule" "schedule" }} diff --git a/layouts/partials/sidebar/sections.html b/layouts/partials/sidebar/sections.html index db2b971ae5ee..ff7b3cb0eca4 100644 --- a/layouts/partials/sidebar/sections.html +++ b/layouts/partials/sidebar/sections.html @@ -32,32 +32,36 @@ {{- end }} {{- range .Params.sidebar.groups }} - - {{- range where $pages "Params.sidebar.group" . }} - {{- if .IsSection }} - {{- template "renderList" . }} - {{- else }} - {{- template "renderSingle" . }} + {{- end }} + {{ end }} {{/* Recursive template for sidebar items */}} {{ define "renderList" }} {{ $isCurrent := eq page . }} {{ $expanded := or $isCurrent (page.IsDescendant .) }} -
  • +