|
1 | 1 | @using Elastic.Markdown.Helpers;
|
2 | 2 | @inherits RazorSlice<LayoutViewModel>
|
3 |
| -<aside class="sidebar hidden lg:block order-2 max-w-65"> |
| 3 | +<aside class="sidebar hidden lg:block max-w-65 md:hidden"> |
4 | 4 | <nav id="toc-nav" class="sidebar-nav">
|
5 | 5 | <div id="page-version-dropdown" tabindex="1"
|
6 | 6 | class="mt-6 block group font-sans text-sm relative z-50">
|
|
57 | 57 | </ul>
|
58 | 58 | </div>
|
59 | 59 | </div>
|
60 |
| - <div class="pt-6 pb-20 pl-4"> |
| 60 | + <ul class="mt-6"> |
| 61 | + |
| 62 | + @if (Model.GithubEditUrl is not null) |
| 63 | + { |
| 64 | + <li class="edit-this-page not-first:mt-1"> |
| 65 | + <a href="@Model.GithubEditUrl" class="link text-sm" target="_blank"> |
| 66 | + |
| 67 | + |
| 68 | + <svg class="link-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> |
| 69 | + <path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"/> |
| 70 | + </svg> |
| 71 | + |
| 72 | + Edit this page |
| 73 | + </a> |
| 74 | + </li> |
| 75 | + <li class="report-an-issue not-first:mt-1"> |
| 76 | + <a href="@Model.ReportIssueUrl" class="link text-sm" target="_blank"> |
| 77 | + <svg class="link-icon" viewBox="0 0 98 96" xmlns="http://www.w3.org/2000/svg"> |
| 78 | + <path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="currentColor"/> |
| 79 | + </svg> |
| 80 | + Report an issue |
| 81 | + </a> |
| 82 | + </li> |
| 83 | + } |
| 84 | + </ul> |
| 85 | + <div class="pt-6"> |
61 | 86 | @if (Model.PageTocItems.Count > 0)
|
62 | 87 | {
|
63 | 88 | <div>
|
64 | 89 | <div class="font-bold mb-2">On this page</div>
|
65 | 90 | <div class="relative toc-progress-container font-body">
|
66 |
| - <div class="toc-progress-indicator absolute top-0 h-0 left-2 w-[1px] bg-blue-elastic transition-all duration-200 ease-out "></div> |
| 91 | + <div class="toc-progress-indicator absolute top-0 h-0 w-[1px] bg-blue-elastic transition-all duration-200 ease-out "></div> |
67 | 92 | <ul class="block w-full">
|
68 | 93 | @foreach (var item in Model.PageTocItems)
|
69 | 94 | {
|
70 |
| - <li class="has-[:hover]:border-l-grey-80 items-center ml-2 px-4 border-l-1 border-l-grey-20 has-[.current]:border-l-blue-elastic!"> |
| 95 | + <li class="has-[:hover]:border-l-grey-80 items-center px-4 border-l-1 border-l-grey-20 has-[.current]:border-l-blue-elastic!"> |
71 | 96 | <a
|
72 | 97 | class="sidebar-link inline-block my-1.5 @(item.Level == 3 ? "ml-4" : string.Empty)"
|
73 | 98 | href="#@item.Slug">
|
|
80 | 105 | </div>
|
81 | 106 | }
|
82 | 107 |
|
83 |
| - <ul class="mt-6"> |
84 |
| - |
85 |
| - @if (Model.GithubEditUrl is not null) |
86 |
| - { |
87 |
| - <li class="edit-this-page not-first:mt-1"> |
88 |
| - <a href="@Model.GithubEditUrl" class="link text-sm" target="_blank"> |
89 |
| - |
90 |
| - |
91 |
| - <svg class="link-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> |
92 |
| - <path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"/> |
93 |
| - </svg> |
94 |
| - |
95 |
| - Edit this page |
96 |
| - </a> |
97 |
| - </li> |
98 |
| - <li class="report-an-issue not-first:mt-1"> |
99 |
| - <a href="@Model.ReportIssueUrl" class="link text-sm" target="_blank"> |
100 |
| - <svg class="link-icon" viewBox="0 0 98 96" xmlns="http://www.w3.org/2000/svg"> |
101 |
| - <path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="currentColor"/> |
102 |
| - </svg> |
103 |
| - Report an issue |
104 |
| - </a> |
105 |
| - </li> |
106 |
| - } |
107 |
| - </ul> |
108 | 108 | </div>
|
109 | 109 |
|
110 | 110 | </nav>
|
|
0 commit comments