Skip to content

Commit a0f48c3

Browse files
committed
site: update footer styling
Signed-off-by: David Karlsson <[email protected]>
1 parent 2ec839e commit a0f48c3

File tree

3 files changed

+71
-60
lines changed

3 files changed

+71
-60
lines changed

assets/css/utilities.css

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -270,49 +270,6 @@
270270
}
271271
}
272272

273-
.footer {
274-
@apply ml-auto hidden flex-row justify-between gap-6 px-4 pt-6 pb-2 md:flex;
275-
@apply border-t border-gray-200 bg-gray-100 dark:border-gray-700 dark:bg-gray-900;
276-
@apply text-gray-600 dark:text-gray-400;
277-
a:hover {
278-
@apply underline underline-offset-4;
279-
}
280-
}
281-
282-
.social {
283-
@apply flex min-w-20 flex-wrap items-center gap-1;
284-
}
285-
286-
.links {
287-
@apply flex items-center gap-3;
288-
}
289-
290-
.links a {
291-
@apply inline-flex min-w-15 truncate whitespace-normal;
292-
}
293-
294-
.secondaryLinks {
295-
@apply flex items-center;
296-
a,
297-
button {
298-
@apply whitespace-normal md:truncate;
299-
}
300-
}
301-
302-
.secondaryLinks > *:not(:last-child)::after {
303-
content: "|";
304-
@apply mx-1 text-gray-400;
305-
}
306-
307-
.ot-sdk-show-settings {
308-
@apply !text-gray-600 hover:!text-gray-800 dark:!text-gray-400 dark:hover:!text-gray-200;
309-
@apply !m-0 !min-w-15 !truncate !border-none !p-0 !text-sm;
310-
}
311-
#ot-sdk-btn.ot-sdk-show-settings:hover,
312-
#ot-sdk-btn.optanon-show-settings:hover {
313-
@apply !text-gray-600 underline decoration-1 underline-offset-4 hover:!bg-transparent dark:!text-gray-400;
314-
}
315-
316273
/* Landing page AI components */
317274
.dotted-pattern {
318275
pointer-events: none;

hugo_stats.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
"With-systemd-Highly-recommended",
168168
"Without-packages",
169169
"Without-systemd",
170+
"[&_a:hover]:underline",
171+
"[&_a:hover]:underline-offset-4",
170172
"[display:none]",
171173
"[mix-blend-mode:multiply]",
172174
"absolute",
@@ -336,10 +338,12 @@
336338
"gap-2.5",
337339
"gap-3",
338340
"gap-4",
341+
"gap-6",
339342
"gap-8",
340343
"goat",
341344
"grid",
342345
"grid-cols-1",
346+
"grid-cols-3",
343347
"group",
344348
"group-hover:block'",
345349
"group-hover:text-blue-500",
@@ -436,6 +440,7 @@
436440
"md:border-none",
437441
"md:flex",
438442
"md:flex-nowrap",
443+
"md:grid",
439444
"md:grid-cols-2",
440445
"md:h-[calc(100vh-64px)]",
441446
"md:hidden",
@@ -445,11 +450,13 @@
445450
"md:text-base",
446451
"md:text-sm",
447452
"md:top-16",
453+
"md:truncate",
448454
"md:w-[300px]",
449455
"md:w-[320px]",
450456
"md:z-auto",
451457
"min-h-screen",
452458
"min-w-0",
459+
"min-w-20",
453460
"min-w-48",
454461
"min-w-52",
455462
"ml-2",
@@ -512,9 +519,9 @@
512519
"placeholder-gray-500",
513520
"pr-2",
514521
"prose",
515-
"pt-16",
516522
"pt-2",
517523
"pt-4",
524+
"pt-6",
518525
"px-1",
519526
"px-2",
520527
"px-3",
@@ -610,6 +617,7 @@
610617
"w-65",
611618
"w-8",
612619
"w-full",
620+
"whitespace-normal",
613621
"whitespace-nowrap",
614622
"xl:flex",
615623
"xl:flex-row",

layouts/partials/footer.html

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
<div class="footer">
2-
<div class="social">
1+
<div
2+
class="ml-auto hidden grid-cols-3 gap-6 border-t border-gray-200 bg-gray-100 px-4 pt-6 pb-2 text-gray-600 md:grid dark:border-gray-700 dark:bg-gray-900 dark:text-gray-400 [&_a:hover]:underline [&_a:hover]:underline-offset-4"
3+
>
4+
<div class="flex min-w-20 flex-wrap items-center gap-1">
35
<a href="https://www.linkedin.com/company/docker">
46
<span class="icon-svg">
57
{{ partial "utils/svg" "icons/linkedin.svg" }}
@@ -26,25 +28,69 @@
2628
</span>
2729
</a>
2830
</div>
29-
<div class="links">
30-
<a href="https://www.docker.com/">Product offerings</a>
31-
<a href="https://www.docker.com/pricing/">Pricing</a>
32-
<a href="https://www.docker.com/company/">About us</a>
31+
<div class="flex items-center justify-center gap-3">
32+
<a
33+
href="https://www.docker.com/"
34+
class="inline-flex truncate whitespace-normal"
35+
>Product offerings</a
36+
>
37+
<a
38+
href="https://www.docker.com/pricing/"
39+
class="inline-flex truncate whitespace-normal"
40+
>Pricing</a
41+
>
42+
<a
43+
href="https://www.docker.com/company/"
44+
class="inline-flex truncate whitespace-normal"
45+
>About us</a
46+
>
3347
{{- with .GetPage "/contribute" }}
34-
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
48+
<a href="{{ .Permalink }}" class="inline-flex truncate whitespace-normal"
49+
>{{ .LinkTitle }}</a
50+
>
3551
{{- end }}
36-
<a href="{{ "llms.txt" | relURL }}">Read llms.txt</a>
52+
<a
53+
href="{{ "llms.txt" | relURL }}"
54+
class="inline-flex truncate whitespace-normal"
55+
>llms.txt</a
56+
>
3757
</div>
38-
<div class="secondaryLinks">
39-
<button type="button" id="ot-sdk-btn" class="ot-sdk-show-settings">
58+
<div class="flex items-center justify-end">
59+
<button
60+
type="button"
61+
id="ot-sdk-btn"
62+
class="ot-sdk-show-settings whitespace-normal md:truncate"
63+
>
4064
Cookies Settings
4165
</button>
42-
<a title="Docker Terms of Service" href="https://www.docker.com/legal/docker-terms-service">Terms of Service</a>
43-
<a title="Docker Systems Status Page" href="https://www.dockerstatus.com/">Status</a>
44-
<a title="Docker Legal Terms" href="https://www.docker.com/legal">Legal</a>
66+
<span class="mx-1 text-gray-400">|</span>
67+
<a
68+
title="Docker Terms of Service"
69+
href="https://www.docker.com/legal/docker-terms-service"
70+
class="whitespace-normal md:truncate"
71+
>Terms of Service</a
72+
>
73+
<span class="mx-1 text-gray-400">|</span>
74+
<a
75+
title="Docker Systems Status Page"
76+
href="https://www.dockerstatus.com/"
77+
class="whitespace-normal md:truncate"
78+
>Status</a
79+
>
80+
<span class="mx-1 text-gray-400">|</span>
81+
<a
82+
title="Docker Legal Terms"
83+
href="https://www.docker.com/legal"
84+
class="whitespace-normal md:truncate"
85+
>Legal</a
86+
>
4587
</div>
4688
</div>
4789
<div
48-
class="text-sm text-gray-400 dark:text-gray-600 border-t dark:border-gray-700 border-gray-200 md:border-none px-4 py-4 bg-gray-100 dark:bg-gray-900 ">
49-
<span>Copyright © 2013-{{ time.Now.Year }} Docker Inc. All rights reserved.</span>
50-
</div>
90+
class="border-t border-gray-200 bg-gray-100 px-4 py-4 text-sm text-gray-400 md:border-none dark:border-gray-700 dark:bg-gray-900 dark:text-gray-600"
91+
>
92+
<span
93+
>Copyright © 2013-{{ time.Now.Year }} Docker Inc. All rights
94+
reserved.</span
95+
>
96+
</div>

0 commit comments

Comments
 (0)