Remove download button and align header icons

This commit is contained in:
Vijay Janapa Reddi
2025-12-03 07:15:55 -08:00
parent 4c4d9aa029
commit 9a7023b5e1
2 changed files with 49 additions and 4 deletions

View File

@@ -40,10 +40,10 @@ repository:
# HTML output configuration
html:
use_issues_button: true
use_repository_button: true
use_edit_page_button: true
use_download_button: true
use_issues_button: false
use_repository_button: false
use_edit_page_button: false
use_download_button: false
use_fullscreen_button: true
# Custom styling

View File

@@ -2,6 +2,51 @@
TinyTorch Design System - ML Systems Education
============================================ */
/* ============================================
Header Icons - Hide Download & Align
============================================ */
/* Hide download button completely */
.dropdown-download-buttons,
.dropdown.dropdown-download,
.btn.dropdown-toggle[aria-label*="download"],
button[aria-label*="Download"],
.header-article-item:has(.dropdown-download),
.download-button {
display: none !important;
}
/* Align header article icons properly */
.header-article-items {
display: flex !important;
align-items: center !important;
gap: 0.5rem !important;
}
.header-article-item {
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
/* Make all header buttons same size and aligned */
.header-article-items button,
.header-article-items .btn {
display: flex !important;
align-items: center !important;
justify-content: center !important;
padding: 0.5rem !important;
min-width: 2.5rem !important;
min-height: 2.5rem !important;
}
/* Dropdown buttons container alignment */
.dropdown-buttons {
display: flex !important;
align-items: center !important;
gap: 0.25rem !important;
}
/* Hide intro page from sidebar navigation */
.bd-sidebar nav a[href="intro.html"],
.bd-sidebar nav a[href="./intro.html"],