mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2025-12-05 19:17:52 -06:00
Remove download button and align header icons
This commit is contained in:
@@ -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
|
||||
|
||||
45
docs/_static/custom.css
vendored
45
docs/_static/custom.css
vendored
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user