Skip to content

Commit d143772

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

File tree

2 files changed

+62
-59
lines changed

2 files changed

+62
-59
lines changed

assets/css/utilities.css

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -236,46 +236,3 @@
236236
font-size: 19px;
237237
}
238238
}
239-
240-
.footer {
241-
@apply ml-auto hidden flex-row justify-between gap-6 px-4 pt-6 pb-2 md:flex;
242-
@apply border-t border-gray-200 bg-gray-100 dark:border-gray-700 dark:bg-gray-900;
243-
@apply text-gray-600 dark:text-gray-400;
244-
a:hover {
245-
@apply underline underline-offset-4;
246-
}
247-
}
248-
249-
.social {
250-
@apply flex min-w-20 flex-wrap items-center gap-1;
251-
}
252-
253-
.links {
254-
@apply flex items-center gap-3;
255-
}
256-
257-
.links a {
258-
@apply inline-flex min-w-15 truncate whitespace-normal;
259-
}
260-
261-
.secondaryLinks {
262-
@apply flex items-center;
263-
a,
264-
button {
265-
@apply whitespace-normal md:truncate;
266-
}
267-
}
268-
269-
.secondaryLinks > *:not(:last-child)::after {
270-
content: "|";
271-
@apply mx-1 text-gray-400;
272-
}
273-
274-
.ot-sdk-show-settings {
275-
@apply !text-gray-600 hover:!text-gray-800 dark:!text-gray-400 dark:hover:!text-gray-200;
276-
@apply !m-0 !min-w-15 !truncate !border-none !p-0 !text-sm;
277-
}
278-
#ot-sdk-btn.ot-sdk-show-settings:hover,
279-
#ot-sdk-btn.optanon-show-settings:hover {
280-
@apply !text-gray-600 underline decoration-1 underline-offset-4 hover:!bg-transparent dark:!text-gray-400;
281-
}

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)