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")

0 commit comments

Comments
 (0)