Skip to content

Commit 41ca1b4

Browse files
committed
remove toc on small width devices
1 parent f195735 commit 41ca1b4

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ modified nerdfontsOnlySymbols file with fontforge-gtk to only have like 4 symbol
1414

1515
- add code block expansion
1616
- better nav bar, add some flair to background color
17-
- Table of Content can rended too long for the user to use on small width phone with a lot of headings. So need to fix that, but don't make the table scrollable. I hate that
17+
- Table of Content can render too long for the user to use on small width phone with a lot of headings. So I hid it on small width devices. But there is probably a better way for it, without making ToC scrollable because that would be 1000 times worse
1818
- Pokemons aren't centered
1919
- I want a [project oriented pages too](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages#using-a-custom-domain-across-multiple-repositories)
2020
- better rss.xml theme, like [boltless](https://github.com/boltlessengineer/boltlessengineer.github.io/blob/989b409505d56f2c9fcbaf3cec1db8aac52156c7/templates/rss.xml#L2)

public/assets/css/toc.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>Latest posts</description>
77
<generator>Norgolith</generator>
88
<language>en-us</language>
9-
<lastBuildDate>Sat, 13 Sep 2025 04:31:50 +0000</lastBuildDate>
9+
<lastBuildDate>Sat, 13 Sep 2025 04:42:45 +0000</lastBuildDate>
1010
<ttl>60</ttl>
1111
<atom:link href="https:&#x2F;&#x2F;ladas552.me/rss.xml" rel="self" type="application/rss+xml" />
1212

theme/assets/css/toc.css

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,25 +114,14 @@
114114
/* Responsive Design */
115115
@media (max-width: 768px) {
116116
.toc-button {
117-
width: 32px;
118-
height: 32px;
119-
right: 10px;
120-
}
121-
122-
#toc-toggle:checked ~ .toc-button {
123-
right: 295px;
117+
display: none; /* Hide button on small screens */
124118
}
125119

126120
.toc-panel {
127-
width: 280px;
128-
right: -280px;
129-
}
130-
131-
#toc-toggle:checked ~ .toc-panel {
132-
transform: translateX(-280px);
121+
display: none; /* Hide panel on small screens */
133122
}
134123

135-
.toc-content a {
136-
padding: 0.4rem 0.8rem;
124+
.overlay {
125+
display: none; /* Hide overlay on small screens */
137126
}
138127
}

0 commit comments

Comments
 (0)