Skip to content

Commit

Permalink
Layout improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Justanhy committed May 8, 2021
1 parent 21b5162 commit fb0dae8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
4 changes: 3 additions & 1 deletion _layouts/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ <h2 style="margin-left: 10px;">Table of Contents</h2>
{%- include toc.html html=content -%}
</div>
</div>
<div class="buttonCol" onclick="toggleNav()">
<span id="openbtn">◀📑</span>
</div>
<div class="contents">
<span id="openbtn" onclick="toggleNav();">🧾Contents</span>
<main id="content" class="main-content" role="main">
<div class="partNav">
{%- if page.part == true -%}
Expand Down
15 changes: 9 additions & 6 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ blockquote blockquote {
.container {
display: grid;
width: 100%;
grid-template-columns: min-content 1fr;
grid-template-areas: "nav content";
grid-template-columns: min-content 3em 1fr;
grid-template-areas: "nav button content";
transition: width 0.5s ease;
}

Expand Down Expand Up @@ -101,13 +101,16 @@ blockquote blockquote {
}

// NavBar toggle button
.buttonCol {
grid-area: button;
cursor: pointer;
background-color: whitesmoke;
}

#openbtn {
font-size: 20px;
cursor: pointer;
position: sticky;
top: 10px;
left: 10px;
padding-right: 1px;
top: 50vh;
}

// Contents
Expand Down
3 changes: 3 additions & 0 deletions cs132/part3.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ slides: true
layout: notes
math: true
title: Assembler
part: true
pre: part2
nex: part4
---
# Assembler

Expand Down
3 changes: 3 additions & 0 deletions cs132/part4.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ slides: true
layout: CS132
math: true
title: Memory Systems
part: true
pre: part3
nex: part5
---

# Memory Systems
Expand Down
3 changes: 3 additions & 0 deletions cs132/part5.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
title: I/O Mechanisms
layout: CS132
part: true
pre: part4
nex: part6
---

<p align="center">
Expand Down

0 comments on commit fb0dae8

Please sign in to comment.