|
48 | 48 | #navigation-trigger:focus {
|
49 | 49 | text-decoration: underline;
|
50 | 50 | }
|
| 51 | + #navigation-trigger:has(~ #navigation:popover-open) { |
| 52 | + text-decoration: none; |
| 53 | + pointer-events: none; |
| 54 | + } |
| 55 | + #navigation-trigger::after { |
| 56 | + content: ""; |
| 57 | + background-color: currentColor; |
| 58 | + mask-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.41435 6.53148C4.6731 6.20803 5.14507 6.15559 5.46852 6.41435L8.125 8.53953L10.7815 6.41435C11.1049 6.15559 11.5769 6.20803 11.8356 6.53148C12.0944 6.85492 12.042 7.32689 11.7185 7.58565L8.125 10.4605L4.53148 7.58565C4.20803 7.32689 4.15559 6.85492 4.41435 6.53148Z' fill='currentColor' /%3E%3C/svg%3E"); |
| 59 | + mask-repeat: no-repeat; |
| 60 | + width: 16px; |
| 61 | + height: 16px; |
| 62 | + } |
51 | 63 | #navigation-grid {
|
52 | 64 | display: grid;
|
53 | 65 | grid-template-columns: 1fr 1fr;
|
|
63 | 75 | <body>
|
64 | 76 | <header id="header" style="position: sticky; z-index: 10; top: 0; margin: -32px calc((100% - 100vw) / 2) 4rem; font: 500 16px/normal var(--sans-serif);">
|
65 | 77 | <div style="display: flex; max-width: var(--max-width); padding: 1rem; margin: auto; gap: 1rem; justify-content: space-between;">
|
66 |
| - <button id="navigation-trigger" popovertarget="navigation" style="cursor: pointer; border: none; background: transparent; font: inherit; color: inherit; display: flex; align-items: center; padding: 0; gap: 0.5rem;"> |
67 |
| - <svg role="img" width="24" height="24" viewBox="0 0 24 24" aria-label="Observable" fill="currentColor"> |
68 |
| - <path d="M11.4413 19.7265C10.3849 19.7265 9.46964 19.4977 8.69544 19.04C7.92403 18.5841 7.30727 17.9383 6.91536 17.1761C6.49867 16.3829 6.19365 15.5442 6.00767 14.6801C5.81035 13.743 5.71422 12.7903 5.72068 11.8359C5.72068 11.0802 5.77027 10.3577 5.87038 9.66687C5.96953 8.97688 6.15355 8.27548 6.42147 7.56358C6.68939 6.85167 7.03454 6.23445 7.45501 5.71104C7.89276 5.17482 8.45875 4.73835 9.10924 4.4354C9.79191 4.10837 10.568 3.9453 11.4413 3.9453C12.4977 3.9453 13.4131 4.17413 14.1873 4.63178C14.9587 5.08762 15.5755 5.73343 15.9674 6.49571C16.3811 7.28039 16.6834 8.11242 16.875 8.99178C17.0658 9.87026 17.1621 10.8189 17.1621 11.8359C17.1621 12.5917 17.1125 13.3141 17.0123 14.0049C16.9057 14.7222 16.7171 15.4272 16.4498 16.1082C16.1733 16.8201 15.8301 17.4374 15.4162 17.9608C15.0025 18.4842 14.4552 18.9094 13.7735 19.2364C13.0918 19.5634 12.3147 19.7265 11.4413 19.7265ZM13.4608 13.9249C14.0079 13.3785 14.3122 12.6225 14.3017 11.8359C14.3017 11.0232 14.0281 10.3268 13.4817 9.74686C12.9344 9.1669 12.2547 8.87692 11.4413 8.87692C10.628 8.87692 9.94827 9.1669 9.40099 9.74686C8.86507 10.2993 8.56912 11.0534 8.58102 11.8359C8.58102 12.6486 8.85467 13.3449 9.40099 13.9249C9.94827 14.5049 10.628 14.7949 11.4413 14.7949C12.2547 14.7949 12.9278 14.5049 13.4608 13.9249ZM11.4413 23.6718C17.7599 23.6718 22.8828 18.3723 22.8828 11.8359C22.8828 5.29952 17.7599 0 11.4413 0C5.12287 0 0 5.29952 0 11.8359C0 18.3723 5.12287 23.6718 11.4413 23.6718Z"></path> |
69 |
| - </svg> |
70 |
| - Notebooks 2.0 |
| 78 | + <button id="navigation-trigger" title="Open menu" popovertarget="navigation" style="cursor: pointer; border: none; background: transparent; font: inherit; color: inherit; display: flex; align-items: center; padding: 0;"> |
| 79 | + <div style="display: flex; align-items: center; gap: 0.5rem;"> |
| 80 | + <svg role="img" width="24" height="24" viewBox="0 0 24 24" aria-label="Observable" fill="currentColor"> |
| 81 | + <path d="M11.4413 19.7265C10.3849 19.7265 9.46964 19.4977 8.69544 19.04C7.92403 18.5841 7.30727 17.9383 6.91536 17.1761C6.49867 16.3829 6.19365 15.5442 6.00767 14.6801C5.81035 13.743 5.71422 12.7903 5.72068 11.8359C5.72068 11.0802 5.77027 10.3577 5.87038 9.66687C5.96953 8.97688 6.15355 8.27548 6.42147 7.56358C6.68939 6.85167 7.03454 6.23445 7.45501 5.71104C7.89276 5.17482 8.45875 4.73835 9.10924 4.4354C9.79191 4.10837 10.568 3.9453 11.4413 3.9453C12.4977 3.9453 13.4131 4.17413 14.1873 4.63178C14.9587 5.08762 15.5755 5.73343 15.9674 6.49571C16.3811 7.28039 16.6834 8.11242 16.875 8.99178C17.0658 9.87026 17.1621 10.8189 17.1621 11.8359C17.1621 12.5917 17.1125 13.3141 17.0123 14.0049C16.9057 14.7222 16.7171 15.4272 16.4498 16.1082C16.1733 16.8201 15.8301 17.4374 15.4162 17.9608C15.0025 18.4842 14.4552 18.9094 13.7735 19.2364C13.0918 19.5634 12.3147 19.7265 11.4413 19.7265ZM13.4608 13.9249C14.0079 13.3785 14.3122 12.6225 14.3017 11.8359C14.3017 11.0232 14.0281 10.3268 13.4817 9.74686C12.9344 9.1669 12.2547 8.87692 11.4413 8.87692C10.628 8.87692 9.94827 9.1669 9.40099 9.74686C8.86507 10.2993 8.56912 11.0534 8.58102 11.8359C8.58102 12.6486 8.85467 13.3449 9.40099 13.9249C9.94827 14.5049 10.628 14.7949 11.4413 14.7949C12.2547 14.7949 12.9278 14.5049 13.4608 13.9249ZM11.4413 23.6718C17.7599 23.6718 22.8828 18.3723 22.8828 11.8359C22.8828 5.29952 17.7599 0 11.4413 0C5.12287 0 0 5.29952 0 11.8359C0 18.3723 5.12287 23.6718 11.4413 23.6718Z"></path> |
| 82 | + </svg> |
| 83 | + Notebooks 2.0 |
| 84 | + </div> |
71 | 85 | </button>
|
72 | 86 | <div style="display: flex; align-items: center; justify-self: end; gap: 1rem; font-size: 14px;">
|
73 |
| - <a href="https://github.com/observablehq/notebook-kit/releases" style="color: inherit;"> |
| 87 | + <a href="https://github.com/observablehq/notebook-kit/releases" title="View release notes" style="color: inherit;"> |
74 | 88 | %VITE_VERSION%
|
75 | 89 | </a>
|
76 |
| - <a href="https://github.com/observablehq/notebook-kit" style="color: inherit;"> |
| 90 | + <a href="https://github.com/observablehq/notebook-kit" title="View source on GitHub" style="color: inherit;"> |
77 | 91 | GitHub ★
|
78 | 92 | </a>
|
79 | 93 | </div>
|
80 | 94 | <div id="navigation" popover style="font: inherit; padding: 2rem; bottom: unset; top: 4rem; max-width: min(40rem, calc(100% - 6rem)); width: auto; border: none; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); overflow-y: auto; max-height: calc(100% - 7rem);">
|
81 | 95 | <div id="navigation-grid">
|
82 | 96 | <a href="/notebook-kit/" style="color: inherit;">
|
83 | 97 | <div>Notebooks 2.0</div>
|
84 |
| - <div style="opacity: 0.8; font-weight: normal; font-size: 14px;">An overview of what’s new with Observable Notebooks, and why we’re doing this</div> |
| 98 | + <div style="opacity: 0.8; font-weight: normal; font-size: 14px;">An overview of the new Observable Notebooks, and why we’re doing this</div> |
85 | 99 | </a>
|
86 | 100 | <a href="/notebook-kit/kit" style="color: inherit;">
|
87 | 101 | <div>Notebook Kit</div>
|
88 | 102 | <div style="opacity: 0.8; font-weight: normal; font-size: 14px;">An open file format for notebooks, and accompanying tooling for generating static sites</div>
|
89 | 103 | </a>
|
90 | 104 | <a href="/notebook-kit/gallery" style="color: inherit;">
|
91 | 105 | <div>Notebooks gallery</div>
|
92 |
| - <div style="opacity: 0.8; font-weight: normal; font-size: 14px;">More example notebooks than you can shake a stick at, featuring interactive visualizations</div> |
| 106 | + <div style="opacity: 0.8; font-weight: normal; font-size: 14px;">More examples than you can shake a stick at, featuring interactive visualizations</div> |
93 | 107 | </a>
|
94 | 108 | <a href="/notebook-kit/system-guide" style="color: inherit;">
|
95 | 109 | <div>Notebooks system guide</div>
|
|
137 | 151 | const cell = document.querySelector(".observablehq--cell");
|
138 | 152 | if (!cell) return;
|
139 | 153 | if (!side) side = getComputedStyle(cell).paddingBottom === "0px" ? "top" : "bottom";
|
140 |
| - const s = cell.getBoundingClientRect()[side] < 0; |
| 154 | + const s = cell.getBoundingClientRect()[side] < 90; |
141 | 155 | if (scrolled === s) return;
|
142 | 156 | document.documentElement.classList.toggle("scrolled2", scrolled = s);
|
143 | 157 | }
|
|
0 commit comments