File tree 7 files changed +56
-8
lines changed 7 files changed +56
-8
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * These styles were previously defined inline in the theme as hacks. They
3
+ * live here so we know where they came from.
4
+ *
5
+ * Where necessary, new classes were defined in their place so they don't
6
+ * interfere with the new theme CSS. (e.g. .override-sidebar-collapse)
7
+ **/
8
+
9
+ .override-table {
10
+ width : 100% ;
11
+ overflow-x : scroll;
12
+ display : block;
13
+ }
14
+
15
+ .override-sidebar-collapse {
16
+ max-width : calc (100% + 30px ) !important ;
17
+ flex-wrap : nowrap;
18
+ }
19
+
20
+ # api-component {
21
+ max-width : 100% ;
22
+ }
23
+
24
+ # consent_blackbar {
25
+ position : fixed;
26
+ top : 0px ;
27
+ width : 100% ;
28
+ }
29
+
30
+ # navbar-sites-button {
31
+ display : flex;
32
+ gap : 8px ;
33
+ align-items : center;
34
+ }
35
+
36
+ # navbarNavScroll {
37
+ position : relative;
38
+ left : -0px ;
39
+ flex : 1 ;
40
+ }
41
+
42
+ .sidenav {
43
+ width : 25% ;
44
+ }
Original file line number Diff line number Diff line change 66
66
</ footer >
67
67
68
68
{{ partial "scripts.html" . }}
69
- < div id ="consent_blackbar " style =" position:fixed;top:0px;width:100% " > </ div >
69
+ < div id ="consent_blackbar "> </ div >
70
70
</ body >
71
71
</ html >
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
- < div class ="row " style =" max-width: calc(100% + 30px) !important; flex-wrap: nowrap; ">
3
- < nav class ="sidenav overflow-auto col-md-3 d-none d-xl-block d-print-none align-top " style =" width: 25%; " >
2
+ < div class ="row override-sidebar-collapse ">
3
+ < nav class ="sidenav overflow-auto col-md-3 d-none d-xl-block d-print-none align-top ">
4
4
{{ partial "sidebar.html" . }}
5
5
</ nav >
6
6
@@ -26,7 +26,7 @@ <h1>{{ .Title }}</h1>
26
26
</ main >
27
27
{{ if and (gt .WordCount 200 ) (.Params.toc) }}
28
28
{{ if (add (len (findRE "< h3 " .Content)) (len (findRE "< h2" .Content))) }}
29
- < div class ="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top " style =" width: 25%; " >
29
+ < div class ="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top ">
30
30
{{ partial "toc.html" . }}
31
31
</ div >
32
32
{{ end }}
Original file line number Diff line number Diff line change 1
1
<!--Use wide page layout for the API reference pages-->
2
2
< div class ="nginx-docs-api-container ">
3
- < div id ="api-component " class ="content " style =" max-width: 100%; " >
3
+ < div id ="api-component " class ="content ">
4
4
{{ .Content}}
5
5
</ div >
6
6
</ div >
Original file line number Diff line number Diff line change 14
14
</ div >
15
15
{{ end }}
16
16
{{ if ( in .Site.Params.buildtype "package" ) }}
17
- < div class ="navbar-nav-scroll " id ="navbarNavScroll " style =" position: relative;left: -0px;flex: 1; " >
17
+ < div class ="navbar-nav-scroll " id ="navbarNavScroll ">
18
18
< ul class ="navbar-nav flex-row ">
19
19
< li class ="nav-item dropdown active ">
20
20
< a class ="nav-link dropdown-toggle " href ="# " id ="navbarDropdownMenuLink " role ="button " data-toggle ="dropdown " aria-haspopup ="true " aria-expanded ="false ">
33
33
}}
34
34
< ul class ="navbar navbar-nav ">
35
35
< li class ="nav-item-explore active ">
36
- < button id ="navbar-sites-button " class ="button navbar-button " style =" display: flex; gap: 8px; align-items: center; " >
36
+ < button id ="navbar-sites-button " class ="button navbar-button ">
37
37
F5 Sites
38
38
< i id ="navbar-sites-button-icon " class ="link-chevron-icon fa-solid fa-chevron-down "> </ i >
39
39
</ button >
Original file line number Diff line number Diff line change 5
5
{{ $css5 := resources.Get "css/highlight.css" }}
6
6
{{ $css6 := resources.Get "css/coveo.css" }}
7
7
{{ $css7 := resources.Get "css/v2/style.css" }}
8
+ {{ $css8 := resources.Get "css/inline-overrides.css" }}
8
9
9
10
<!-- load v2 theme assets -->
10
11
< link href ="{{ $css7.RelPermalink }} " integrity ="{{ $css7.Data.Integrity }} " rel ="stylesheet " type ="text/css " id ="css7 "
51
52
{{ $cssF5Hugo := $css4 | minify | fingerprint "sha512"}}
52
53
< link href ="{{ $cssF5Hugo.RelPermalink }} " rel ="stylesheet " type ="text/css " id ="css4 ">
53
54
55
+ {{ $cssOverrides := $css8 | minify | fingerprint "sha512"}}
56
+ < link href ="{{ $cssOverrides.RelPermalink }} " rel ="stylesheet " type ="text/css " id ="css8 ">
57
+
54
58
{{ if fileExists "assets/css/custom.css" }}
55
59
{{ $customCSS := resources.Get "css/custom.css" | minify | fingerprint "sha512" }}
56
60
< link href ="{{ $customCSS.RelPermalink }} " rel ="stylesheet " type ="text/css ">
Original file line number Diff line number Diff line change 12
12
text-align : center;
13
13
}
14
14
</ style >
15
- < div style =" width:100%;overflow-x:scroll;display:block; ">
15
+ < div class =" override-table ">
16
16
{{.Inner}}
17
17
</ div >
You can’t perform that action at this time.
0 commit comments