首頁

Standard File dialog

Standard File 的開啟和儲存對話框(System 6 和 7):檔案列表上方的資料夾彈出選單、磁碟名稱、退出、桌面(System 6 叫磁碟機)、取消,以及開啟或儲存;儲存對話框多了提示文字和名稱欄位。

<div class="modal-dialog standard-file" role="dialog" aria-label="Open">
  <div class="sf-browse">
    <select aria-label="Folder"><option>Macintosh HD</option></select>
    <ul class="listbox clio-scroll" role="listbox" aria-label="Files">
      <li role="option" class="sf-folder" aria-selected="true">Documents</li>
      <li role="option" class="sf-folder">System Folder</li>
      <li role="option" class="sf-document">Read Me</li>
      <li role="option" class="sf-document">Shopping List</li>
    </ul>
  </div>
  <div class="sf-side">
    <span class="sf-disk">Macintosh HD</span>
    <button disabled>Eject</button>
    <button>Desktop</button>
    <hr class="separator">
    <button>Cancel</button>
    <button class="default">Open</button>
  </div>
</div>
Mac OS 四個年代並排對照
System 6
System 7
Drawing Board
Mac OS 9 Platinum

儲存

較短的列表下方有提示文字和名稱欄位。「新增」(新增資料夾,System 7.5)和欄位下方的選項可以省略。

<div class="modal-dialog standard-file" role="dialog" aria-label="Save">
  <div class="sf-browse">
    <select aria-label="Folder"><option>Documents</option></select>
    <ul class="listbox clio-scroll" role="listbox" aria-label="Files">
      <li role="option" class="sf-folder">Letters</li>
      <li role="option" class="sf-document" aria-disabled="true">Read Me</li>
      <li role="option" class="sf-document" aria-disabled="true">Shopping List</li>
    </ul>
    <label for="clio-sf-name">Save this document as:</label>
    <input type="text" id="clio-sf-name" value="untitled">
    <label class="sf-option"><input type="checkbox"> Save As Stationery</label>
  </div>
  <div class="sf-side">
    <span class="sf-disk">Macintosh HD</span>
    <button disabled>Eject</button>
    <button>Desktop</button>
    <button class="sf-new-folder">New</button>
    <hr class="separator">
    <button>Cancel</button>
    <button class="default">Save</button>
  </div>
</div>

Standard File dialog 簡介

