Skip to content

Commit 791381c

Browse files
committed
MF: Remove inline display nones
1 parent c32d53a commit 791381c

File tree

15 files changed

+42
-38
lines changed

15 files changed

+42
-38
lines changed

assets/css/docs-nginx-com/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*copy from nginx-theme.css */
22

33
[data-mf="false"] {
4-
display: block !important;
4+
display: revert;
55
}
66

77
[data-mf="true"] {
8-
display: none !important;
8+
display: none;
99
}
1010

1111
big,

assets/css/v2/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[data-mf="true"] {
2-
display: block !important;
2+
display: revert;
33
}
44

55
[data-mf="false"] {
6-
display: none !important;
6+
display: none;
77
}
88

99
/* Regular */

layouts/_default/_markup/render-codeblock.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ $isSingleLine := eq (len $lines) 1 }}
55

66
{{- if $isSingleLine -}}
7-
<div class="code-block" data-mf="true" style="display: none;">
7+
<div class="code-block" data-mf="true">
88
<div class="code-container chroma">
99
<button onclick="copyToClipBoard(this, {{ $codeBlockId }})" class="code-copy-button" type="button">Copy</button>
1010
<div class="highlight-v2 single-line" id="{{ $codeBlockId }}">
@@ -13,7 +13,7 @@
1313
</div>
1414
</div>
1515
{{- else -}}
16-
<div class="code-block" data-mf="true" style="display: none;">
16+
<div class="code-block" data-mf="true">
1717
{{- if and (ne .Type "") (ne .Type "none") -}}
1818
<span class="code-type chroma">{{ .Type }}</span>
1919
{{- end -}}
@@ -27,4 +27,4 @@
2727
{{- end -}}
2828
<div id="code-block-v1" data-mf="false">
2929
{{ $result.Wrapped }}
30-
</div>
30+
</div>

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
{{ end }}
159159
</footer>
160160

161-
<footer data-mf="true" id="footer-v2" style="display:none;">
161+
<footer data-mf="true" id="footer-v2">
162162
{{ block "footer-v2" . }}
163163
{{ partial "footer-v2.html" . }}
164164
{{ end }}

layouts/_default/docs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@
6969

7070
<section class="main-layout">
7171
<div class="sidebar-layout" id="sidebar-layout">
72-
<nav data-mf="true" id="sidebar-v2" class="sidebar" style="display:none;">
72+
<nav data-mf="true" id="sidebar-v2" class="sidebar">
7373
{{ partial "sidebar-v2.html" . }}
7474
</nav>
7575
</div>
7676

7777
<section id="maincontent" class="content-layout">
7878
<div data-cms-edit="content" class="text-content">
79-
<section class="breadcrumb-layout" data-mf="true" style="display: none;">
79+
<section class="breadcrumb-layout" data-mf="true">
8080
{{ if not .IsHome }}
8181
{{ if not (in .Params.display_breadcrumb "false" ) }}
8282
{{ partial "breadcrumb" .}}

layouts/_default/list.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
{{ define "main" }}
2-
<div class="row flex-xl-nowrap" id="list-v1" data-mf="false">
2+
<div data-mf="false">
3+
<div class="row flex-xl-nowrap" id="list-v1">
34
<nav class="sidenav overflow-auto col-md-3 d-none d-xl-block d-print-none">
45
{{ partial "sidebar.html" . }}
56
</nav>
67
<main class="content col-xl-9 d-block" role="main">
78
{{ partial "list-main" . }}
89
</main>
910
</div>
11+
</div>
1012

1113
{{/* mf list page */}}
1214

13-
<main class="content col d-block align-top content-has-toc" role="main" data-mf="true" style="display: none">
15+
<div data-mf="true">
16+
<main class="content col d-block align-top content-has-toc" role="main">
1417
<section class="main-layout">
1518
<div class="sidebar-layout" id="sidebar-layout">
16-
<nav data-mf="true" id="sidebar-v2" class="sidebar" style="display:none;">
19+
<nav id="sidebar-v2" class="sidebar">
1720
{{ partial "sidebar-v2.html" . }}
1821
</nav>
1922
</div>
2023

21-
<section id="maincontent" class="content-layout" data-mf="true" style="display: none">
24+
<section id="maincontent" class="content-layout">
2225
<div data-cms-edit="content" class="text-content list-page">
2326
<section class="breadcrumb-layout">
2427
{{ if not .IsHome }}
@@ -55,4 +58,5 @@ <h2>
5558

5659
</section>
5760
</main>
61+
</div>
5862
{{ end }}

layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ partial "sidebar.html" . }}
55
</nav>
66
<main class="content col-xl-9 d-block" role="main">
7-
{{ partial "list-main" . }}
7+
{{ partial "list-main" . }}
88
</main>
99
</div>
10-
{{ end }}
10+
{{ end }}

layouts/partials/api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--Use wide page layout for the API reference pages-->
22
<div class="nginx-docs-api-container">
3-
<div id="api-component" data-mf="false" class="content">
3+
<div id="api-component" class="content">
44
{{ .Content}}
55
</div>
66
</div>

layouts/partials/callout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{{ if $isSpecialTitle }}
4848
{{/* Loud callouts */}}
4949
<div>
50-
<blockquote class="{{ $class }}" data-mf="true" style="display: none;">
50+
<blockquote class="{{ $class }}" data-mf="true">
5151
<div>
5252
<div class="call-out-type">
5353
{{ partial "feather" (dict "context" . "icon" $icon) .}}
@@ -66,7 +66,7 @@
6666

