Skip to content

Commit

Permalink
Build out board menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jun 17, 2024
1 parent 3799a9b commit 46bd37b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 17 deletions.
52 changes: 40 additions & 12 deletions assets/pinout.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ footer p {
text-align: center;
}
aside {
margin-top: 20px; /* mobile, removed >= 640px */
grid-template-rows: auto 1fr;
grid-template-columns: auto 147px;
display: grid;
}
/* The pinout diagram container */
aside nav {
display: grid;
grid-template-columns: 50% 50%;
Expand Down Expand Up @@ -56,13 +56,40 @@ a, a:hover {
a:hover {
text-decoration: none;
}
header, body > nav {
header {
background: #eeeeee;
display: block;
line-height: 22px;
padding: 20px;
display: grid;
}
body > nav {
display: grid;
margin: 20px;
}
body > nav li {
display: block;
margin: 0;
padding: 0;
margin: 2px;
float: left;
}
body > nav li a {
display: block;
text-decoration: none;
padding: 5px;
background: #eee;
font-size: 80%;
}
nav li.beagle a {color: #f26322;border-color: #f26322;}
nav li.raxda a {color: #74bc1f;border-color: #74bc1f;}
nav li.rpi a {color: #cc2455;border-color: #cc2455;}
nav li.selected a,
nav li a:hover {
color: #eee;
background: #333;
}
nav li.selected a {margin-bottom:-2px;border-bottom-width: 2px; border-bottom-style: solid;}

header {
margin-top: 20px; /* mobile, removed >= 640px */
grid-template-columns: auto auto;
Expand All @@ -73,11 +100,7 @@ header h1 {
font-size: 20px;
grid-column: 1;
}
header ul, nav ul {
grid-column: 2;
list-style: none;
margin: 0;
padding: 0;
header ul {
text-align: right;
}
header li, nav li {
Expand Down Expand Up @@ -229,13 +252,15 @@ section, footer {
margin: 0;
}
aside {
margin-top: 0;
grid-row: 2;
grid-template-columns: auto 196px;
}
article p:nth-child(1) {
margin-top: 0;
}
body > nav {
margin: 0;
}
body > header {
margin-top: 0;
grid-row: 1;
Expand All @@ -248,9 +273,12 @@ section, footer {
background-color: #000000;
color: #eee;
}
body > nav li a {
background: #151515;
}
.labels .ground td {color: #eeeeee66;}
header, body > nav {
background: #111111;
header {
background: #151515;
}
.filter label,
footer p,
Expand All @@ -264,7 +292,7 @@ section, footer {
color: #3ba6f1;
}
.labels td {
border-bottom-color: #333333;
border-bottom-color: #1f1f1f;
}
.labels tbody tr:before {
border-color: #000000;
Expand Down
14 changes: 9 additions & 5 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
<body>
<nav>
<ul>
<li class="selected"><a href="#">Pi 5</a></li>
<li><a href="#">Pi 4</a></li>
<li><a href="#">Pi 3</a></li>
<li><a href="#">Pi 2</a></li>
<li><a href="#">Pi 1</a></li>
<li class="rpi selected"><a href="#" title="Raspberry Pi 5"><i class="fa-brands fa-raspberry-pi"></i> 5</a></li>
<li class="rpi" title="Raspberry Pi 4B and 400"><a href="#"><i class="fa-brands fa-raspberry-pi"></i> 4B / 400</a></li>
<li class="rpi" title="Raspberry Pi 3B+ and 3A+"><a href="#"><i class="fa-brands fa-raspberry-pi"></i> 3B/A+</a></li>
<li class="rpi" title="Raspberry Pi 3B"><a href="#"><i class="fa-brands fa-raspberry-pi"></i> 3B</a></li>
<li class="rpi" title="Raspberry Pi 2B"><a href="#"><i class="fa-brands fa-raspberry-pi"></i> 2B</a></li>
<li class="rpi" title="Raspberry Pi B+ and A+"><a href="#"><i class="fa-brands fa-raspberry-pi"></i> B/A+</a></li>
<li class="rpi" title="Raspberry Pi B and A"><a href="#"><i class="fa-brands fa-raspberry-pi"></i> B/A</a></li>
<li class="beagle"><a title="BeagleBoard's BeagleY AI" href="#">BeagleY-AI</a></li>
<li class="raxda"><a title="Raxda Rock 5B" href="#">ROCK 5B</a></li>
</ul>
</nav>
<aside>
Expand Down

0 comments on commit 46bd37b

Please sign in to comment.