Download docs/_static/custom.css from AnhLD2610/Nahs: direct link, hf CLI and curl.
- Browser
- Download file 4.89 kB
-
https://huggingface.co/AnhLD2610/Nahs/resolve/main/docs/_static/custom.css
- Command line
-
hf download hf://AnhLD2610/Nahs/docs/_static/custom.css
-
curl -L -o custom.css https://huggingface.co/AnhLD2610/Nahs/resolve/main/docs/_static/custom.css
4.89 kB
| /* Make the documentation use full screen width */ | |
| .wy-nav-content { | |
| max-width: none ; | |
| width: 100% ; | |
| padding: 1.618em 3.236em ; | |
| } | |
| /* Adjust the content wrapper - will be set by JavaScript */ | |
| .wy-nav-content-wrap { | |
| margin-left: 300px; | |
| transition: margin-left 0.2s ease; | |
| width: auto ; | |
| position: relative ; | |
| background: white ; | |
| min-height: 100vh ; | |
| } | |
| /* Make the main content area responsive */ | |
| .rst-content { | |
| max-width: none ; | |
| width: 100% ; | |
| } | |
| /* Optional: Adjust table widths to prevent overflow */ | |
| .rst-content table.docutils { | |
| width: 100% ; | |
| table-layout: auto ; | |
| } | |
| /* Optional: Better code block width handling */ | |
| .rst-content .highlight { | |
| width: 100% ; | |
| } | |
| /* Content area positioning already handled above */ | |
| /* Optional: Improve readability with some margin on very wide screens */ | |
| @media (min-width: 1400px) { | |
| .wy-nav-content { | |
| max-width: none ; | |
| margin: 0 auto ; | |
| } | |
| } | |
| /* Resizable sidebar styles */ | |
| .wy-nav-side { | |
| position: fixed ; | |
| top: 0 ; | |
| bottom: 0 ; | |
| left: 0 ; | |
| width: 300px; | |
| min-width: 200px; | |
| max-width: 600px; | |
| display: flex; | |
| flex-direction: column; | |
| z-index: 200 ; | |
| } | |
| /* Ensure sidebar header (logo, search) adapts to width */ | |
| .wy-side-nav-search { | |
| width: 100% ; | |
| box-sizing: border-box ; | |
| padding: 0.809em 0.809em ; | |
| } | |
| .wy-side-nav-search input[type="text"] { | |
| width: 100% ; | |
| box-sizing: border-box ; | |
| } | |
| /* Make logo/title area responsive */ | |
| .wy-side-nav-search > div.version { | |
| width: 100% ; | |
| } | |
| .wy-side-nav-search > a { | |
| width: 100% ; | |
| display: block ; | |
| white-space: nowrap ; | |
| overflow: hidden ; | |
| text-overflow: ellipsis ; | |
| } | |
| /* Responsive adjustments for narrow sidebar */ | |
| @media (max-width: 300px) { | |
| .wy-side-nav-search > a { | |
| font-size: 0.9em ; | |
| } | |
| .wy-side-nav-search input[type="text"] { | |
| font-size: 0.8em ; | |
| } | |
| } | |
| /* Ensure search input doesn't overflow */ | |
| .wy-side-nav-search form { | |
| width: 100% ; | |
| margin: 0 ; | |
| } | |
| /* Make search icon responsive */ | |
| .wy-side-nav-search .wy-dropdown { | |
| width: 100% ; | |
| } | |
| /* Adjust search results dropdown width */ | |
| .wy-side-nav-search .wy-dropdown-menu { | |
| width: 100% ; | |
| max-width: none ; | |
| left: 0 ; | |
| right: 0 ; | |
| } | |
| /* Resize handle is created by JavaScript */ | |
| /* Make sure the sidebar content doesn't overflow */ | |
| .wy-side-scroll { | |
| width: 100% ; | |
| flex: 1 ; | |
| overflow-y: auto ; | |
| overflow-x: hidden ; | |
| padding-right: 10px ; | |
| box-sizing: border-box ; | |
| scroll-behavior: auto ; /* Prevent smooth scrolling on sidebar itself */ | |
| } | |
| /* Ensure proper scroll behavior for main content area */ | |
| html { | |
| scroll-behavior: smooth ; | |
| } | |
| /* Ensure anchor links work properly in main content */ | |
| .wy-nav-content-wrap { | |
| scroll-behavior: smooth ; | |
| } | |
| /* Fix scroll to target for anchor links */ | |
| .rst-content { | |
| scroll-behavior: smooth ; | |
| } | |
| /* Fix anchor scroll offset to account for fixed header */ | |
| .rst-content .section { | |
| scroll-margin-top: 60px; | |
| } | |
| /* Fix anchor scroll offset for headers */ | |
| .rst-content h1, .rst-content h2, .rst-content h3, .rst-content h4, .rst-content h5, .rst-content h6 { | |
| scroll-margin-top: 60px; | |
| } | |
| /* Fix anchor scroll offset for specific scroll targets */ | |
| .rst-content .headerlink { | |
| scroll-margin-top: 60px; | |
| } | |
| /* Fix sidebar navigation styling */ | |
| .wy-menu-vertical { | |
| width: 100% ; | |
| } | |
| .wy-menu-vertical li { | |
| width: 100% ; | |
| } | |
| .wy-menu-vertical a { | |
| width: 100% ; | |
| word-wrap: break-word ; | |
| white-space: normal ; | |
| } | |
| /* Content area margin is handled by JavaScript */ | |
| /* Custom drag handle (more visible) */ | |
| .resize-handle { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| width: 8px; | |
| height: 100%; | |
| background: #ccc; | |
| cursor: col-resize; | |
| z-index: 1001; | |
| opacity: 0.3; | |
| transition: opacity 0.2s ease; | |
| } | |
| .resize-handle:hover { | |
| opacity: 0.8; | |
| background: #999; | |
| } | |
| .resize-handle::before { | |
| content: ''; | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| width: 2px; | |
| height: 20px; | |
| background: #666; | |
| transform: translate(-50%, -50%); | |
| border-radius: 1px; | |
| } | |
| .resize-handle:hover::before { | |
| background: #333; | |
| } | |
| /* Ensure smooth resizing */ | |
| .wy-nav-side.resizing { | |
| user-select: none; | |
| pointer-events: none; | |
| } | |
| .wy-nav-side.resizing .wy-side-scroll { | |
| overflow: hidden; | |
| } |