-
Couldn't load subscription status.
- Fork 80
feat: changes and fixes #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
52acb07
39e7402
781af3f
17abe9b
237aee7
24a24c8
8853524
fde06f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,9 +87,23 @@ header { | |
|
|
||
| main { | ||
| min-height: 300px; | ||
| padding-right: 10px; | ||
| } | ||
|
|
||
| .buttons.for-back-home:not(:last-child) { | ||
| margin-left: 0; | ||
| margin-bottom: 1rem; | ||
| } | ||
|
|
||
| .navbar-item.navbar-dark-mode__mobile { | ||
| flex-grow: 1; | ||
| justify-content: flex-end; | ||
| } | ||
|
|
||
| @media screen and (min-width: 768px) { | ||
| .buttons.for-back-home:not(:last-child) { | ||
| margin-left: 2rem; | ||
| } | ||
| } | ||
|
|
||
| /* Phrasing Style: H1, H2, H3, H4, H5, H6, P, A, UL, LI */ | ||
|
|
||
|
|
@@ -576,8 +590,10 @@ hr { | |
| list-style: decimal; | ||
| display: inline-block; | ||
| background: var(--bg-sub); | ||
| /* @hiran, do we need this border radius? - @asim */ | ||
| border-radius: 8px; | ||
| width: 100%; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I will remove this. TOC Desktop also needs some minor cleanup, like margin-left |
||
| margin: 0; | ||
| } | ||
|
|
||
| #markdown-toc a { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| document.addEventListener('DOMContentLoaded', () => { | ||
|
|
||
| // Get all "navbar-burger" elements | ||
| const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); | ||
| // Check if there are any navbar burgers | ||
| if ($navbarBurgers.length > 0) { | ||
|
|
||
| // Add a click event on each of them | ||
| $navbarBurgers.forEach( el => { | ||
| el.addEventListener('click', () => { | ||
|
|
||
| // Get the target from the "data-target" attribute | ||
| const target = el.dataset.target; | ||
| const $target = document.getElementById(target); | ||
|
|
||
| // Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu" | ||
| el.classList.toggle('is-active'); | ||
| $target.classList.toggle('is-active'); | ||
|
|
||
| }); | ||
| }); | ||
| } | ||
| }); |

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the base font size changed to 12px, though this doesn't make a 1:1 map with actual design for mobile for typography.