Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 60 additions & 32 deletions jekyll-assets/_layouts/boxes.html
Original file line number Diff line number Diff line change
@@ -1,42 +1,70 @@
<!doctype html>
<html lang="en">
<head>
{% include head.html %}
</head>
<body>
{% include header.html %}

<div class="toptitle">
<h1><a href="/documentation/"><b>Raspberry Pi</b> Documentation</a></h1>
<div id="search-container">
<div id="docsearch" role="search"></div>
</div>
{% include tabs.html %}

<head>
{% include head.html %}
</head>

<body>
{% include header.html %}

<div class="toptitle">
<h1><a href="/documentation/"><b>Raspberry Pi</b> Documentation</a></h1>
<div id="search-container">
<div id="docsearch" role="search"></div>
</div>
{% include tabs.html %}
</div>

<div id="container" role="main">
<section id="box-content">
{% for item in site.data.index.tabs %}
{% if page.dir == item.path or page.dir == "/" and item.default_tab and item.default_tab == "yes" %}
{% for entry in item.subitems %}
{% if entry.path %}
<a class="box" href="{{ site.baseurl }}{{ entry.path }}">
{% else %}
<a class="box" href="{{ entry.url }}">
{% endif %}
<span><img src="{{ site.baseurl }}{{ entry.imagepath }}" width="121" height="121" alt=""></span>
<span class="title">{{ entry.title | markdownify }}</span>
<span>{{ entry.description }}</span>
</a>
{% endfor %}
<div id="container" role="main">
<section id="box-content">
{% for item in site.data.index.tabs %}
{% if page.dir == item.path or page.dir == "/" and item.default_tab and item.default_tab == "yes" %}
{% for entry in item.subitems %}
{% if entry.path %}
<a class="box" href="{{ site.baseurl }}{{ entry.path }}">
{% else %}
<a class="box" href="{{ entry.url }}">
{% endif %}
<span><img src="{{ site.baseurl }}{{ entry.imagepath }}" width="121" height="121" alt=""></span>
<span class="title">{{ entry.title | markdownify }}</span>
<span>{{ entry.description }}</span>
</a>
{% endfor %}
{% endif %}
{% endfor %}
</section>
</div>

<div id="related" role="complementary">
<div id="related-title">
<h2>Related resources</h2>
</div>
<div id="related-container" role="complementary">
<section id="related-content">
<a class="box" href="https://pip.raspberrypi.com/">
<span><img src="/documentation/images/full-sized/PIP.png" width="121" height="121" alt=""></span>
<span class="title">Product Information Portal</span>
<span>Documents, reports, and notices for all Raspberry Pi products</span>
</a>
<a class="box" href="https://www.raspberrypi.com/tutorials/">
<span><img src="/documentation/images/full-sized/Tutorials.png" width="121" height="121" alt=""></span>
<span class="title">Tutorials</span>
<span>Hands-on hardware and software tutorials</span>
</a>
<a class="box" href="https://forums.raspberrypi.com/">
<span><img src="/documentation/images/full-sized/Forums.png" width="121" height="121" alt=""></span>
<span class="title">Forums</span>
<span>User and product support forums</span>
</a>
</section>
</div>
</div>

{% include legal.html %}
{% include footer.html %}
{% include search.html %}

{% include legal.html %}
{% include footer.html %}
{% include search.html %}
</body>

</body>
</html>
</html>
34 changes: 24 additions & 10 deletions jekyll-assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,24 @@ div.subtitle p {
margin-right: 0px;
}

#container .section {
#container .section,
#related-container .section {
display: flex;
flex-direction: column;
width: 100%;
}

#docs-content #container {
#related-title {
text-align: center;
}

#related-title h2 {
padding-top: 20px;
font-size: 1.5em;
}

#docs-content #container,
#docs-content #related-container {
align-items: start;
}

Expand Down Expand Up @@ -520,7 +531,8 @@ li > a {
color: var(--subtle-text);
}

#container section#content {
#container section#content,
#related-container section#content {
flex-grow: 1;
}

Expand Down Expand Up @@ -1403,7 +1415,7 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
content: "";
display: block;
height: 60px;
margin -60px 0 0;
margin: -60px 0 0;
}

/* when the mobile menu is visible, hide all page content so we don't end up with dueling scrollbars */
Expand Down Expand Up @@ -1443,7 +1455,8 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
max-width: 100vw;
}

#container {
#container,
#related-container {
justify-content: center;
flex-wrap: wrap;
margin-left: 3px;
Expand Down Expand Up @@ -1544,8 +1557,6 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
#content {
margin-left: 0px;
}
#container {
}
}

@media print {
Expand All @@ -1560,7 +1571,8 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
ul#tab-container li a {
display: none !important;
}
div#container {
div#container,
div#related-container {
margin-left: 0;
margin-right: 0;
justify-content: center !important;
Expand All @@ -1581,7 +1593,8 @@ input:not(:checked) ~ li ~ .itemcontents .sectlevel1 {
box-sizing: border-box;
}

section#box-content {
section#box-content,
section#related-content {
display: flex;
flex-wrap: wrap;
flex-direction: row;
Expand Down Expand Up @@ -1639,7 +1652,8 @@ div.subtitle.error-message p a {
color: var(--bg);
}

#container {
#container,
#related-container {
display: flex;
justify-content: center;
margin-right: 10px;
Expand Down