Skip to content

Commit 2ead554

Browse files
Josh SagerGitHub Enterprise
authored andcommitted
Merge pull request linode#34 from abailly/DLC-64
DLC-64 Mobile styling adjustments
2 parents 59a1516 + 0807f41 commit 2ead554

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

themes/dlc/layouts/_default/guides.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ <h3 class="mt-0 text-2xl"><a href="{{ .Params.external_url }}" class="text-black
1818
</article>
1919
{{ end }}
2020
</div>
21-
<div class="text-center mb-12">
21+
<div class="text-center mt-4 md:mt-0 md:mb-12">
2222
<a href="https://linode.com/docs/platform" target="_blank" class="btn mx-auto">View All Platform Guides</a>
2323
</div>
2424
</div>
2525

2626
<div class="flex flex-wrap my-8 -mx-4">
27-
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8" style="height: 300px">
28-
<div class="p-8 h-full">
27+
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
28+
<div class="md:p-8 h-full">
2929
<div class="cloud flex justify-center md:justify-end items-center">
3030
{{ partial "0_svgs/cloud.svg" }}
3131
</div>

themes/dlc/layouts/_default/libraries-tools.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ define "main" }}
22

33
<div class="my-4 md:my-12 max-w-3xl mx-auto">
4-
<div class="flex flex-wrap -mx-4 items-center">
4+
<div class="flex flex-wrap -mx-4 items-center flex-col-reverse md:flex-row">
55
<div class="w-full md:w-1/2 px-4 flex md:justify-end">
66
<div style="width: 300px;">
77
{{ partial "2_molecules/code-box.html" }}
@@ -15,12 +15,12 @@ <h2>Linode CLI</h2>
1515
</div>
1616
</div>
1717

18-
<div class="flex flex-wrap mb-8 -mx-4">
18+
<div class="flex flex-wrap md:mb-8 -mx-4">
1919

2020
<div class="w-full sm:w-1/4 md:w-1/5 px-4">
2121
<div class="button-group filters-group py-2 md:py-6 md:mt-12">
2222
<div id="createdFilters" class="flex flex-wrap md:block">
23-
<div class="md:my-4">{{ partial "0_svgs/divider.svg" (dict "width" 170) }}</div>
23+
<div class="md:my-4 mx-auto">{{ partial "0_svgs/divider.svg" (dict "width" 170) }}</div>
2424
<h4 class="uppercase mb-4 w-full">Created By</h4>
2525
{{ partial "1_atoms/radio.html" (dict "ID" "linode" "Name" "created" "Value" ".linode" "Label" "Linode") . }}
2626
{{ partial "1_atoms/radio.html" (dict "ID" "community" "Name" "created" "Value" ".community" "Label" "Community") . }}
@@ -38,7 +38,7 @@ <h4 class="uppercase mb-4 w-full">Language</h4>
3838

3939
<div class="w-full sm:w-3/4 md:w-4/5 px-4">
4040
<h2>Libraries</h2>
41-
<div class="flex flex-wrap my-8 -mx-4 grid">
41+
<div class="flex flex-wrap my-4 md:my-8 -mx-4 grid">
4242
<div id="noResultsContainer" class="visually-hidden">
4343
<div>No results</div>
4444
</div>

themes/dlc/layouts/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ <h2>How easily can you create a Linode?</h2>
1212
<div class="flex flex-wrap my-8 -mx-4 pb-8">
1313
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
1414
<div class="px-8 py-20 h-full bg-d-cell tile flex flex-col justify-center items-center">
15-
<h2 class="mt-0 font-normal"><a href="https://developers.linode.com/" class="text-black tile-link">APIv4 Documentation</a></h3>
15+
<h2 class="mt-0 font-normal text-center"><a href="https://developers.linode.com/" class="text-black tile-link">APIv4 Documentation</a></h3>
1616
<p class="text-xl mt-2 text-center">Reference Documentation for the linode API</p>
1717
<a href="https://developers.dev.linode.com/api/v4" target="_blank" class="btn mt-6">View API docs</a>
1818
</div>
1919
</article>
2020
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
2121
<div class="p-8 py-20 h-full bg-d-cell tile flex flex-col justify-center items-center">
22-
<h2 class="mt-0 font-normal"><a href="/guides/" class="text-black tile-link">Guides</a></h3>
22+
<h2 class="mt-0 font-normal text-center"><a href="/guides/" class="text-black tile-link">Guides</a></h3>
2323
<p class="text-xl mt-2 text-center">How-to’s and examples using the Linode API</p>
2424
<a href="/guides/" class="btn mt-6">View Guides</a>
2525
</div>
2626
</article>
2727
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
2828
<div class="p-8 py-20 h-full bg-d-cell tile flex flex-col justify-center items-center">
29-
<h2 class="mt-0 font-normal"><a href="/libraries-tools/" class="text-black tile-link">Libraries &amp; Tools</a></h3>
29+
<h2 class="mt-0 font-normal text-center"><a href="/libraries-tools/" class="text-black tile-link">Libraries &amp; Tools</a></h3>
3030
<p class="text-xl mt-2 text-center">Jumpstart your API integration</p>
3131
<a href="/libraries-tools/" class="btn mt-6">View Libraries &amp; Tools</a>
3232
</div>
3333
</article>
3434
<article class="w-full md:w-1/2 px-4 mb-4 md:mb-8">
3535
<div class="p-8 py-20 h-full bg-d-cell tile flex flex-col justify-center items-center">
36-
<h2 class="mt-0 font-normal"><a href="https://www.linode.com/community/" target="_blank" class="text-black tile-link">Community Questions</a></h3>
36+
<h2 class="mt-0 font-normal text-center"><a href="https://www.linode.com/community/" target="_blank" class="text-black tile-link">Community Questions</a></h3>
3737
<p class="text-xl mt-2 text-center">Questions and answers from the Linode community</p>
3838
<a href="https://linode.com/community/questions" target="_blank" class="btn mt-6">View Q&amp;A</a>
3939
</div>

themes/dlc/layouts/partials/2_molecules/code-box.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="code-box bg-d-beige rounded my-8">
1+
<div class="code-box bg-d-beige rounded md:my-8">
22
<div class="code-box-header border-white flex justify-start py-4 px-6">
33
<span class="code-box-circle circle-red"></span>
44
<span class="code-box-circle circle-yellow"></span>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.cloud {
2+
height: 150px
3+
}
4+
5+
.cloud svg {
6+
height: 100%;
7+
width: 100%;
8+
}
9+
10+
@screen md {
11+
.cloud {
12+
height: 300px
13+
}
14+
}

0 commit comments

Comments
 (0)