選擇器
.standard-file .sf-browse .sf-side .sf-disk .sf-folder .sf-document .sf-new-folder .sf-option
Token
--clio-art-frame-s6-button-18
無障礙
用原生 <dialog class="modal-dialog standard-file"> 並以 showModal() 開啟,加上 aria-label(Standard File 的對話框沒有標題)。為資料夾彈出選單和檔案列表加上標籤;對話框打不開的檔案標上 aria-disabled="true",選中的標上 aria-selected="true"。標記裡把取消放在預設按鈕前面:System 6 先顯示預設按鈕,System 7 先顯示取消。
證據(16)
每個數值的來源(英文)
年代數值狀態來源
System 6Open dialog 364x216 (an 8px frame round the content): the folder pop-up centred over the list at y 17; the list 218x146 at 12,39 (its scroll bar inside), 16px rows, the folder icon at x 18 and the name at x 36; the disk icon at 236,44 and its name from x 256; 80x18 buttons from x 256 at y 68 (Eject), 93 (Drive), 138 (Open) and 163 (Cancel); a dotted rule from 252 to 338 at y 124實測clio.css capture, System 6.0.8 in Infinite Mac (tooling/capture-system6.ts), frame open-dialog (TeachText's Open)
positions read from the frame's pixels, content coordinates; masked compare 0 px (.notes, then the fidelity specimen)
System 6The default button has no ring and stands above Cancel實測clio.css capture, System 6.0.8 in Infinite Mac (tooling/capture-system6.ts), frames open-dialog and save-dialog
Open at y 138 over Cancel at 163; no ring pixels round Open
System 6Save dialog 320x200: the list 183x98 at 14,29; the prompt's cap top at 139; the name field 14..196 x 154..175; 70x18 buttons from x 218 at y 56 (Eject), 82 (Drive), 132 (Save) and 158 (Cancel); no rule實測clio.css capture, System 6.0.8 in Infinite Mac (tooling/capture-system6.ts), frame save-dialog (TeachText's Save As)
positions read from the frame's pixels, content coordinates
System 6The 18px button frame: a rounded rectangle whose corners follow its height, tighter than the 20px button's實測clio.css capture, System 6.0.8 in Infinite Mac (tooling/capture-system6.ts), frame open-dialog, the Drive button (346..425 x 193..210 on screen)
cut by tooling/frame-art.py (s6-button-18) into --clio-art-frame-s6-button-18
System 7Open dialog 360x182: the pop-up at y 6 with the folder's icon; the list 218x128 at 12,29, 18px rows; the disk icon at 235,13 and its name condensed (letter-spacing -1px); 80x20 buttons from x 252 at y 32 (Eject), 60 (Desktop), 104 (Cancel) and 135 (Open, ringed); a rule of alternating #777777 and #888888 from 251 to 332 at y 91實測clio.css capture, System 7.5.3 in Infinite Mac (tooling/capture-system7.ts), frame sf-open (Stickies' Import Text)
positions and colours read from the frame's pixels, content coordinates
System 7Save dialog 360x227: the list 92 tall; the prompt's cap top at 139; the name field 12..229 x 154..175; Save As Stationery's box at 17,191; New with a folder at y 88; Cancel at 130 and Save at 161; the rule from 250 to 333 at y 119實測clio.css capture, System 7.5.3 in Infinite Mac (tooling/capture-system7.ts), frame sf-save (Stickies' Export Text)
positions read from the frame's pixels, content coordinates
Classic erasThe folder, document and disk icons調整clio.css
drawn here at the measured sizes and places (12x9, 9x12, 16x6); not Apple's icons
Classic erasThe pop-up's width follows its label and is centred by the browser, where the Mac rounded down: it can sit 1px apart調整clio.css
the frames' pop-ups against the rendered ones
Classic erasThe dialog grows when its markup holds more than the Mac's (New and the option in System 6)調整clio.css
min-height in place of the fixed size
Classic erasThe disk's name keeps 1px on its right, so negative tracking does not clip the last letter調整clio.css
Charcoal's D reaches its advance's edge; overflow: hidden would cut it
PlatinumOpen dialog 356x178, Save 356x223: System 7's layout to the pixel (content coordinates as above) in a frame 2px thinner, so the content starts 6px inside the outline實測clio.css capture, Mac OS 9.0 in Infinite Mac (tooling/capture-platinum.ts), frames sf-open and sf-save (Stickies' Import Text and Export Text, which still call Standard File in Mac OS 9)
positions read from the frames' pixels; masked compare 0 px (p9-standard-file-open, -save); text on white compared by rows, as clio.css blends Charcoal one level lighter there
PlatinumThe frame: a 1px black outline, a #bbbbbb top and left line and a #555555 bottom and right line inside it, a #999999 bottom and right line inside that, white within, and a 1px black shadow that starts 2px from the far corners實測clio.css capture, Mac OS 9.0 in Infinite Mac (tooling/capture-platinum.ts), frames sf-open and sf-save
the bevel's two far corner pixels (#bbbbbb past each #999999 line) are not drawn
PlatinumThe rule alternates #7d7d7d and #808080; the list, the name field and the 19px pop-up are framed by Standard File itself (1px of black, no bevel); the disk's name is condensed (letter-spacing -1px); New's label starts 15px inside its button實測clio.css capture, Mac OS 9.0 in Infinite Mac (tooling/capture-platinum.ts), frames sf-open and sf-save
colours and positions read from the frames' pixels
Drawing BoardOpen dialog 352x174, Save 352x219: System 7's layout to the pixel inside the modal frame's outline, 4px from it, on white; the pop-up, the buttons and the check box are the theme's, the list, the field and their text Standard File's own (black, framed in 1px of black)實測clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (tooling/capture-drawingboard.ts), frames sf-open and sf-save (Stickies' Import Text and Export Text)
positions and colours read from the frames' pixels; masked compare 0 px (db-standard-file-open, -save)
Drawing BoardThe rule alternates #7d7d7d and #808080 as in Platinum; the 14x11 check box sits 1px higher than Platinum's and its label 3px after it; New's label starts 15px inside its button實測clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (tooling/capture-drawingboard.ts), frame sf-save
colours and positions read from the frame's pixels
Drawing BoardNew has no folder icon beside its label調整clio.css
Drawing Board's button frames take both pseudo-elements; Mac OS 8.5 draws a folder after the label

關於 clio.css

版本 2.1.1

MIT 授權。原始碼在 GitHub。

字體:Clio Sans '84、Clio Text '84 和 Clio Sans '97 是依實測點陣新做的字體。ChicagoFLF 的作者是 Robin Casady(公有領域)。Asap 的作者是 Omnibus-Type,Clio Sans NX 取自 Liberation Sans 2,Clio Pixel 取自 TakWolf 的 Fusion Pixel Font,這三種都採用 SIL Open Font License 1.1。詳情見 THIRD-PARTY.md(英文)。

本專案與 Apple Inc. 沒有關聯,也未獲其認可。Macintosh、Mac OS 和 Chicago 是 Apple Inc. 的商標,這裡提到它們只為說明所還原的年代。

尋找

輸入元件、選擇器、token 或數值。索引是英文的,請用英文尋找。