Download src/style.css from nanotron/ultrascale-playbook: direct link, hf CLI and curl.
- Browser
- Download file 8.06 kB
-
https://huggingface.co/spaces/nanotron/ultrascale-playbook/resolve/refs%2Fpr%2F52/src/style.css
- Command line
-
hf download hf://spaces/nanotron/ultrascale-playbook@refs/pr/52/src/style.css
-
curl -L -o style.css https://huggingface.co/spaces/nanotron/ultrascale-playbook/resolve/refs%2Fpr%2F52/src/style.css
8.06 kB
| /* style.css */ | |
| /* Define colors */ | |
| :root { | |
| --distill-gray: rgb(107, 114, 128); | |
| --distill-gray-light: rgb(185, 185, 185); | |
| --distill-gray-lighter: rgb(228, 228, 228); | |
| --distill-gray-lightest: rgb(245, 245, 245); | |
| --distill-blue: #007BFF; | |
| } | |
| /* Container for the controls */ | |
| [id^="plot-"] { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 15px; /* Adjust the gap between controls as needed */ | |
| } | |
| [id^="plot-"] figure { | |
| margin-bottom: 0px; | |
| margin-top: 0px; | |
| padding: 0px; | |
| } | |
| .plotly_caption { | |
| font-style: italic; | |
| margin-top: 10px; | |
| } | |
| .plotly_controls { | |
| display: flex; | |
| flex-wrap: wrap; | |
| flex-direction: row; | |
| justify-content: center; | |
| align-items: flex-start; | |
| gap: 30px; | |
| } | |
| .plotly_input_container { | |
| display: flex; | |
| align-items: center; | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| /* Style for the select dropdown */ | |
| .plotly_input_container > select { | |
| padding: 2px 4px; | |
| /* border: 1px solid #ccc; */ | |
| line-height: 1.5em; | |
| text-align: center; | |
| border-radius: 4px; | |
| font-size: 12px; | |
| background-color: var(--distill-gray-lightest); | |
| outline: none; | |
| } | |
| /* Style for the range input */ | |
| .plotly_slider { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .plotly_slider > input[type="range"] { | |
| -webkit-appearance: none; | |
| height: 2px; | |
| background: var(--distill-gray-light); | |
| border-radius: 5px; | |
| outline: none; | |
| } | |
| .plotly_slider > span { | |
| font-size: 14px; | |
| line-height: 1.6em; | |
| min-width: 16px; | |
| } | |
| .plotly_slider > input[type="range"]::-webkit-slider-thumb { | |
| -webkit-appearance: none; | |
| appearance: none; | |
| width: 18px; | |
| height: 18px; | |
| border-radius: 50%; | |
| background: var(--distill-blue); | |
| cursor: pointer; | |
| } | |
| .plotly_slider > input[type="range"]::-moz-range-thumb { | |
| width: 18px; | |
| height: 18px; | |
| border-radius: 50%; | |
| background: var(--distill-blue); | |
| cursor: pointer; | |
| } | |
| /* Style for the labels */ | |
| .plotly_input_container > label { | |
| font-size: 14px; | |
| font-weight: bold; | |
| } | |
| .main-plot-container { | |
| margin-top: 21px; | |
| margin-bottom: 35px; | |
| } | |
| .main-plot-container > figure { | |
| display: block ; | |
| /* Let this be handled by graph-container */ | |
| margin-bottom: 0px; | |
| margin-top: 0px; | |
| } | |
| .main-plot-container > div { | |
| display: none ; | |
| } | |
| @media (min-width: 768px) { | |
| .main-plot-container > figure { | |
| display: none ; | |
| } | |
| .main-plot-container > div { | |
| display: flex ; | |
| } | |
| } | |
| d-byline .byline { | |
| grid-template-columns: 1fr; | |
| grid-column: text; | |
| font-size: 0.9rem; | |
| line-height: 1.8em; | |
| } | |
| @media (min-width: 768px) { | |
| d-byline .byline { | |
| grid-template-columns: 5fr 1fr 1fr; | |
| } | |
| } | |
| #title-plot { | |
| margin-top: 0px; | |
| margin-bottom: 0px; | |
| } | |
| d-contents > nav a.active { | |
| text-decoration: underline; | |
| } | |
| @media (max-width: 1199px) { | |
| d-contents { | |
| display: none; | |
| background: white; | |
| justify-self: start; | |
| align-self: start; | |
| padding-bottom: 0.5em; | |
| margin-bottom: 1em; | |
| padding-left: 0.25em; | |
| border-bottom: 1px solid rgba(0, 0, 0, 0.1); | |
| border-bottom-width: 1px; | |
| border-bottom-style: solid; | |
| border-bottom-color: rgba(0, 0, 0, 0.1); | |
| overflow-y: scroll; | |
| height: calc(100vh - 40px); | |
| scrollbar-width: none; | |
| z-index: -100; | |
| } | |
| } | |
| d-contents a:hover { | |
| border-bottom: none; | |
| } | |
| toc-title { | |
| font-weight: bold; | |
| font-size: 1.2em; | |
| color: #333; | |
| } | |
| toggle-icon { | |
| transition: transform 0.3s; | |
| } | |
| toggle-icon.collapsed { | |
| transform: rotate(-90deg); | |
| } | |
| .toc-content { | |
| margin-top: 15px; | |
| overflow: hidden; | |
| /* max-height: 1000px; */ | |
| transition: max-height 0.3s ease-out; | |
| } | |
| .toc-content.collapsed { | |
| max-height: 0; | |
| margin-top: 0; | |
| } | |
| @media (min-width: 1200px) { | |
| d-article { | |
| /* Ensure d-article does not prevent sticky positioning */ | |
| overflow: visible; | |
| } | |
| d-contents { | |
| align-self: start; | |
| background: white; | |
| grid-column-start: 1 ; | |
| grid-column-end: 4 ; | |
| grid-row: auto / span 6; | |
| justify-self: end; | |
| margin-top: 0em; | |
| padding-right: 3em; | |
| padding-left: 2em; | |
| /* border-right: 1px solid rgba(0, 0, 0, 0.1); | |
| border-right-width: 1px; | |
| border-right-style: solid; | |
| border-right-color: rgba(0, 0, 0, 0.1); */ | |
| position: -webkit-sticky; /* For Safari */ | |
| position: sticky; | |
| top: 10px; /* Adjust this value if needed */ | |
| overflow-y: auto; | |
| height: calc(100vh - 40px); | |
| scrollbar-width: none; | |
| transition: max-height 0.3s ease-out; | |
| z-index: -100; | |
| } | |
| } | |
| d-contents nav h3 { | |
| margin-top: 0; | |
| margin-bottom: 1em; | |
| } | |
| d-contents nav div div { | |
| color: rgba(0, 0, 0, 0.8); | |
| font-weight: bold; | |
| } | |
| d-contents nav a { | |
| color: rgba(0, 0, 0, 0.8); | |
| border-bottom: none; | |
| text-decoration: none; | |
| } | |
| d-contents li { | |
| list-style-type: none; | |
| } | |
| d-contents ul, d-article d-contents ul { | |
| padding-left: 1em; | |
| } | |
| d-contents nav ul li { | |
| margin-bottom: .25em; | |
| } | |
| d-contents nav a:hover { | |
| text-decoration: underline solid rgba(0, 0, 0, 0.6); | |
| } | |
| d-contents nav ul { | |
| margin-top: 0; | |
| margin-bottom: 6px; | |
| } | |
| d-contents nav > div { | |
| display: block; | |
| outline: none; | |
| margin-bottom: 0.5em; | |
| } | |
| d-contents nav > div > a { | |
| font-size: 13px; | |
| font-weight: 600; | |
| } | |
| d-article aside { | |
| margin-bottom: 1em; | |
| } | |
| d-article img { | |
| max-width: 100%; | |
| } | |
| @media (min-width: 768px) { | |
| d-article aside { | |
| margin-bottom: 0; | |
| } | |
| } | |
| d-contents nav > div > a:hover, | |
| d-contents nav > ul > li > a:hover { | |
| text-decoration: none; | |
| } | |
| /* memory */ | |
| #controls { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |
| column-gap: 10px; | |
| margin-bottom: 20px; | |
| max-width: 100%; | |
| @supports (container-type: inline-size) { | |
| container-type: inline-size; | |
| } | |
| } | |
| #controls .cell { | |
| padding: 1px; | |
| box-sizing: border-box; | |
| } | |
| #controls .column-1 { | |
| display: flex; | |
| align-items: center; | |
| } | |
| #controls .column-2 { | |
| display: flex; | |
| align-items: center; | |
| } | |
| @supports (container-type: inline-size) { | |
| @container (max-width: 600px) { | |
| #controls .column-2 { | |
| order: 2; | |
| } | |
| } | |
| } | |
| #controls label { | |
| text-align: right; | |
| padding-right: 10px; | |
| flex: 0 0 auto; | |
| width: 150px; | |
| line-height: 1.5em; | |
| font-size: 0.8em; | |
| } | |
| #controls input[type="range"] { | |
| width: 50%; | |
| margin: 0 10px; | |
| } | |
| #controls input[type="number"] { | |
| flex-shrink: 0; | |
| width: 60px; | |
| height: 24px; | |
| border: 1px solid var(--distill-gray-light); | |
| border-radius: 0.2rem; | |
| } | |
| #controls select { | |
| width: 100%; | |
| min-height: 28px; | |
| border: 1px solid var(--distill-gray-light); | |
| border-radius: 0.2rem; | |
| } | |
| #controls .column { | |
| display: contents; | |
| } | |
| #graph svg { | |
| font-family: sans-serif; | |
| } | |
| #graph svg rect { | |
| cursor: pointer; | |
| } | |
| .note-box { | |
| background-color: #f6f8fa; | |
| border-left: 4px solid #444444; | |
| padding: 1rem; | |
| margin: 1rem 0; /* Keep this modest margin */ | |
| border-radius: 6px; | |
| /* Add this to ensure the box only takes up needed space */ | |
| display: inline-block; | |
| width: 100%; | |
| } | |
| .note-box-title { | |
| margin: 0; | |
| color: #444444; | |
| font-weight: 600; | |
| font-size: 1em; | |
| } | |
| .note-box-content { | |
| margin-top: 0.5rem; | |
| margin-bottom: 0; /* Ensure no bottom margin */ | |
| color: #24292f; | |
| font-size: 0.9em; | |
| line-height: 1.5em; | |
| } | |
| /* For dark mode support */ | |
| @media (prefers-color-scheme: dark) { | |
| .note-box { | |
| background-color: #1c1c1c; | |
| border-left-color: #888888; | |
| } | |
| .note-box-title { | |
| color: #888888; | |
| } | |
| .note-box-content { | |
| color: #d4d4d4; | |
| } | |
| } | |
| d-article { | |
| font-size: 1.0em; | |
| } | |
| .figure-legend { | |
| font-size: 0.9em; | |
| font-style: italic; | |
| color: var(--distill-gray); | |
| line-height: 1.5em; | |
| } | |
| d-code { | |
| font-size: 12px; | |
| } | |