Skip to content

Commit 8090149

Browse files
Summary bars for docs
1 parent 68add43 commit 8090149

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed

assets/css/styles.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
@import "/assets/css/syntax-light";
1515
@import "/assets/css/syntax-dark";
1616
@import "/assets/css/icons";
17+
18+
@import "/assets/css/summary-bar";

assets/css/summary-bar.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.summary-bar {
2+
display: flex;
3+
gap: 1rem;
4+
padding: 1rem;
5+
background-color: theme("colors.blue.light.500");
6+
border: 1px solid theme("colors.blue.light.500");
7+
border-radius: 5px;
8+
margin-bottom: 1rem;
9+
align-items: center;
10+
}
11+
12+
.summary-icon {
13+
display: flex;
14+
align-items: center;
15+
gap: 0.5rem;
16+
}
17+
18+
.summary-icon .material-symbols-outlined {
19+
font-size: 24px;
20+
color: theme("colors.white");
21+
}
22+
23+
.summary-label {
24+
font-size: 14px;
25+
color: theme("colors.white");
26+
}

content/manuals/security/for-admins/hardened-desktop/settings-management/configure-admin-console.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ params:
1111
text: EA
1212
---
1313

14+
{{< summary-bar
15+
subscription="domain"
16+
subscriptionText="Business"
17+
lifecycle="rocket_launch"
18+
lifecycleText="EA"
19+
admin="admin_panel_settings"
20+
adminText="Admin"
21+
>}}
22+
1423
{{% restricted title="Early Access" %}}
1524
Settings Management in the Docker Admin Console is an [early access](/release-lifecycle#early-access-ea) feature and is available to Docker Business customers only.
1625
{{% /restricted %}}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!--
2+
Summary bar icon library:
3+
4+
1. Subscription:
5+
- Label: Business | Icon: domain
6+
- Label: Team | Icon: groups
7+
- Label: Pro | Icon: person_add
8+
- Label: Personal | Icon: person
9+
- Label: Available to all | Icon: public
10+
11+
2. Release lifecycle:
12+
- Label: Experimental | Icon: science
13+
- Label: Beta | Icon: bolt
14+
- Label: EA | Icon: rocket_launch
15+
- Label: GA | Icon: check_circle
16+
- Label: Retired | Icon: package_2
17+
18+
3. Minimum version:
19+
- Label: Version [version_number] | Icon: browser_updated
20+
21+
4. Admin:
22+
- Label: Admin | Icon: admin_panel_settings
23+
-->
24+
25+
{{ $styles := resources.Get "css/summary-bar.css" | resources.Minify }}
26+
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">
27+
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
28+
29+
<div class="summary-bar">
30+
<span class="summary-title">Available for:</span>
31+
{{ if .Get "subscription" }}
32+
<div class="summary-icon">
33+
<span class="material-symbols-outlined">{{ .Get "subscription" }}</span>
34+
<span class="summary-label">{{ .Get "subscriptionText" }}</span>
35+
</div>
36+
{{ end }}
37+
{{ if .Get "lifecycle" }}
38+
<div class="summary-icon">
39+
<span class="material-symbols-outlined">{{ .Get "lifecycle" }}</span>
40+
<span class="summary-label">{{ .Get "lifecycleText" }}</span>
41+
</div>
42+
{{ end }}
43+
{{ if .Get "version" }}
44+
<div class="summary-icon">
45+
<span class="material-symbols-outlined">{{ .Get "version" }}</span>
46+
<span class="summary-label">{{ .Get "versionText" }}</span>
47+
</div>
48+
{{ end }}
49+
{{ if .Get "admin" }}
50+
<div class="summary-icon">
51+
<span class="material-symbols-outlined">{{ .Get "admin" }}</span>
52+
<span class="summary-label">{{ .Get "adminText" }}</span>
53+
</div>
54+
{{ end }}
55+
</div>

0 commit comments

Comments
 (0)