6767
{{ $cleanTitle := strings.TrimSuffix ":" $title}}
6868

69-
<blockquote class="{{ $class }} note" data-mf="true" style="display: none;" data-title="{{ $cleanTitle }}">
69+
<blockquote class="{{ $class }} note" data-mf="true" data-title="{{ $cleanTitle }}">
7070
<div class="callout-content">
7171
{{- with $icon -}}
7272
<i class="{{ . }}"></i>

layouts/partials/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!--div class="CoveoAnalytics" data-search-hub="HUB_ES_Nginx_Docs_And_Org"></div-->
1212
<div class="CoveoSearchbox" data-placeholder='Search NGINX Docs...'></div>
1313
</div>
14-
<atomic-search-interface id="search-standalone-header" data-mf="true" style="display:none;">
14+
<atomic-search-interface id="search-standalone-header" data-mf="true">
1515
<atomic-search-box redirection-url="/search.html">
1616
</atomic-search-box>
1717
</atomic-search-interface>
@@ -29,8 +29,8 @@
2929
</ul>
3030
</div>
3131
{{ end }}
32-
33-
{{ $f5Sites := slice
32+
33+
{{ $f5Sites := slice
3434
(dict "title" "DevCentral" "url" "https://community.f5.com/" "description" "Connect & learn in our hosted community")
3535
(dict "title" "MyF5" "url" "https://my.f5.com/" "description" "Your key to everything F5, including support, registration keys, and subscriptions")
3636
(dict "title" "NGINX" "url" "https://nginx.org/" "description" "Learn more about NGINX Open Source and read the community blog")

layouts/partials/lucide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- /* Usage: */ -}}
22
{{- /* (dict "context" . "icon" "circle") */ -}}
33
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" aria-hidden="true" class="lucide"
4-
style="{{ .style | safeCSS }}" data-mf="true" style="display: none">
4+
style="{{ .style | safeCSS }}" data-mf="true">
55
<use href="/images/lucide-sprite.svg#{{ .icon }}"></use>
6-
</svg>
6+
</svg>

layouts/partials/sidebar-list-pages.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@
44
{{ range $context.Pages.ByWeight }}
55
<li>
66
{{ if eq .Kind "section" }}
7-
<input type="checkbox" id="toggle-{{ .File.UniqueID }}" class="toggle-checkbox" style="display: none;">
7+
<input type="checkbox" id="toggle-{{ .File.UniqueID }}" class="toggle-checkbox">
88
<label for="toggle-{{ .File.UniqueID }}" class="collapsible-header">
99
{{ if .Pages }}
1010
<span class="box expand partial-box"></span>
1111
<span class="box opened partial-box"></span>
1212
{{ end }}
13-
{{ .Title }}
13+
{{ .Title }}
1414
</label>
1515
{{ partial "sidebar-list-pages.html" (dict "context" . "currentUrl" $currentUrl) }}
1616
{{ else if eq .Kind "page" }}
17-
{{ if eq $currentUrl .Permalink }}
18-
<span class="box current partial" id="current-page"></span>
19-
{{ else }}
20-
<span class="box-link partial"></span>
17+
{{ if eq $currentUrl .Permalink }}
18+
<span class="box current partial" id="current-page"></span>
19+
{{ else }}
20+
<span class="box-link partial"></span>
2121
{{ end }}
2222
<a href="{{ .Permalink }}" style="{{if eq $currentUrl .Permalink}}font-weight: bold;{{end}}">{{ .Title }} </a>
23-
{{ if eq $currentUrl .Permalink }}
23+
{{ if eq $currentUrl .Permalink }}
2424
{{- with .TableOfContents -}}
2525
{{- . -}}
2626
{{- end -}}
2727
{{ end }}
2828
{{ end }}
2929
</li>
3030
{{ end }}
31-
</ul>
31+
</ul>

layouts/search/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div id="search" class="CoveoSearchInterface" data-enable-history="true" >
88
<div class="CoveoFolding"></div>
99
<div class="CoveoAnalytics" data-search-hub="HUB_ES_Nginx_Docs_And_Org"></div>
10-
<div class="coveo-search-section" style="display: none;">
10+
<div data-mf="true" class="coveo-search-section">
1111
<div class="CoveoSearchbox" data-enable-omnibox="true"></div>
1212
</div>
1313
<div class="coveo-main-section">

layouts/shortcodes/bootstrap-table.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
{{ $class = printf "%s %s" $class $narrowOption }}
1616
{{ end }}
1717

18-
<div data-mf="true" style="display: none;" class="table-v2 {{ $class }}">
18+
<div data-mf="true" class="table-v2 {{ $class }}">
1919
{{ .Inner | markdownify }}
20-
</div>
20+
</div>

layouts/shortcodes/ghcode.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<div id="code-block-v1" data-mf="false">
1010
{{ highlight .Content $lang $params }}
1111
</div>
12-
13-
<div class="code-block" data-mf="true" style="display: none;">
12+
13+
<div class="code-block" data-mf="true">
1414
{{- if and (ne $lang "") (ne $lang "none") -}}
1515
<span class="code-type chroma">{{ $lang }}</span>
1616
{{- end -}}
@@ -24,4 +24,4 @@
2424
{{ end }}
2525
{{ else }}
2626
{{ errorf "Unable to load github content from %s from %q" $file .Position}}
27-
{{ end }}
27+
{{ end }}

0 commit comments

Comments
 (0)