Skip to content

Commit 663970f

Browse files
committed
Chore: Merge branch 'main' into 'new-mf-tests'
2 parents 125b3ec + 32b9639 commit 663970f

File tree

7 files changed

+64
-33
lines changed

7 files changed

+64
-33
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
insert_final_newline = true
7+
end_of_line = lf

assets/css/v2/style.css

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,9 @@ textarea:not([rows]) {
246246
--product-selector-background: 0.98 0 0;
247247

248248
/* vars for the primary grid setup */
249-
--grid-content: minmax(34rem, 50rem);
250-
--grid-content-mobile: minmax(20rem, 50rem);
249+
--grid-max: 50rem;
250+
--grid-content: minmax(34rem, var(--grid-max));
251+
--grid-content-mobile: minmax(20rem, var(--grid-max));
251252
--grid-side-callout: minmax(18rem, 26rem);
252253
--grid-column-gutter: 3.5rem;
253254

@@ -313,7 +314,7 @@ textarea:not([rows]) {
313314
--sidebar-item-padding-tb: 0.25rem;
314315
--content-max-width: 88rem;
315316

316-
--main-col: minmax(34rem, 50rem);
317+
--main-col: minmax(34rem, var(--grid-max));
317318
--side-col: minmax(18rem, 26rem);
318319
}
319320

@@ -1929,6 +1930,7 @@ table {
19291930
font-size: var(--font-step-0);
19301931

19311932
td {
1933+
max-width: var(--grid-max);
19321934
vertical-align: middle;
19331935
padding: var(--table-inner-padding);
19341936
background: transparent;
@@ -2011,9 +2013,22 @@ blockquote {
20112013
margin: 0;
20122014
}
20132015

2016+
/* Prevent codeblock x-axis overflow within callouts, retaining flow-gap for y */
2017+
.callout-content:has(.code-block) {
2018+
.code-block {
2019+
margin-right: 0;
2020+
margin-left: 0;
2021+
}
2022+
}
2023+
20142024
.callout-content {
20152025
margin: 0;
20162026
}
2027+
2028+
/* To help them align with text, side callouts should not have top margin*/
2029+
&[data-grid="last-third"] {
2030+
--margin-callout: 0 0 0 1rem;
2031+
}
20172032
}
20182033

20192034
blockquote.note {
@@ -2387,6 +2402,10 @@ ul .code-block {
23872402

23882403
.banner {
23892404
margin-block-start: 1rem;
2405+
2406+
blockquote {
2407+
margin-left: 0rem;
2408+
}
23902409
}
23912410

23922411
/* MARK: Images

exampleSite/data/f5-sites.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- title: NGINX Documentation
2+
url: https://docs.nginx.com/
3+
description: Learn how to deliver, manage, and protect your applications using F5 NGINX products.
4+
5+
- title: NGINX
6+
url: https://nginx.org/
7+
description: Learn more about NGINX Open Source and read the community blog

layouts/partials/f5-sites.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<div class="header__f5sites">
2+
{{ with index .Site.Data "f5-sites" }}
3+
{{ $f5Sites := . }}
4+
<div class="navbar navbar-nav">
5+
<div class="nav-item-explore active">
6+
<button id="navbar-sites-button" class="button navbar-button dropdown-button" data-testid="header__f5sites_button">
7+
F5 Sites
8+
<span class="header__f5sites--icon">
9+
{{ partial "lucide" (dict "context" . "icon" "chevron-down") }}
10+
</span>
11+
</button>
12+
<div class="dropdown-content" id="dropdown-content" data-testid="header__f5sites_content">
13+
<ul>
14+
{{ range $f5Sites }}
15+
<li>
16+
<a href="{{ .url }}" target="_blank" >{{ .title }}</a>
17+
<p>{{ .description }}</p>
18+
</li>
19+
{{ end }}
20+
</ul>
21+
</div>
22+
</div>
23+
</div>
24+
{{ end }}
25+
</div>

layouts/partials/header.html

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,35 +28,8 @@
2828
</a>
2929
</div>
3030

31-
<div class="header__f5sites" data-testid="header__f5sites">
32-
{{ $f5Sites := slice
33-
(dict "title" "DevCentral" "url" "https://community.f5.com/" "description" "Connect & learn in our hosted community")
34-
(dict "title" "MyF5" "url" "https://my.f5.com/" "description" "Your key to everything F5, including support, registration keys, and subscriptions")
35-
(dict "title" "NGINX" "url" "https://nginx.org/" "description" "Learn more about NGINX Open Source and read the community blog")
36-
}}
31+
{{ partial "f5-sites.html" . }}
3732

38-
<div class="navbar navbar-nav">
39-
<div class="nav-item-explore active">
40-
<button id="navbar-sites-button" class="button navbar-button dropdown-button" data-testid="header__f5sites__button">
41-
F5 Sites
42-
<span class="header__f5sites--icon">
43-
{{ partial "lucide" (dict "context" . "icon" "chevron-down") }}
44-
</span>
45-
</button>
46-
<div class="dropdown-content" id="dropdown-content" data-testid="header__f5sites__content">
47-
<ul>
48-
{{ range $f5Sites }}
49-
<li>
50-
<a href="{{ .url }}" target="_blank" >{{ .title }}</a>
51-
<p>{{ .description }}</p>
52-
</li>
53-
{{ end }}
54-
</ul>
55-
</div>
56-
</div>
57-
</div>
58-
59-
</div>
6033
</div>
6134
<div class="header-search-dropdown" data-testid="header-search-dropdown-mobile">
6235
<atomic-external selector="#search-standalone-header">

layouts/partials/table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{$variant := .variant | default "narrow"}}
1+
{{$variant := .variant | default "wide"}}
22
{{$theme := .theme | default "bordered"}}
33
{{$dataGrid := cond (eq $variant "narrow") "first-two-thirds" (cond (eq $variant "wide") "wide" "") }}
44

layouts/shortcodes/bootstrap-table.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ $defaultVariant := "narrow" }}
1+
{{ $defaultVariant := "wide" }}
22

33
{{ partial "table.html" (dict
44
"variant" $defaultVariant

0 commit comments

Comments
 (0)