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
20 changes: 11 additions & 9 deletions docs/_document.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@
/>
</a>
</div>
<div class="flex justify-center px-4 mb-6">
<button
id="theme-toggle"
data-theme-mode="system"
aria-label="Switch theme"
class="flex items-center gap-2 px-4 py-2 rounded-lg text-subtle-light dark:text-subtle-dark hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors border border-border-light dark:border-border-dark"
>
<span class="material-icons" data-theme-icon>brightness_auto</span>
<span class="text-sm font-medium" data-theme-text>System</span>
</button>
</div>
<nav class="flex flex-col space-y-6 w-52 pl-4 pt-2">
<div>
<h3
Expand Down Expand Up @@ -451,15 +462,6 @@
<h1 class="text-5xl font-bold text-text-light dark:text-text-dark">
Marked Documentation
</h1>
<button
id="theme-toggle"
data-theme-mode="system"
aria-label="Switch theme"
class="flex items-center gap-2 px-4 py-2 rounded-lg text-subtle-light dark:text-subtle-dark hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
>
<span class="material-icons" data-theme-icon>brightness_auto</span>
<span class="text-sm font-medium" data-theme-text>System</span>
</button>
</div>

<article
Expand Down
7 changes: 0 additions & 7 deletions docs/css/shared.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,4 @@ a.github-corner:hover .octo-arm {
0%, 100% { transform: rotate(0); }
20%, 60% { transform: rotate(-25deg); }
40%, 80% { transform: rotate(10deg); }
}

/* Mobile: Hide GitHub corner on small screens */
@media (max-width: 768px) {
a.github-corner {
display: none;
}
}
31 changes: 0 additions & 31 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ pre {
opacity: 1;
}

#theme-toggle:not(.demo) {
margin-right: 40px;
}

/* Mobile Styles - Changed breakpoint from 768px to 1024px */
@media (max-width: 1024px) {
/* Show mobile menu button */
Expand Down Expand Up @@ -196,26 +192,6 @@ pre {
width: 100%;
}

/* Adjust theme toggle button position on mobile */
#theme-toggle:not(.demo) {
position: fixed;
margin-right: 0;
top: 16px;
right: 80px;
z-index: 9998;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
background-color: var(--background-color);
}

.dark #theme-toggle:not(.demo) {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Adjust GitHub corner for mobile */
.github-corner {
display: none;
}

/* Make sidebar full height on mobile */
.sidebar {
width: 280px;
Expand Down Expand Up @@ -246,13 +222,6 @@ pre {
}
}

@media (max-width: 768px) {
/* When github corner is invisible */
#theme-toggle:not(.demo) {
right: 16px;
}
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
overflow: hidden;
Expand Down
4 changes: 4 additions & 0 deletions docs/demo/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ header h1 {
.theme-toggle {
margin-right: 0;
}

a.github-corner {
display: none !important;
}
}

.theme-toggle:hover {
Expand Down