- 选择器
button.btn.default.btn-defaultbutton:activebutton.activebutton:disabledinput[type=submit]- Token
--clio-button-bg--clio-button-border--clio-button-radius--clio-button-shadow--clio-button-active-bg--clio-button-default-width--clio-button-default-radius--clio-control-height- 无障碍
- 指针悬停不会改变按钮的样子:只有按下指针、空格键或 Enter 才算按下。键盘焦点画一圈虚线框(System 6)或 2px 的 #6666cc 环(Platinum),和默认按钮的外环分开。
也接受: system.css 的标记(.btn, .btn-default, .standard-button); AI System 6 的标记(.btn.default).
证据(27)
| 年代 | 数值 | 状态 | 来源 |
|---|---|---|---|
| Classic eras | clio.js: a held button draws pressed only while the pointer is on it; released elsewhere it does nothing | 推断 | Inside Macintosh: Macintosh Toolbox Essentials (1992), TrackControldata-clio-off turns the held look off; browsers already click only on release over the button |
| Classic eras | clio.js: Return or Enter presses the default button, Esc or Cmd-. the Cancel button, after showing it pressed for 8 ticks | 实测 | the Dialog Manager in the Mac IIx, Quadra 650 and New World ROMs (HiliteControl, Delay(8), HiliteControl); clio.css capture, System 7.5.3 in Infinite Mac, Find File's Find button after Return (dark at 76 ms, back at 211 ms)Esc and Cmd-. from the Macintosh Human Interface Guidelines (1992), ch. 6 |
| System 7 | Push buttons and the default ring stay black and white, as in System 6 | 实测 | clio.css capture, System 7.5.3 in Infinite Mac (npm run capture:system7), frame page-setup (OK)93.8% identical; a few ring corner pixels differ |
| System 6 | Push button: 20px tall, 1px ink round rectangle with corners of about 4px, paper face, Chicago 12 (AI System 6 uses 7px corners) | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame alert, OK button 60×20System 6.0.8 stop alert |
| System 6 | Pressed: the whole button inverts to ink with paper text | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame button-pressed (Cancel held in a TeachText alert)System 6.0.8 |
| System 6 | Disabled: the frame stays solid ink and the label is drawn through the 50% gray pattern (the menu's pattern, clipped to the label) | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame save-dialog (Eject)Eject; at fractional zoom the pattern can blur, set --clio-disabled-dither: none for solid grey |
| System 6 | Default button: a 1px gap then a 3px ring (68×28 around a 60×20 button) | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame alertagrees with Inside Macintosh, Dialog Manager: PenSize(3,3), InsetRect(-4,-4), FrameRoundRect(16,16) |
| System 6 | Hovering over a button changes nothing; only a press inverts it | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frames locked-alert and button-hoveragrees with docs/design/CLASSIC_PLATINUM_FIDELITY.md:210 |
| Platinum | Hover never changes a push button; pressed only on pointer-down, Space or Enter | 推断 | docs/design/CLASSIC_PLATINUM_FIDELITY.md:210AI System 6 design ruling: Platinum carries no hover state |
| System 6 | Keyboard focus: a 1px dotted frame 2px out | 调整 | apps/desktop/styles/00-foundation.css:519System 6 had no button focus; a dotted frame cannot be read as the default ring |
| Platinum | #ddd face, 1px black border, 3px corners, bevel white/#ddd over #777/#aaa | 实测 | apps/desktop/styles/65-appearance-themes.css:236GUIdebook Mac OS 9.0 About dialog (Theme Lab specimen default-ok) |
| Platinum | Pressed: #666 face, white text, #444/#555 top-left over #888/#777 bottom-right | 实测 | apps/desktop/styles/65-appearance-themes.css:933 (P29)Infinite Mac Mac OS 9.0 capture |
| Platinum | Default ring: 1px black, a #aaa band with #ddd/#777 edges, 1px gap | 实测 | apps/desktop/styles/65-platinum-utility.css:773GUIdebook Mac OS 9.0 (default-ok specimen) |
| Platinum | Disabled: #888 border, flat #ddd, #777 text; the default ring goes #888 | 实测 | apps/desktop/styles/65-appearance-themes.css (N5)GUIdebook Open dialog Eject button (button-disabled specimen) |
| Drawing Board | Push buttons: four pattern pens (ppat 7070-7072, 7079) tiled so their pixel 0 is on the last column and row, the corner pixels they leave, the hatched ButtonFaceCorner (image 0) flush in the lower right of the #cec6b5 face, and a 1px pencil shade right and below; the label 1px lower than Platinum's | 实测 | clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frames themes-tab and 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"Save Theme…" and "Specify Settings" agree |
| Drawing Board | Default button: a 3px band of pattern pens (ppat 7085 rows, 7086 columns) whose inner line is the box's edge, plus its corner pixels | 实测 | 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"Close Message" |
| Drawing Board | Held buttons lose the hatch; the foot and right side take other pens (ppat 7126, 7127) tiled from the second column and row | 实测 | clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frame button-held; 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"Save Theme…" held |
| Drawing Board | Disabled buttons: #8c8c8c label on the same face | 实测 | clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frame date-time"Server Options…" |
| Drawing Board | The pencil overruns at a button's corners: ButtonTopLeft, ButtonTopRight, Button_BotRight, ButtonBotLeft round a plain button and the four *Default pieces round the default one, drawn outside the box | 实测 | the theme's pxm# pixmaps (tooling/db-art.py); positions from frames themes-tab and energy-saver-alerteach piece found 1:1 round "Save Theme…" and "Close Message" |
| NeXTSTEP | Push button: #aaaaaa face, no outline, a bevel of white top and left, #555555 then black bottom and right (black keeps the top-right and bottom-left corners); 24px tall | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefs-dock (Workspace Manager Preferences, Dock), Revert and Set, 63x24)fidelity nx-button-disabled |
| NeXTSTEP | On (aria-pressed="true"): the face turns white, the bevel stays raised | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefsapp-moved (Preferences, Mouse), the Right button)fidelity nx-button-on; AI System 6's sunken bevel corrected |
| NeXTSTEP | Held (:active, .active): white and sunken, 1px black top and left, 1px white bottom and right, the two odd corners white | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame ns30b/button-held (Log Out's Cancel held; released off it, the panel stayed)fidelity nx-button-held |
| NeXTSTEP | The return mark shows only while the button's window is key (gone in an inactive or main window) | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frames open-panel and open-inactive (Edit's Open panel, key and then behind Workspace)NeXTSTEP User Interface Guidelines, Release 3 p.139 |
| NeXTSTEP | Default button: no ring; the 15x10 embossed return mark 5px from the right, drawn the same when the button is dimmed | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefs-dock (Workspace Manager Preferences, Dock), Set); tooling/nx-art.py checkNeXTSTEP User Interface Guidelines, Release 3 p.139; fidelity nx-default-disabled |
| NeXTSTEP | Disabled: the label #555555, the bevel kept | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefs-dock (Workspace Manager Preferences, Dock), Revert and Set)fidelity nx-button-disabled |
| NeXTSTEP | Keyboard focus: a 1px dotted frame 2px out | 调整 | clio.cssNeXTSTEP 3.3 had no control focus; OPENSTEP's dotted frame is the family's mark |
| NeXTSTEP | Minimum width 82px | 推断 | AI System 6 69-nextstep-appearance.css (--theme-button-min-width)AI System 6 reference widths |