@classicy/appearance-platinum 0.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/README.md +98 -2
- package/dist/appearance-platinum.es.js +568 -0
- package/dist/appearance-platinum.es.js.map +1 -0
- package/dist/appearance-platinum.umd.js +152 -0
- package/dist/appearance-platinum.umd.js.map +1 -0
- package/dist/assets/AppleGaramond-300-italic.woff2 +0 -0
- package/dist/assets/AppleGaramond-300-normal.woff2 +0 -0
- package/dist/assets/AppleGaramond-bold-italic.woff2 +0 -0
- package/dist/assets/AppleGaramond-bold-normal.woff2 +0 -0
- package/dist/assets/AppleGaramond-normal-italic.woff2 +0 -0
- package/dist/assets/AppleGaramond-normal-normal.woff2 +0 -0
- package/dist/assets/Charcoal-normal-normal.woff2 +0 -0
- package/dist/assets/ChicagoFLF-normal-normal.woff2 +0 -0
- package/dist/assets/Geneva-bold-normal.woff2 +0 -0
- package/dist/assets/Geneva-normal-italic.woff2 +0 -0
- package/dist/assets/Geneva-normal-normal.woff2 +0 -0
- package/dist/assets/Monaco-normal-normal.woff2 +0 -0
- package/dist/assets/VCROSDMono-normal-normal.woff2 +0 -0
- package/dist/assets/alias.png +0 -0
- package/dist/assets/apple.png +0 -0
- package/dist/assets/azul_dark.png +0 -0
- package/dist/assets/azul_extra_light.png +0 -0
- package/dist/assets/azul_light.png +0 -0
- package/dist/assets/bondi.png +0 -0
- package/dist/assets/bondi_dark.png +0 -0
- package/dist/assets/bondi_extra_dark.png +0 -0
- package/dist/assets/bondi_light.png +0 -0
- package/dist/assets/bondi_medium.png +0 -0
- package/dist/assets/bossanova_bondi.png +0 -0
- package/dist/assets/bossanova_poppy.png +0 -0
- package/dist/assets/bossanova_poppy_2.png +0 -0
- package/dist/assets/bubbles_bondi.png +0 -0
- package/dist/assets/bubbles_poppy.png +0 -0
- package/dist/assets/candy_bar.png +0 -0
- package/dist/assets/candy_bar_azul.png +0 -0
- package/dist/assets/candy_bar_pistachio.png +0 -0
- package/dist/assets/candy_bar_sunny.png +0 -0
- package/dist/assets/collapse.svg +1 -0
- package/dist/assets/corner-dither.svg +1 -0
- package/dist/assets/cursor-arrow.svg +1 -0
- package/dist/assets/cursor-resize-d.png +0 -0
- package/dist/assets/cursor-resize-l.png +0 -0
- package/dist/assets/cursor-resize-lr.png +0 -0
- package/dist/assets/cursor-resize-r.png +0 -0
- package/dist/assets/cursor-resize-u.png +0 -0
- package/dist/assets/cursor-resize-ud.png +0 -0
- package/dist/assets/cursor-watch.png +0 -0
- package/dist/assets/default.jpg +0 -0
- package/dist/assets/default.png +0 -0
- package/dist/assets/diagonals_bondi.png +0 -0
- package/dist/assets/diagonals_bondi_dark.png +0 -0
- package/dist/assets/diagonals_poppy.png +0 -0
- package/dist/assets/down-arrow.svg +1 -0
- package/dist/assets/flat_peanuts.png +0 -0
- package/dist/assets/flat_peanuts_poppy.png +0 -0
- package/dist/assets/french_blue_dark.png +0 -0
- package/dist/assets/french_blue_light.png +0 -0
- package/dist/assets/halftone.svg +1 -0
- package/dist/assets/help-button.png +0 -0
- package/dist/assets/macos.png +0 -0
- package/dist/assets/peanuts_azul.png +0 -0
- package/dist/assets/peanuts_pistachio.png +0 -0
- package/dist/assets/pistachio_dark.png +0 -0
- package/dist/assets/pistachio_light.png +0 -0
- package/dist/assets/pistachio_medium.png +0 -0
- package/dist/assets/platinum.ac3 +0 -0
- package/dist/assets/platinum.m4a +0 -0
- package/dist/assets/platinum.mp3 +0 -0
- package/dist/assets/platinum.ogg +0 -0
- package/dist/assets/platinum.png +0 -0
- package/dist/assets/poppy.png +0 -0
- package/dist/assets/poppy_dark.png +0 -0
- package/dist/assets/poppy_light.png +0 -0
- package/dist/assets/poppy_medium.png +0 -0
- package/dist/assets/quicktime-thumb-slider.svg +1 -0
- package/dist/assets/quicktime-volume-slider.svg +8 -0
- package/dist/assets/resizer.svg +1 -0
- package/dist/assets/rio_azul.png +0 -0
- package/dist/assets/rio_pistachio.png +0 -0
- package/dist/assets/ripple_azul.png +0 -0
- package/dist/assets/ripple_bondi.png +0 -0
- package/dist/assets/ripple_poppy.png +0 -0
- package/dist/assets/sad-mac.png +0 -0
- package/dist/assets/slider-strikes.svg +6 -0
- package/dist/assets/slider-thumb-rect.svg +1 -0
- package/dist/assets/slider-thumb.svg +1 -0
- package/dist/assets/sunny.png +0 -0
- package/dist/assets/sunny_dark.png +0 -0
- package/dist/assets/sunny_light.png +0 -0
- package/dist/assets/tab-outline.svg +1 -0
- package/dist/assets/title-bar-center-red.svg +26 -0
- package/dist/assets/title-bar-center.svg +1 -0
- package/dist/assets/title-bar-utility.svg +1 -0
- package/dist/assets/trash-empty.png +0 -0
- package/dist/assets/trash-full.png +0 -0
- package/dist/assets/triangle.svg +1 -0
- package/dist/assets/waves_azul.png +0 -0
- package/dist/assets/waves_bondi.png +0 -0
- package/dist/assets/waves_sunny.png +0 -0
- package/dist/assets/zoom.svg +1 -0
- package/dist/classicy-platinum.css +2 -0
- package/dist/classicy-platinum.fonts.css +13 -0
- package/dist/types/assets/art/platinumArt.d.ts +28 -0
- package/dist/types/assets/art/platinumArt.d.ts.map +1 -0
- package/dist/types/assets/pixelart/platinumPixelArt.d.ts +16 -0
- package/dist/types/assets/pixelart/platinumPixelArt.d.ts.map +1 -0
- package/dist/types/assets/platinumAssets.d.ts +2 -0
- package/dist/types/assets/platinumAssets.d.ts.map +1 -0
- package/dist/types/assets/platinumFonts.internal.d.ts +9 -0
- package/dist/types/assets/platinumFonts.internal.d.ts.map +1 -0
- package/dist/types/assets/platinumLegacyWallpapers.d.ts +3 -0
- package/dist/types/assets/platinumLegacyWallpapers.d.ts.map +1 -0
- package/dist/types/assets/platinumWallpapers.d.ts +11 -0
- package/dist/types/assets/platinumWallpapers.d.ts.map +1 -0
- package/dist/types/assets/sounds/platinum.d.ts +3 -0
- package/dist/types/assets/sounds/platinum.d.ts.map +1 -0
- package/dist/types/hooks.d.ts +14 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +32 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +56 -4
- package/src/styles/_assets.scss +27 -0
- package/src/styles/_mixins.scss +290 -0
- package/src/styles/_scrollbars.scss +314 -0
- package/src/styles/components/_Alert.scss +10 -0
- package/src/styles/components/_Assistant.scss +10 -0
- package/src/styles/components/_BevelButton.scss +26 -0
- package/src/styles/components/_Button.scss +52 -0
- package/src/styles/components/_Checkbox.scss +33 -0
- package/src/styles/components/_ControlStrip.scss +186 -0
- package/src/styles/components/_Desktop.scss +25 -0
- package/src/styles/components/_DesktopIcon.scss +9 -0
- package/src/styles/components/_DriveSetupList.scss +9 -0
- package/src/styles/components/_FileInput.scss +12 -0
- package/src/styles/components/_HyperCard.scss +13 -0
- package/src/styles/components/_Icon.scss +9 -0
- package/src/styles/components/_Menu.scss +99 -0
- package/src/styles/components/_Meter.scss +8 -0
- package/src/styles/components/_Output.scss +9 -0
- package/src/styles/components/_Placard.scss +16 -0
- package/src/styles/components/_PopUpMenu.scss +33 -0
- package/src/styles/components/_ProgressBar.scss +13 -0
- package/src/styles/components/_QuickTimeMovieEmbed.scss +84 -0
- package/src/styles/components/_Slider.scss +156 -0
- package/src/styles/components/_SplitView.scss +9 -0
- package/src/styles/components/_StartupScreen.scss +9 -0
- package/src/styles/components/_Table.scss +13 -0
- package/src/styles/components/_Tabs.scss +34 -0
- package/src/styles/components/_Window.scss +139 -0
- package/src/styles/components/_WindowFrame.scss +10 -0
- package/src/styles/platinum.scss +68 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// The Platinum push button look (from ClassicyButton.scss): the depressable
|
|
2
|
+
// bevel, the default button's ring, and the pressed and keyboard-activation
|
|
3
|
+
// faces. The base sheet's overrides of them (the default ring from
|
|
4
|
+
// --button-default-ring, a disabled default button's flat face, square and
|
|
5
|
+
// small radii) follow what they override, as in the base file, so they still
|
|
6
|
+
// win from the package layer.
|
|
7
|
+
@use "../mixins";
|
|
8
|
+
|
|
9
|
+
@mixin button {
|
|
10
|
+
.classicyButton {
|
|
11
|
+
@include mixins.platinum-window-depressable;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(.classicyButton).default {
|
|
15
|
+
@include mixins.platinum-depressable-default;
|
|
16
|
+
|
|
17
|
+
// Anchor the platinum default-button ring outset to the HIG token (3px).
|
|
18
|
+
// Same three-layer platinum ring as the mixin, one border wide per
|
|
19
|
+
// layer (border, frame, ring), its outer reach --button-default-ring.
|
|
20
|
+
box-shadow:
|
|
21
|
+
0 0 0 var(--window-border-size) var(--color-system-04),
|
|
22
|
+
0 0 0 var(--control-frame-width) var(--color-system-02),
|
|
23
|
+
0 0 0 var(--button-default-ring) var(--color-black),
|
|
24
|
+
inset calc(var(--window-border-size) * -1) calc(var(--window-border-size) * -1) 0 0 var(--color-system-05),
|
|
25
|
+
inset var(--window-border-size) var(--window-border-size) 0 0 var(--color-system-06);
|
|
26
|
+
|
|
27
|
+
&:active:disabled {
|
|
28
|
+
box-shadow: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(.classicyButton).pressed {
|
|
33
|
+
@include mixins.platinum-window-depressed;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// ~8-tick keyboard-activation highlight: the pressed face.
|
|
37
|
+
.classicyButtonKeyActive {
|
|
38
|
+
@include mixins.platinum-window-depressed;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.classicyButton).default.classicyButtonKeyActive {
|
|
42
|
+
@include mixins.platinum-depressable-box-shadow-active;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.classicyButtonShapeSquare {
|
|
46
|
+
border-radius: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.classicyButtonSmall {
|
|
50
|
+
border-radius: var(--control-padding);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// The Platinum checkbox look (from ClassicyCheckbox.scss): the beveled box
|
|
2
|
+
// border, then the base sheet's pressed, disabled and default overrides of
|
|
3
|
+
// it, in their original order.
|
|
4
|
+
@use "../mixins";
|
|
5
|
+
|
|
6
|
+
@mixin checkbox {
|
|
7
|
+
.classicyCheckbox {
|
|
8
|
+
@include mixins.platinum-window-border;
|
|
9
|
+
|
|
10
|
+
&:active {
|
|
11
|
+
box-shadow: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:disabled,
|
|
15
|
+
&:disabled:active {
|
|
16
|
+
border: var(--window-border-size) solid var(--color-system-06);
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// `isDefault` emphasizes the box with the theme accent while it is on or
|
|
22
|
+
// pressed; a disabled default box keeps the disabled border.
|
|
23
|
+
.classicyCheckbox.default {
|
|
24
|
+
&:checked,
|
|
25
|
+
&:active {
|
|
26
|
+
border-color: var(--color-theme-06);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:disabled {
|
|
30
|
+
border-color: var(--color-system-06);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// The Platinum Control Strip look (from ClassicyControlStrip.scss), pixel for
|
|
2
|
+
// pixel from HIGOS8 Figure 6-15: the raised, recessed and pressed cell bevels,
|
|
3
|
+
// drawn as px-rect background layers. The cells' size, black separators and
|
|
4
|
+
// glyph positions are structure and stay in the base sheet.
|
|
5
|
+
//
|
|
6
|
+
// The art is drawn on a grid of --control-strip-bevel-width pixels
|
|
7
|
+
// (measurements.controlStrip.bevelWidth): every coordinate is a whole number
|
|
8
|
+
// of bevel pixels, so the "* 2", "* 3" and "* 4" below are positions on that
|
|
9
|
+
// grid, not theme proportions.
|
|
10
|
+
@use "pkg:@classicy/classicy/scss/layout";
|
|
11
|
+
|
|
12
|
+
// Raised (normal) cell: face ring, white highlight 1 px in on the top and left,
|
|
13
|
+
// #a5a5a5 then #848484 on the bottom and right.
|
|
14
|
+
@mixin platinum-control-strip-bevel-raised {
|
|
15
|
+
background:
|
|
16
|
+
layout.classicy-px-rect(
|
|
17
|
+
var(--color-white),
|
|
18
|
+
var(--control-strip-bevel-width),
|
|
19
|
+
var(--control-strip-bevel-width),
|
|
20
|
+
calc(100% - var(--control-strip-bevel-width) * 3),
|
|
21
|
+
var(--control-strip-bevel-width)
|
|
22
|
+
),
|
|
23
|
+
layout.classicy-px-rect(
|
|
24
|
+
var(--color-white),
|
|
25
|
+
var(--control-strip-bevel-width),
|
|
26
|
+
var(--control-strip-bevel-width),
|
|
27
|
+
var(--control-strip-bevel-width),
|
|
28
|
+
calc(100% - var(--control-strip-bevel-width) * 3)
|
|
29
|
+
),
|
|
30
|
+
layout.classicy-px-rect(
|
|
31
|
+
var(--color-system-04),
|
|
32
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
33
|
+
calc(var(--control-strip-bevel-width) * 2),
|
|
34
|
+
var(--control-strip-bevel-width),
|
|
35
|
+
calc(100% - var(--control-strip-bevel-width) * 4)
|
|
36
|
+
),
|
|
37
|
+
layout.classicy-px-rect(
|
|
38
|
+
var(--color-system-04),
|
|
39
|
+
calc(var(--control-strip-bevel-width) * 2),
|
|
40
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
41
|
+
calc(100% - var(--control-strip-bevel-width) * 3),
|
|
42
|
+
var(--control-strip-bevel-width)
|
|
43
|
+
),
|
|
44
|
+
layout.classicy-px-rect(
|
|
45
|
+
var(--color-system-05),
|
|
46
|
+
100%,
|
|
47
|
+
var(--control-strip-bevel-width),
|
|
48
|
+
var(--control-strip-bevel-width),
|
|
49
|
+
calc(100% - var(--control-strip-bevel-width))
|
|
50
|
+
),
|
|
51
|
+
layout.classicy-px-rect(
|
|
52
|
+
var(--color-system-05),
|
|
53
|
+
var(--control-strip-bevel-width),
|
|
54
|
+
100%,
|
|
55
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
56
|
+
var(--control-strip-bevel-width)
|
|
57
|
+
),
|
|
58
|
+
var(--color-system-03);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Recessed (the disabled scroll arrow cell): dark top and left, white bottom
|
|
62
|
+
// and right, face corners.
|
|
63
|
+
@mixin platinum-control-strip-bevel-recessed {
|
|
64
|
+
background:
|
|
65
|
+
layout.classicy-px-rect(
|
|
66
|
+
var(--color-system-05),
|
|
67
|
+
0,
|
|
68
|
+
0,
|
|
69
|
+
var(--control-strip-bevel-width),
|
|
70
|
+
calc(100% - var(--control-strip-bevel-width))
|
|
71
|
+
),
|
|
72
|
+
layout.classicy-px-rect(
|
|
73
|
+
var(--color-system-05),
|
|
74
|
+
0,
|
|
75
|
+
0,
|
|
76
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
77
|
+
var(--control-strip-bevel-width)
|
|
78
|
+
),
|
|
79
|
+
layout.classicy-px-rect(
|
|
80
|
+
var(--color-white),
|
|
81
|
+
100%,
|
|
82
|
+
var(--control-strip-bevel-width),
|
|
83
|
+
var(--control-strip-bevel-width),
|
|
84
|
+
calc(100% - var(--control-strip-bevel-width))
|
|
85
|
+
),
|
|
86
|
+
layout.classicy-px-rect(
|
|
87
|
+
var(--color-white),
|
|
88
|
+
var(--control-strip-bevel-width),
|
|
89
|
+
100%,
|
|
90
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
91
|
+
var(--control-strip-bevel-width)
|
|
92
|
+
),
|
|
93
|
+
var(--color-system-03);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Pressed (a module with its menu open): 2 px dark top and left, 2 px light
|
|
97
|
+
// bottom and right, on the darker face.
|
|
98
|
+
@mixin platinum-control-strip-bevel-pressed {
|
|
99
|
+
background:
|
|
100
|
+
layout.classicy-px-rect(
|
|
101
|
+
var(--color-system-06),
|
|
102
|
+
0,
|
|
103
|
+
0,
|
|
104
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
105
|
+
var(--control-strip-bevel-width)
|
|
106
|
+
),
|
|
107
|
+
layout.classicy-px-rect(
|
|
108
|
+
var(--color-system-06),
|
|
109
|
+
0,
|
|
110
|
+
var(--control-strip-bevel-width),
|
|
111
|
+
calc(100% - var(--control-strip-bevel-width) * 2),
|
|
112
|
+
var(--control-strip-bevel-width)
|
|
113
|
+
),
|
|
114
|
+
layout.classicy-px-rect(
|
|
115
|
+
var(--color-system-06),
|
|
116
|
+
0,
|
|
117
|
+
0,
|
|
118
|
+
var(--control-strip-bevel-width),
|
|
119
|
+
calc(100% - var(--control-strip-bevel-width))
|
|
120
|
+
),
|
|
121
|
+
layout.classicy-px-rect(
|
|
122
|
+
var(--color-system-06),
|
|
123
|
+
var(--control-strip-bevel-width),
|
|
124
|
+
0,
|
|
125
|
+
var(--control-strip-bevel-width),
|
|
126
|
+
calc(100% - var(--control-strip-bevel-width) * 2)
|
|
127
|
+
),
|
|
128
|
+
layout.classicy-px-rect(
|
|
129
|
+
var(--color-system-03),
|
|
130
|
+
100%,
|
|
131
|
+
var(--control-strip-bevel-width),
|
|
132
|
+
var(--control-strip-bevel-width),
|
|
133
|
+
calc(100% - var(--control-strip-bevel-width))
|
|
134
|
+
),
|
|
135
|
+
layout.classicy-px-rect(
|
|
136
|
+
var(--color-system-03),
|
|
137
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
138
|
+
var(--control-strip-bevel-width),
|
|
139
|
+
var(--control-strip-bevel-width),
|
|
140
|
+
calc(100% - var(--control-strip-bevel-width))
|
|
141
|
+
),
|
|
142
|
+
layout.classicy-px-rect(
|
|
143
|
+
var(--color-system-03),
|
|
144
|
+
var(--control-strip-bevel-width),
|
|
145
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
146
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
147
|
+
var(--control-strip-bevel-width)
|
|
148
|
+
),
|
|
149
|
+
layout.classicy-px-rect(
|
|
150
|
+
var(--color-system-03),
|
|
151
|
+
var(--control-strip-bevel-width),
|
|
152
|
+
100%,
|
|
153
|
+
calc(100% - var(--control-strip-bevel-width)),
|
|
154
|
+
var(--control-strip-bevel-width)
|
|
155
|
+
),
|
|
156
|
+
var(--color-system-05);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@mixin controlStrip {
|
|
160
|
+
// The collapse box and scroll arrows.
|
|
161
|
+
.classicyControlStripCell {
|
|
162
|
+
@include platinum-control-strip-bevel-raised;
|
|
163
|
+
|
|
164
|
+
&:active:not(:disabled) {
|
|
165
|
+
@include platinum-control-strip-bevel-pressed;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.classicyControlStripScroll {
|
|
170
|
+
&:disabled {
|
|
171
|
+
@include platinum-control-strip-bevel-recessed;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Each module is a pop-up bevel button; the strip's bevel replaces the bevel
|
|
176
|
+
// button's own face (its `box-shadow: none` stays in the base sheet, where
|
|
177
|
+
// it already outranks the bevel button's shadow).
|
|
178
|
+
.classicyControlStrip .classicyBevelButton.classicyControlStripModule {
|
|
179
|
+
@include platinum-control-strip-bevel-raised;
|
|
180
|
+
|
|
181
|
+
&.pressed,
|
|
182
|
+
&.open {
|
|
183
|
+
@include platinum-control-strip-bevel-pressed;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// The Platinum desktop look (from ClassicyDesktop.scss): the scroll bars of
|
|
2
|
+
// the desktop and everything in it. The package root is the desktop itself,
|
|
3
|
+
// so `&` here is `.classicyDesktop[data-classicy-appearance="platinum"]`.
|
|
4
|
+
@use "../scrollbars";
|
|
5
|
+
|
|
6
|
+
@mixin desktop {
|
|
7
|
+
&,
|
|
8
|
+
& * {
|
|
9
|
+
@include scrollbars.platinum-scrollbars;
|
|
10
|
+
@include scrollbars.platinum-scrollbars-themed;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Mac OS 8 "Smart Scrolling" OFF (Appearance control panel): classic split
|
|
14
|
+
// scroll arrows, one at each end of the bar. Added as a modifier on the
|
|
15
|
+
// desktop root so the two-class selector outranks the grouped default from
|
|
16
|
+
// platinum-scrollbars() and cascades to every scrollable surface (windows,
|
|
17
|
+
// list boxes, tables, windoids) at once. Smart Scrolling ON is the default
|
|
18
|
+
// and needs no class.
|
|
19
|
+
&.classicyDesktopSplitArrows {
|
|
20
|
+
&,
|
|
21
|
+
& * {
|
|
22
|
+
@include scrollbars.platinum-scrollbars-split-arrows;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// The Platinum Drive Setup list look (from DriveSetupList.scss): the column
|
|
2
|
+
// headers' bevel, matching the Finder list view.
|
|
3
|
+
@use "../mixins";
|
|
4
|
+
|
|
5
|
+
@mixin driveSetupList {
|
|
6
|
+
.classicyDriveSetupListHead th {
|
|
7
|
+
@include mixins.platinum-window-box-shadow;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// The Platinum file input look (from ClassicyFileInput.scss): the glyph on a
|
|
2
|
+
// listed file's remove button. A font glyph, as an escape kept by
|
|
3
|
+
// `string.unquote` so the Sass output stays ASCII (Sass decodes a quoted
|
|
4
|
+
// escape and prepends `@charset`; the build keeps dist ASCII, verify:dist
|
|
5
|
+
// invariant 9); the button's aria-label stays its accessible name.
|
|
6
|
+
@use "sass:string";
|
|
7
|
+
|
|
8
|
+
@mixin fileInput {
|
|
9
|
+
.classicyFileInputRemoveGlyph::before {
|
|
10
|
+
content: string.unquote('"\\2715"'); // ✕
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// The Platinum HyperCard editor look (from HyperCard.scss): the check after
|
|
2
|
+
// the tools palette entry armed for click-to-place. A font glyph with its
|
|
3
|
+
// leading space, as an escape kept by `string.unquote` so the Sass output
|
|
4
|
+
// stays ASCII (the build keeps dist ASCII; verify:dist invariant 9). The mark
|
|
5
|
+
// is an aria-hidden inline span after the label, so the entry's accessible
|
|
6
|
+
// name stays its label and aria-pressed carries the state.
|
|
7
|
+
@use "sass:string";
|
|
8
|
+
|
|
9
|
+
@mixin hyperCard {
|
|
10
|
+
.classicyHyperCardPaletteEntry.selected .classicyHyperCardPaletteEntryMark::after {
|
|
11
|
+
content: string.unquote('" \\2713"'); // " ✓"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// The Platinum menu look (from ClassicyMenu.scss): the menu frame of HIGOS8
|
|
2
|
+
// Figure 6-15 on every menu, its dividers, the submenu triangle, the flash of
|
|
3
|
+
// a chosen item, and the check and dash glyphs of checked and mixed items.
|
|
4
|
+
@use "sass:string";
|
|
5
|
+
@use "../mixins";
|
|
6
|
+
|
|
7
|
+
@mixin menu {
|
|
8
|
+
.classicyMenu {
|
|
9
|
+
@include mixins.platinum-menu-frame;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.classicySubMenu {
|
|
13
|
+
@include mixins.platinum-menu-frame;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.classicyContextMenu {
|
|
17
|
+
@include mixins.platinum-menu-frame;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.classicyContextSubMenu {
|
|
21
|
+
@include mixins.platinum-menu-frame;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Dividers in every menu (Figure 6-15).
|
|
25
|
+
.classicyMenu,
|
|
26
|
+
.classicySubMenu,
|
|
27
|
+
.classicyContextMenu,
|
|
28
|
+
.classicyContextSubMenu {
|
|
29
|
+
.classicySeparatorHorizontal {
|
|
30
|
+
@include mixins.platinum-menu-divider;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// The submenu triangle: the registered art as the box's own image, placed
|
|
35
|
+
// by the base sheet (right center, no repeat). An image, not a mask
|
|
36
|
+
// (ruling E24): a mask drew the anti-aliased edge one level off in Firefox.
|
|
37
|
+
.classicyMenuItemChildMenuIndicator {
|
|
38
|
+
&:after {
|
|
39
|
+
background-image: var(--classicy-art-submenu-arrow);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// The flash of a chosen item (from ClassicyMenu.scss), applied by the
|
|
44
|
+
// MenuItem press hook (hooks.ts) and cleared by its release. Its
|
|
45
|
+
// animationend runs the item's action.
|
|
46
|
+
.classicyMenuItemFlash {
|
|
47
|
+
-webkit-animation-name: classicyMenuItemFlashKeyframes;
|
|
48
|
+
animation-name: classicyMenuItemFlashKeyframes;
|
|
49
|
+
animation-duration: .25s;
|
|
50
|
+
animation-iteration-count: 1;
|
|
51
|
+
animation-timing-function: steps(1, end) ;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes classicyMenuItemFlashKeyframes {
|
|
55
|
+
0% {
|
|
56
|
+
background-color: var(--color-theme-04);
|
|
57
|
+
color: var(--color-white);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
20% {
|
|
61
|
+
background-color: var(--color-system-02);
|
|
62
|
+
color: var(--color-black);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
40% {
|
|
66
|
+
background-color: var(--color-theme-04);
|
|
67
|
+
color: var(--color-white);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
60% {
|
|
71
|
+
background-color: var(--color-system-02);
|
|
72
|
+
color: var(--color-black);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
80% {
|
|
76
|
+
background-color: var(--color-theme-04);
|
|
77
|
+
color: var(--color-white);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
100% {
|
|
81
|
+
background-color: var(--color-system-02);
|
|
82
|
+
color: var(--color-black);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// The check and mixed-state dash in an item's check gutter (HIGOS8 Ch. 4).
|
|
87
|
+
// Font glyphs, as escapes kept by `string.unquote`, so the Sass output
|
|
88
|
+
// stays ASCII (Sass decodes a quoted escape and prepends `@charset`; the
|
|
89
|
+
// build keeps dist ASCII, verify:dist invariant 9). The
|
|
90
|
+
// gutter is an inline-flex box, so each glyph is centered in it as the text
|
|
91
|
+
// was.
|
|
92
|
+
.classicyMenuItemCheck.checked::before {
|
|
93
|
+
content: string.unquote('"\\2713"'); // ✓
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.classicyMenuItemCheck.mixed::before {
|
|
97
|
+
content: string.unquote('"\\2013"'); // –
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// The Platinum placard look (from ClassicyPlacard.scss): the pop-up arrow of a
|
|
2
|
+
// placard with a menu, and the beveled border of the menu it opens.
|
|
3
|
+
@use "sass:string";
|
|
4
|
+
@use "../mixins";
|
|
5
|
+
|
|
6
|
+
@mixin placard {
|
|
7
|
+
// A font glyph, as an escape kept by `string.unquote` so the Sass output
|
|
8
|
+
// stays ASCII (the build keeps dist ASCII; verify:dist invariant 9).
|
|
9
|
+
.classicyPlacardArrow::before {
|
|
10
|
+
content: string.unquote('"\\25BE"'); // ▾
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.classicyPlacardMenu {
|
|
14
|
+
@include mixins.platinum-window-border;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// The Platinum pop-up menu look (from ClassicyPopUpMenu.scss): the raised
|
|
2
|
+
// control, its double-arrow indicator, and the checkmark against the current
|
|
3
|
+
// item of the open menu (ComboBox shares it). The disabled fill follows the
|
|
4
|
+
// undepressable face it overrides.
|
|
5
|
+
@use "sass:string";
|
|
6
|
+
@use "../mixins";
|
|
7
|
+
|
|
8
|
+
@mixin popUpMenu {
|
|
9
|
+
.classicyPopUpMenu {
|
|
10
|
+
@include mixins.platinum-window-undepressable;
|
|
11
|
+
|
|
12
|
+
&.disabled {
|
|
13
|
+
background-color: var(--color-system-01);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// The double arrow: the registered art as an image, like the grow-box grip
|
|
18
|
+
// and the control-box dither (ruling E21). A mask over --color-black does
|
|
19
|
+
// not reproduce the raster exactly at every tile size (the ComboBox's
|
|
20
|
+
// 9x10.8 px arrow), and an image layer leaves the indicator's border,
|
|
21
|
+
// corners and bevel untouched. Base keeps the no-repeat / center / 45%
|
|
22
|
+
// geometry.
|
|
23
|
+
.classicyPopUpMenuIndicator {
|
|
24
|
+
background-image: var(--classicy-art-popup-arrows);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// The HIG checkmark against the current selection, a font glyph in the
|
|
28
|
+
// fixed check gutter (an escape kept by `string.unquote`, so the Sass output
|
|
29
|
+
// stays ASCII; the build keeps dist ASCII, verify:dist invariant 9).
|
|
30
|
+
.classicyPopUpMenuCheck.checked::before {
|
|
31
|
+
content: string.unquote('"\\2713"'); // ✓
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// The Platinum progress bar look (from ClassicyProgressBar.scss): the inset
|
|
2
|
+
// track border.
|
|
3
|
+
@use "../mixins";
|
|
4
|
+
|
|
5
|
+
@mixin progressBar {
|
|
6
|
+
.classicyProgress {
|
|
7
|
+
progress[value] {
|
|
8
|
+
&::-webkit-progress-bar {
|
|
9
|
+
@include mixins.platinum-window-inner-border;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// The Platinum QuickTime controller and caption look (from
|
|
2
|
+
// QuickTimeMovieEmbed.scss): the bar's face, the raised time display, buttons
|
|
3
|
+
// (and their glyphs' drop shadow) and seek-bar holder, the volume pop-up's
|
|
4
|
+
// face and bevel, the slider thumbs' art and drop shadow, both tracks' border,
|
|
5
|
+
// inset bevel and focus color, and the themed captions. The controller's
|
|
6
|
+
// cells butt together, so each drops the mixin's border and rounded corners
|
|
7
|
+
// right after it, as the base rule did. The base sheet keeps geometry and
|
|
8
|
+
// resets of the native range input only.
|
|
9
|
+
@use "pkg:@classicy/classicy/scss/color" as c;
|
|
10
|
+
@use "../mixins";
|
|
11
|
+
|
|
12
|
+
@mixin quickTimeMovieEmbed {
|
|
13
|
+
.quickTimePlayerVideoControlsHolder {
|
|
14
|
+
background: var(--color-system-03);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.quickTimePlayerVideoControlsTime {
|
|
18
|
+
@include mixins.platinum-window-undepressable;
|
|
19
|
+
border: 0;
|
|
20
|
+
border-radius: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.quickTimePlayerVideoControlsButton {
|
|
24
|
+
@include mixins.platinum-window-depressable;
|
|
25
|
+
border: 0;
|
|
26
|
+
border-radius: 0;
|
|
27
|
+
|
|
28
|
+
img {
|
|
29
|
+
filter: drop-shadow(var(--window-border-size) var(--window-border-size) 0px c.classicy-alpha("--color-black", 50%));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.quickTimePlayerVideoControlsProgressBarHolder {
|
|
34
|
+
@include mixins.platinum-window-depressable;
|
|
35
|
+
border-radius: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.quickTimePlayerVideoControlsVolumeBar {
|
|
39
|
+
background: var(--color-system-03);
|
|
40
|
+
@include mixins.platinum-window-inner-box-shadow;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// The thumbs are the registered art (`quickTimeThumbSlider`,
|
|
44
|
+
// `quickTimeVolumeSlider`), drawn as image layers over the base sheet's
|
|
45
|
+
// geometry; the volume thumb's rule follows the shared one, as in base.
|
|
46
|
+
.quickTimePlayerVideoControlsProgressBar::-webkit-slider-thumb,
|
|
47
|
+
.quickTimePlayerVideoControlsVolumeBar::-webkit-slider-thumb {
|
|
48
|
+
background-image: var(--classicy-art-quick-time-thumb-slider);
|
|
49
|
+
filter: drop-shadow(
|
|
50
|
+
var(--window-border-size) var(--window-border-size) var(--window-border-size) var(--color-system-06)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.quickTimePlayerVideoControlsVolumeBar::-webkit-slider-thumb {
|
|
55
|
+
background-image: var(--classicy-art-quick-time-volume-slider);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Both tracks: a themed border and inset bevel, and the focused track's fill.
|
|
59
|
+
.quickTimePlayerVideoControlsVolumeBar::-webkit-slider-runnable-track,
|
|
60
|
+
.quickTimePlayerVideoControlsProgressBar::-webkit-slider-runnable-track {
|
|
61
|
+
border: var(--window-border-size) solid var(--color-theme-04);
|
|
62
|
+
box-shadow: inset var(--window-border-size) var(--window-border-size) var(--window-border-size) var(--color-theme-04),
|
|
63
|
+
inset calc(var(--window-border-size) * -1) calc(var(--window-border-size) * -1) var(--window-border-size) var(--color-theme-06);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.quickTimePlayerVideoControlsVolumeBar:focus::-webkit-slider-runnable-track,
|
|
67
|
+
.quickTimePlayerVideoControlsProgressBar:focus::-webkit-slider-runnable-track {
|
|
68
|
+
background: var(--color-theme-02);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// The themed captions. A cue with a caller's captionStyle is skipped: its
|
|
72
|
+
// colors are the caller's (QuickTimeCaptionsOverlay.scss, in base), and
|
|
73
|
+
// this layer would beat them.
|
|
74
|
+
.quickTimePlayerCaptions:not(.quickTimePlayerCaptionsCustomStyle) {
|
|
75
|
+
color: var(--color-theme-01);
|
|
76
|
+
background-color: var(--color-system-07);
|
|
77
|
+
text-shadow: 0 0 var(--quick-time-caption-shadow-blur) var(--color-theme-05);
|
|
78
|
+
filter: saturate(500%) contrast(2);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.quickTimePlayerCaptionsCustomStyle {
|
|
82
|
+
border-radius: var(--control-frame-width);
|
|
83
|
+
}
|
|
84
|
+
}
|