首页

Pop-up menu

把 <select> 画成那个年代的弹出式菜单;<select multiple> 或 size 大于 1 时画成列表框。

<div class="field-row">
  <label for="clio-font">Font:</label>
  <select id="clio-font">
    <option>Chicago</option>
    <option selected>Geneva</option>
    <option>New York</option>
  </select>
</div>
Mac OS 四个年代并排对照
System 6
System 7
Drawing Board
Mac OS 9 Platinum

Pop-up menu 简介

选择器
select select[multiple] select[size]
Token
--clio-popup-bg --clio-popup-border --clio-popup-shadow --clio-popup-arrow
无障碍
原生 <select>,所以展开的列表是浏览器自己的,在任何地方都能用。
证据(13)
每个数值的来源(英文)
年代数值状态来源
Classic erasOpen pop-up menu: the era's menu laid over the button, the current item on the button's row, checked推断clio.css capture, Mac OS 9.0 in Infinite Mac, SimpleText Text Style (frame platinum9/cl-size-popup)
drawn with appearance: base-select where supported (Chrome 135, Safari 27; clio.js lines it up), by clio.js elsewhere; the row alignment is checked by npm run behaviour, not against pixels
PlatinumOpen pop-up menu: its top on the button's top (the current item there), as wide as the button less its 20px of arrows, framed all round in black with the white and #999 bevel, the shadow starting 2px in; check mark 3px in, text 20px, each antialiasing level as the screen shows it实测clio.css capture, Mac OS 9.0 in Infinite Mac, Appearance > Fonts, Large System Font held with the pointer off the menu (frame fonts-popup-open)
specimens p9-js-popup-open (clio.js, all three engines) and p9-popup-open (base-select, Chromium and WebKit) 100% identical
PlatinumWhile its menu is open the pop-up button's arrows are drawn pressed: #444 top row, #555 then a #666 face, white arrows, #777 and #888 below and right, the frame's corners to match实测clio.css capture, Mac OS 9.0 in Infinite Mac (frame fonts-popup-open); tooling/p9-art.py and frame-art.py
specimens p9-js-popup-open-arrows and p9-popup-open-arrows (select:open) 100% identical
System 7An 18px box with an 11×6 black triangle 5px from the right edge, label 15px in, and a 1px shadow that starts 3px in from the corner实测clio.css capture, System 7.5.3 in Infinite Mac (npm run capture:system7), frame numbers (Number Format)
100% identical; the triangle is System 7's addition
System 6An 18px rectangle with a 1px frame and a 1px drop shadow and no arrow; the shadow is what marks it as a menu; held, it inverts实测clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frames save-dialog and popup-held (Standard File folder menu)
the down triangle arrived with System 7
System 7Dimmed: the whole control (frame, shadow, title, arrow) drawn through the 50% gray, ink kept where x + y is odd, the pattern from the control's corner (QuickDraw kept it to the screen); browsers do not fade it; the arrow centred at floor(spare / 2)实测clio.css capture, System 7.5.3 in Infinite Mac, Memory control panel with virtual memory off (Select Hard Disk; frame memory)
specimen s7-popup-disabled 100% identical in Chromium and Firefox; WebKit ignores mask-clip: no-clip, so the dimmed shadow is not drawn there
System 6Dimmed: as System 7, the control through the 50% gray推断the System 7 measurement; no dimmed pop-up menu found in System 6.0.8's control panels and Finder
dimmed buttons and items use the same pattern there (measured)
Platinum#ddd, 3px corners, white/#aaa bevel, bold label, a separate bevelled arrow part with the 7x10 arrow实测apps/desktop/styles/65-appearance-themes.css:1916 (P31)
GUIdebook Mac OS 9.0 (popup-normal specimen), native 09b
PlatinumThe arrow part, drawn with background layers: a #aaa divider 20px from the right, a raised box with a white left and top edge and a #aaa then #777 shade, the arrows 7px from the right and 4px down; the field has a white top line and #aaa foot实测clio.css capture, Mac OS 9.0 in Infinite Mac (npm run capture:platinum), frame appearance-tab
"Apple platinum" pop-up, 96.7% identical (p9-popup-end)
PlatinumArrow art (7x10), black, and #888 when disabled实测clio.css capture, Mac OS 9.0 in Infinite Mac (npm run capture:platinum), frames appearance-tab and appearance; tooling/p9-art.py
replaces classic-stylesheets dropdown.svg
Drawing BoardPop-up menu: 20px, four pattern pens (ppat 7095-7098; disabled: their other rows) tiled from the last column and row, the corner pixels they leave, #cec6b5 face; the 7x9 double arrow 5px from the right and 4px down; the hatched ButtonFaceCorner (image 2, disabled image 3) ends 19px from the right实测clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frame appearance; 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
Appearance, Highlight Color and Variation pop-ups
Drawing BoardOpen pop-up menu: drawn by clio.js wherever it runs (the browser's picker cannot carry the theme's shade and corner pixels; without clio.js, base-select draws it plain): its top on the button's, as wide as the button less 20px of arrows, the top pen shifted with the button's phase, text 18px in and a pixel higher than in pull-down menus, the check 1px in and drawn in the menu ink #313131 (the menu font's glyph, not black: its solid pixels read 49,49,49), the underline on the item's last rows with its right piece ending 16px in, and no keyboard focus ring round the pressed button实测clio.css capture, Mac OS 8.5 with the theme in Infinite Mac, Appearance > Appearance held (frame popup-open)
specimens db-js-popup-open and db-popup-open 97.3% same, 99.95% within 8/255, none structurally off (2026-11-23: the check's ink, the underline's right piece 1px left and the ring were the off pixels; what remains is antialiasing over the paper within a step)
NeXTSTEPPop-up list: a 20px push button with the raised 11x8 bar mark 4px from its right and 5px from its top; no frame of its own实测clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefs-dock (Workspace Manager Preferences, Dock), the Dock pop-up, 130x20); tooling/nx-art.py check
fidelity nx-popup

关于 clio.css

版本 2.0.4

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 或数值。索引是英文的,请用英文查找。