 | Chinese text garbled? Show it as pictures

強制回應對話框的邊框、帶圖像的提示框版面,以及帶陰影的簡單方框。

<div class="alert-box" role="alertdialog" aria-labelledby="clio-alert-msg"
style="width: 340px">
<span class="alert-icon caution" aria-hidden="true"></span>
<p id="clio-alert-msg">Save changes to the document “Untitled” before
closing?</p>
<div class="dialog-buttons">
<button>Don’t Save</button>
<button>Cancel</button>
<button class="default">Save</button>
</div>
</div>
簡單方框
帶陰影的方框,用於沒有自己邊框的訊息。

<div class="standard-dialog" style="width: 280px">
<p style="margin: 0">Welcome to Macintosh.</p>
</div>
Dialogs and alerts 簡介
- 選擇器
.modal-dialog .alert-box .standard-dialog .modeless-dialog .alert-icon .dialog-buttons- Token
--clio-dialog-bg --clio-modal-border --clio-modal-frame --clio-plain-dialog-shadow- 無障礙
- 把這些類別加在原生 <dialog> 上,並用 showModal() 打開,就有焦點限制和 Escape 鍵;用 aria-labelledby 替它命名。
也接受: system.css 的標記(.modal-dialog, .alert-box, .standard-dialog, .outer-border, .inner-border, .modal-contents).
證據(15)
每個數值的來源(英文)| 年代 | 數值 | 狀態 | 來源 |
|---|
| System 7 | Alert frame: 1px black, a raised #ccf/#669 ring, #bbb, a sunken #669/#ccf ring, 1px black (5px, as in System 6) | 實測 | clio.css capture, System 7.5.3 in Infinite Mac (npm run capture:system7), frame page-setup 100% identical. An alert without a colour table keeps System 6's black frame (Monitors & Sound alert); clio.css draws the colour one | | System 6 | Modal frame: 1px ink, 2px paper, 2px ink, and no drop shadow | 實測 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame alert AI System 6 has two recipes, both off (84-clio-write.css:210 has a 1px gap) | | System 6 | Plain box: 1px ink frame and a 2px drop shadow | 推斷 | not measured altDBoxProc; none of the 6.0.8 Finder and TeachText dialogs opened for capture (alerts, Standard File, About the Finder) uses it | | Classic eras | The alert icon is drawn here, not Apple's | 調整 | clio.css no Apple icons are shipped | | Platinum | 1px black frame over #ddd, inner bevel of three white steps inside #555/#999/#aaa, 1px black drop | 實測 | apps/desktop/styles/65-appearance-themes.css:840 (P06) GUIdebook Mac OS 9.0 About application (about-alert specimen) | | Drawing Board | Alerts: the theme's eight Alert pictures (6127-6134) round the outline, edges tiled from their ends, on the window paper from 4px inside | 實測 | clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frame energy-saver-alert; the theme file's ppat and pxm# resources, decoded by tooling/theme-resources.py, written by tooling/db-art.py and tooling/db-pens.py every piece found 1:1 round Energy Saver's start-up notice | | Drawing Board | Movable modal dialogs (.modeless-dialog, which is a .window) draw the document window's frame: #222 outline, 4px #cdc6bd frame, #777 inner line, 20px title bar over a #555 rule, the #777 band right and below | 實測 | clio.css capture, Mac OS 8.5 with Drawing Board (npm run capture:drawingboard), frame copy-progress-5 Finder copy window; Movable_Modal pixmaps found 1:1 | | Drawing Board | Modal dialogs: the Modal pictures (6135-6142), which have the alert's sizes, placed the same way | 推斷 | the theme file's ppat and pxm# resources, decoded by tooling/theme-resources.py, written by tooling/db-art.py and tooling/db-pens.py no modal dialog was on screen in the captures | | Platinum | Separator line (.separator, <hr class=separator>): etched, #888 then white one row lower and one column further right | 實測 | clio.css capture, Mac OS 9.0 in Infinite Mac, frame hig/platinum9/mouse 100% identical | | System 7 | Separator line: a 3px band of QuickDraw's 50% grey, aligned to the screen | 實測 | clio.css capture, System 7.5.3 in Infinite Mac, frame hig/system7/memory — | | System 6 | Separator line: 1px of ink | 推斷 | clio.css — | | NeXTSTEP | A panel (Info): a window with the key title bar and a close button, no resize bar; its details in a box with no title | 實測 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame ns30b/infopanel (Workspace's Info panel, 380x264) fidelity nx-panel-top, nx-panel-foot, nx-box-plain | | NeXTSTEP | Attention panel: #aaaaaa, the 1px black frame, the key window's title bar with no title and no buttons, no shadow; a groove (#555555 over white) 86 rows in; the buttons 8px from the lower right and 8px apart | 實測 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame logout-alert (Workspace's Log Out panel, 364x185) fidelity nx-alert-titlebar, nx-alert-groove, nx-alert-buttons | | NeXTSTEP | Above the groove the application's 48px icon and the panel's title (its aria-label) in Helvetica 18; the message centred below | 推斷 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame logout-alert (positions read from the frame; text and icon are not compared) NeXTSTEP User Interface Guidelines, Release 3 p.84-87 | | NeXTSTEP | The application's icon, not a symbol: without one the slot stays empty | 推斷 | NeXTSTEP User Interface Guidelines, Release 3 p.84 AI System 6 shows none either | |  |