|
| 1 | +{{ define "main" }} |
| 2 | + |
| 3 | +<!-- Remove upon cleaning up old frame code --> |
| 4 | +<style> |
| 5 | + .nginx-docs-api-container { |
| 6 | + z-index: 0 !important; |
| 7 | + max-width: calc(100% + 2.4rem); |
| 8 | + margin-top: 2rem; |
| 9 | + } |
| 10 | + |
| 11 | + @media (min-width: 768px) { |
| 12 | + .nginx-docs-api-container { |
| 13 | + z-index: 0 !important; |
| 14 | + max-width: calc(75% + 2.4rem); |
| 15 | + } |
| 16 | + } |
| 17 | + |
| 18 | + html { |
| 19 | + scroll-behavior: auto !important; |
| 20 | + } |
| 21 | + |
| 22 | + .menu-content { |
| 23 | + top: 0 !important; |
| 24 | + height: 100vh !important; |
| 25 | + } |
| 26 | + .bCOLCR { |
| 27 | + background: #e6e6e6; |
| 28 | + } |
| 29 | + .fTsuzH { |
| 30 | + background-color: #e6e6e6; |
| 31 | + } |
| 32 | + .fgRoXk { |
| 33 | + background-color: #fafafa; |
| 34 | + } |
| 35 | + #api-component > api-container > redoc { |
| 36 | + background-color: #e6e6e6; |
| 37 | + } |
| 38 | + div.sc-jSFjdj.sc-gKAaRy.dYGhuI.fTsuzH > div > h3 { |
| 39 | + color: #000000; |
| 40 | + } |
| 41 | + div.sc-dvUynV.fgRoXk.redoc-wrap { |
| 42 | + margin-left: -15px; |
| 43 | + margin-right: -15px; |
| 44 | + } |
| 45 | + .gKPxXE .collapser { |
| 46 | + background-color: transparent !important; |
| 47 | + } |
| 48 | + div |
| 49 | + > div.sc-jSFjdj.sc-gKAaRy.dYGhuI.fTsuzH |
| 50 | + > div.sc-EZqKI.iONckA |
| 51 | + > button:hover { |
| 52 | + background-color: #003963; |
| 53 | + } |
| 54 | + div > div.sc-giAqHp.hIuvjA > button:hover { |
| 55 | + color: #003963; |
| 56 | + } |
| 57 | + .nginx-docs-api-container button:hover { |
| 58 | + background-color: rgb(237, 237, 237); |
| 59 | + } |
| 60 | + pre { |
| 61 | + white-space: pre-wrap; |
| 62 | + } |
| 63 | +</style> |
| 64 | +<!--Use wide page layout for the API reference pages--> |
| 65 | +<section class="main-layout api"> |
| 66 | + <div class="sidebar-layout" data-mf="true" style="display:none;"> |
| 67 | + <nav id="sidebar-v2" class="sidebar"> |
| 68 | + {{ partial "sidebar-v2.html" . }} |
| 69 | + </nav> |
| 70 | + </div> |
| 71 | + <div |
| 72 | + class="row flex-md-nowrap content-layout" |
| 73 | + style=" |
| 74 | + position: relative; |
| 75 | + flex-wrap: nowrap; |
| 76 | + margin-right: 9px; |
| 77 | + max-width: calc(100% + 9px); |
| 78 | + " |
| 79 | + > |
| 80 | + <nav |
| 81 | + id="sidebar" |
| 82 | + class="sidenav overflow-auto col-md-3 d-none d-md-block d-print-none sidebar-toggle-hidden-width" |
| 83 | + style="width: 25%; border-right: 1px solid #e6e6e6" |
| 84 | + ; |
| 85 | + > |
| 86 | + {{ partial "sidebar.html" . }} |
| 87 | + </nav> |
| 88 | + <section class="breadcrumb-layout" data-mf="true" style="display: none;"> |
| 89 | + {{ if not .IsHome }} |
| 90 | + {{ if not (in .Params.display_breadcrumb "false" ) }} |
| 91 | + {{ partial "breadcrumb" .}} |
| 92 | + {{ end }} |
| 93 | + {{ end }} |
| 94 | + </section> |
| 95 | + <div class="nginx-docs-api-container"> |
| 96 | + <div id="api-component">{{ .Content}}</div> |
| 97 | + </div> |
| 98 | + </section> |
| 99 | + </div> |
| 100 | +{{ end }} |
0 commit comments