@classicy/appearance-platinum 0.0.0-stage → 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 +60 -3
- 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,156 @@
|
|
|
1
|
+
// The Platinum slider look (from ClassicySlider.scss): the indicator's shape,
|
|
2
|
+
// border, grip and face, for the native thumb in each state, the highlighted
|
|
3
|
+
// and nondirectional variants, and the ghost indicator that tracks a drag.
|
|
4
|
+
// The thumb's size, its rotation for each pointing direction and the ghost's
|
|
5
|
+
// position stay in the base sheet. The nondirectional rules override the
|
|
6
|
+
// pentagon thumb's clip-path and background, so they come with it, after it.
|
|
7
|
+
|
|
8
|
+
// Pentagon: flat top + right/left sides down to 62%, then arrow-point to 100%
|
|
9
|
+
$thumb-shape: polygon(9% 2%, 92% 2%, 92% 56.6%, 50% 95%, 9% 56.6%);
|
|
10
|
+
|
|
11
|
+
// ── Thumb border art ──────────────────────────────────────────────────────────
|
|
12
|
+
// `border`, `box-shadow`, and `filter: drop-shadow` all fail on
|
|
13
|
+
// ::webkit-slider-thumb: border/shadow paint before clip-path (rectangle-clipped),
|
|
14
|
+
// and filter is not applied to this pseudo-element by the browser.
|
|
15
|
+
//
|
|
16
|
+
// Solution: an image layer draws a 4px stroke on the same pentagon path used by
|
|
17
|
+
// clip-path. The stroke is centered on the path so its outer 2px are cropped by
|
|
18
|
+
// clip-path, leaving a clean 2px border (= --window-border-size × 2) that
|
|
19
|
+
// follows every edge exactly — including the diagonal lower sides.
|
|
20
|
+
//
|
|
21
|
+
// The art is the registered system art `sliderThumb` (Platinum:
|
|
22
|
+
// assets/art/slider-thumb.svg, viewBox 21 × 21 = the thumb's width × height,
|
|
23
|
+
// points = $thumb-shape in px). It stays an image layer, not a mask: the thumb
|
|
24
|
+
// has no pseudo-elements, so a mask would clip the body gradient too. Its
|
|
25
|
+
// `currentColor` stroke draws black in an image.
|
|
26
|
+
$_thumb-border-svg: var(--classicy-art-slider-thumb);
|
|
27
|
+
|
|
28
|
+
// ── Thumb grip strikes art ────────────────────────────────────────────────────
|
|
29
|
+
// Three vertical lines centered in the thumb body to indicate draggability:
|
|
30
|
+
// the registered system art `sliderStrikes` (Platinum:
|
|
31
|
+
// assets/art/slider-strikes.svg, its two-tone grays the art).
|
|
32
|
+
$_thumb-strikes-svg: var(--classicy-art-slider-strikes);
|
|
33
|
+
|
|
34
|
+
// ── Nondirectional thumb (unpointed knob) ─────────────────────────────────────
|
|
35
|
+
// A plain rounded-rectangle indicator for sliders where the pointed edge would
|
|
36
|
+
// carry no meaning. Same 2px-cropped-stroke trick as the pentagon border, from
|
|
37
|
+
// the registered system art `sliderThumbRect` (Platinum:
|
|
38
|
+
// assets/art/slider-thumb-rect.svg).
|
|
39
|
+
$_thumb-rect-svg: var(--classicy-art-slider-thumb-rect);
|
|
40
|
+
$_thumb-rect-shape: inset(0 round var(--slider-thumb-corner-radius));
|
|
41
|
+
|
|
42
|
+
// ── Thumb appearance mixin ────────────────────────────────────────────────────
|
|
43
|
+
@mixin platinum-slider-thumb(
|
|
44
|
+
$body-gradient,
|
|
45
|
+
) {
|
|
46
|
+
clip-path: $thumb-shape;
|
|
47
|
+
background:
|
|
48
|
+
$_thumb-border-svg 0 0 / 100% 100% no-repeat,
|
|
49
|
+
$_thumb-strikes-svg center 30% / 45% 35% no-repeat,
|
|
50
|
+
$body-gradient;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin slider {
|
|
54
|
+
.classicySlider {
|
|
55
|
+
// Image 1 — normal (raised Platinum silver)
|
|
56
|
+
&::-webkit-slider-thumb {
|
|
57
|
+
@include platinum-slider-thumb(
|
|
58
|
+
linear-gradient(to bottom, var(--color-system-01), var(--color-system-04))
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&::-moz-range-thumb {
|
|
63
|
+
@include platinum-slider-thumb(
|
|
64
|
+
linear-gradient(to bottom, var(--color-system-01), var(--color-system-04))
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Image 2 — depressed / dragging (inverted gradient, reversed glint)
|
|
69
|
+
&:active::-webkit-slider-thumb {
|
|
70
|
+
@include platinum-slider-thumb(
|
|
71
|
+
linear-gradient(to bottom, var(--color-theme-04), var(--color-theme-03), var(--color-theme-04))
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:active::-moz-range-thumb {
|
|
76
|
+
@include platinum-slider-thumb(
|
|
77
|
+
linear-gradient(to bottom, var(--color-theme-04), var(--color-theme-03), var(--color-theme-04))
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// ─── Highlighted variant (Image 3) — theme blue ─────────────────────────────
|
|
83
|
+
|
|
84
|
+
.classicySliderHighlighted {
|
|
85
|
+
&::-webkit-slider-thumb {
|
|
86
|
+
@include platinum-slider-thumb(
|
|
87
|
+
linear-gradient(to bottom, var(--color-theme-04), var(--color-theme-03), var(--color-theme-04))
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&::-moz-range-thumb {
|
|
92
|
+
@include platinum-slider-thumb(
|
|
93
|
+
linear-gradient(to bottom, var(--color-theme-03), var(--color-theme-04), var(--color-theme-03)) );
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:active::-webkit-slider-thumb {
|
|
97
|
+
@include platinum-slider-thumb(
|
|
98
|
+
linear-gradient(to bottom, var(--color-theme-06), var(--color-theme-05), var(--color-theme-06))
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:active::-moz-range-thumb {
|
|
103
|
+
@include platinum-slider-thumb(
|
|
104
|
+
linear-gradient(to bottom, var(--color-theme-06), var(--color-theme-05), var(--color-theme-06)) );
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// ─── Nondirectional indicator: a rounded-rectangle knob with no point ───────
|
|
109
|
+
|
|
110
|
+
.classicySliderIndicatorNondirectional {
|
|
111
|
+
&::-webkit-slider-thumb {
|
|
112
|
+
clip-path: $_thumb-rect-shape;
|
|
113
|
+
background:
|
|
114
|
+
$_thumb-rect-svg 0 0 / 100% 100% no-repeat,
|
|
115
|
+
$_thumb-strikes-svg center 50% / 45% 35% no-repeat,
|
|
116
|
+
linear-gradient(to bottom, var(--color-system-01), var(--color-system-04));
|
|
117
|
+
}
|
|
118
|
+
&::-moz-range-thumb {
|
|
119
|
+
clip-path: $_thumb-rect-shape;
|
|
120
|
+
background:
|
|
121
|
+
$_thumb-rect-svg 0 0 / 100% 100% no-repeat,
|
|
122
|
+
$_thumb-strikes-svg center 50% / 45% 35% no-repeat,
|
|
123
|
+
linear-gradient(to bottom, var(--color-system-01), var(--color-system-04));
|
|
124
|
+
}
|
|
125
|
+
&:active::-webkit-slider-thumb {
|
|
126
|
+
clip-path: $_thumb-rect-shape;
|
|
127
|
+
background:
|
|
128
|
+
$_thumb-rect-svg 0 0 / 100% 100% no-repeat,
|
|
129
|
+
$_thumb-strikes-svg center 50% / 45% 35% no-repeat,
|
|
130
|
+
linear-gradient(to bottom, var(--color-theme-04), var(--color-theme-03), var(--color-theme-04));
|
|
131
|
+
}
|
|
132
|
+
&:active::-moz-range-thumb {
|
|
133
|
+
clip-path: $_thumb-rect-shape;
|
|
134
|
+
background:
|
|
135
|
+
$_thumb-rect-svg 0 0 / 100% 100% no-repeat,
|
|
136
|
+
$_thumb-strikes-svg center 50% / 45% 35% no-repeat,
|
|
137
|
+
linear-gradient(to bottom, var(--color-theme-04), var(--color-theme-03), var(--color-theme-04));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// ─── Ghost indicator (shadow copy tracking the pointer during drag) ─────────
|
|
142
|
+
|
|
143
|
+
.classicySliderGhost {
|
|
144
|
+
clip-path: $thumb-shape;
|
|
145
|
+
background:
|
|
146
|
+
$_thumb-border-svg 0 0 / 100% 100% no-repeat,
|
|
147
|
+
linear-gradient(to bottom, var(--color-system-02), var(--color-system-05));
|
|
148
|
+
|
|
149
|
+
&.classicySliderIndicatorNondirectional {
|
|
150
|
+
clip-path: $_thumb-rect-shape;
|
|
151
|
+
background:
|
|
152
|
+
$_thumb-rect-svg 0 0 / 100% 100% no-repeat,
|
|
153
|
+
linear-gradient(to bottom, var(--color-system-02), var(--color-system-05));
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// The Platinum list view look (from ClassicyTable.scss): the column headers'
|
|
2
|
+
// bevel and the sorted column's pressed-in header.
|
|
3
|
+
@use "../mixins";
|
|
4
|
+
|
|
5
|
+
@mixin table {
|
|
6
|
+
.classicyTableColumnHeader {
|
|
7
|
+
@include mixins.platinum-window-box-shadow;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.classicyTableColumnHeader).selected {
|
|
11
|
+
@include mixins.platinum-window-header-border-depressed;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// The Platinum tab look kept in the package: the tab outline and the tab
|
|
2
|
+
// strip's hidden scroll bar.
|
|
3
|
+
//
|
|
4
|
+
// The outline is the registered system art `tabOutline` (Platinum:
|
|
5
|
+
// assets/art/tab-outline.svg), drawn as the wrapper's background image over
|
|
6
|
+
// its fill; the base sheet keeps the image's size and repeat. The art draws
|
|
7
|
+
// only the three visible sides (left diagonal, top, right diagonal) as a 2 px
|
|
8
|
+
// centered stroke; the wrapper's clip-path crops its outer half, leaving a
|
|
9
|
+
// 1 px line. It stretches to fill the wrapper (`preserveAspectRatio="none"`,
|
|
10
|
+
// `100% 100%`), and its stroke is non-scaling, so the line stays 1 px at every
|
|
11
|
+
// tab size. Its `currentColor` stroke draws black in an image.
|
|
12
|
+
//
|
|
13
|
+
// An image, not a mask (as ruling E21 drew the pop-up arrows): a black
|
|
14
|
+
// `::before` masked by the same art differs from the old raster by up to 5
|
|
15
|
+
// levels along the outline, while the same art as an image is exact.
|
|
16
|
+
//
|
|
17
|
+
// The tab strip's scroll bar, hidden over the Platinum desktop's.
|
|
18
|
+
// ClassicyTabs.scss hides it (the arrow tabs are its scroll affordance) and
|
|
19
|
+
// keeps doing so outside a Platinum desktop; inside one, the desktop
|
|
20
|
+
// scroll bars' `scrollbar-width: auto` fallback (Firefox, _Desktop.scss)
|
|
21
|
+
// would beat that from this layer, so the tab scroller says it again here.
|
|
22
|
+
// Scoped, it is one class higher than the fallback's `& *`, (0,3,0) vs
|
|
23
|
+
// (0,2,0), so it wins on specificity; platinum.scss also includes this
|
|
24
|
+
// partial after the desktop's.
|
|
25
|
+
|
|
26
|
+
@mixin tabs {
|
|
27
|
+
.classicyTabButtonWrapper {
|
|
28
|
+
background-image: var(--classicy-art-tab-outline);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.classicyTabScroller {
|
|
32
|
+
scrollbar-width: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// The Platinum window look (from ClassicyWindow.scss), included by
|
|
2
|
+
// platinum.scss inside the package wrapper. Rules keep the base file's
|
|
3
|
+
// selector chains and order: a base declaration that used to beat a moved one
|
|
4
|
+
// (a later state, a longhand after a moved shorthand, or another class on the
|
|
5
|
+
// same element) is moved here too, after what it overrides, because from the
|
|
6
|
+
// package layer the moved look would beat it whatever its specificity.
|
|
7
|
+
@use "../mixins";
|
|
8
|
+
|
|
9
|
+
@mixin window {
|
|
10
|
+
.classicyWindow {
|
|
11
|
+
@include mixins.platinum-window-border;
|
|
12
|
+
|
|
13
|
+
.classicyWindowTitleBar {
|
|
14
|
+
// Outranks the dimmed-header border below (a class on this element in
|
|
15
|
+
// the forced-state matrix).
|
|
16
|
+
border: none;
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
|
|
19
|
+
.classicyWindowControlBox {
|
|
20
|
+
@include mixins.platinum-box-shadow;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.classicyWindowCollapseBox,
|
|
24
|
+
.classicyWindowZoomBox {
|
|
25
|
+
@include mixins.platinum-window-control-box-depressable;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// The glyphs are the registered art as the depressable :after's image,
|
|
29
|
+
// top left over its centered placement; the close box draws none. Images,
|
|
30
|
+
// not masks (rulings E20, E24): a masked glyph made the luminosity-
|
|
31
|
+
// blended dither of every box in its title bar draw one level off.
|
|
32
|
+
.classicyWindowCollapseBox {
|
|
33
|
+
&:after {
|
|
34
|
+
background-image: var(--classicy-art-collapse-glyph);
|
|
35
|
+
background-position: top left;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.classicyWindowZoomBox {
|
|
40
|
+
&:after {
|
|
41
|
+
background-image: var(--classicy-art-zoom-glyph);
|
|
42
|
+
background-position: top left;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.classicyWindowCloseBox {
|
|
47
|
+
@include mixins.platinum-window-control-box-depressable;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.classicyWindowResizer {
|
|
52
|
+
background-image: var(--classicy-art-window-grip);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.classicyWindowContents {
|
|
56
|
+
@include mixins.platinum-window-inner-border;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.classicyWindowHeader {
|
|
61
|
+
@include mixins.platinum-window-header-border;
|
|
62
|
+
@include mixins.platinum-window-inner-box-shadow-outer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// #183: the list-view header drops the beveled bottom separator. Two classes
|
|
66
|
+
// so the dimmed header's border (below) does not bring the separator back.
|
|
67
|
+
.classicyWindowHeader.classicyWindowHeaderList {
|
|
68
|
+
border-bottom: none;
|
|
69
|
+
box-shadow: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.classicyWindow .classicyWindowContentsModal {
|
|
73
|
+
@include mixins.platinum-window-box-shadow;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// The windoid's title-bar pattern: the registered texture (two radial
|
|
77
|
+
// gradients over the frame gray) tiled 4px x 3px on the center band, and no
|
|
78
|
+
// side bands. Named down to `.classicyWindowTitle` so it outranks the active
|
|
79
|
+
// and red title-bar rules (four classes) that follow.
|
|
80
|
+
.classicyWindow.classicyWindowUtility .classicyWindowTitleBar .classicyWindowTitle {
|
|
81
|
+
.classicyWindowTitleLeft,
|
|
82
|
+
.classicyWindowTitleRight {
|
|
83
|
+
background: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.classicyWindowTitleCenter {
|
|
87
|
+
background-image: var(--classicy-art-window-utility-texture);
|
|
88
|
+
background-repeat: repeat;
|
|
89
|
+
background-size: var(--utility-title-bar-texture-width) var(--utility-title-bar-texture-height);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// The focused title bar's stripes: the center band at the art's own size,
|
|
94
|
+
// the bands beside a title a hair under full height.
|
|
95
|
+
:where(.classicyWindow).active {
|
|
96
|
+
@include mixins.platinum-title-bar-stripes($side-size: auto 100%);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// The red title bar: the shorthand alone on the side bands resets the
|
|
100
|
+
// focused bands' 99.8% to auto.
|
|
101
|
+
.classicyWindowRed {
|
|
102
|
+
@include mixins.platinum-window-border;
|
|
103
|
+
@include mixins.platinum-title-bar-stripes("-red", $center-size: auto 100%);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Two classes so the error border keeps its color under the dotted drag and
|
|
107
|
+
// resize outline, whose `border` shorthand comes later.
|
|
108
|
+
.classicyWindow.classicyWindowRed {
|
|
109
|
+
border-color: var(--color-error);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.classicyWindowHeaderDimmed {
|
|
113
|
+
border: solid var(--window-border-size) var(--color-black);
|
|
114
|
+
box-shadow: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// The dotted drag and resize outline.
|
|
118
|
+
:where(.classicyWindow).dragging {
|
|
119
|
+
border: var(--control-padding-tight) dotted;
|
|
120
|
+
border-color: var(--color-black);
|
|
121
|
+
box-shadow: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.classicyWindowResizing {
|
|
125
|
+
border: var(--control-padding-tight) dotted;
|
|
126
|
+
border-color: var(--color-black);
|
|
127
|
+
box-shadow: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Named under `.classicyWindow` to outrank the contents' own bevel.
|
|
131
|
+
.classicyWindow .classicyWindowContentsDimmed {
|
|
132
|
+
box-shadow: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Named under `.classicyWindow` to outrank the resizer's own grip.
|
|
136
|
+
.classicyWindow .classicyWindowResizerDimmed {
|
|
137
|
+
background-image: none;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// The Platinum window-frame look (from ClassicyWindowFrame.scss): the frame
|
|
2
|
+
// draws the window's title bar (ClassicyWindowTitleBar), always focused, so
|
|
3
|
+
// its bands carry the focused window's stripes.
|
|
4
|
+
@use "../mixins";
|
|
5
|
+
|
|
6
|
+
@mixin windowFrame {
|
|
7
|
+
.classicyWindowFrame {
|
|
8
|
+
@include mixins.platinum-title-bar-stripes($side-size: auto 100%);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// The Platinum package stylesheet, imported `?inline` by ../index.ts and
|
|
2
|
+
// registered as the package's `css`: one `@layer classicy.package` block
|
|
3
|
+
// scoped under `.classicyDesktop[data-classicy-appearance="platinum"]`. Each
|
|
4
|
+
// components/_<Name>.scss exposes one mixin, included inside the wrapper below
|
|
5
|
+
// in the order the library stylesheet bundles the base sheets they came from
|
|
6
|
+
// (the order of their `@layer classicy.base` blocks in an unminified
|
|
7
|
+
// dist/classicy.css), so a tie between two partials resolves as it did there.
|
|
8
|
+
@use "pkg:@classicy/classicy/scss/package";
|
|
9
|
+
@use "assets";
|
|
10
|
+
@use "components/Alert";
|
|
11
|
+
@use "components/Button";
|
|
12
|
+
@use "components/BevelButton";
|
|
13
|
+
@use "components/Menu";
|
|
14
|
+
@use "components/Window";
|
|
15
|
+
@use "components/Slider";
|
|
16
|
+
@use "components/Checkbox";
|
|
17
|
+
@use "components/PopUpMenu";
|
|
18
|
+
@use "components/DriveSetupList";
|
|
19
|
+
@use "components/Assistant";
|
|
20
|
+
@use "components/ProgressBar";
|
|
21
|
+
@use "components/Icon";
|
|
22
|
+
@use "components/Table";
|
|
23
|
+
@use "components/QuickTimeMovieEmbed";
|
|
24
|
+
@use "components/StartupScreen";
|
|
25
|
+
@use "components/ControlStrip";
|
|
26
|
+
@use "components/Desktop";
|
|
27
|
+
@use "components/Tabs";
|
|
28
|
+
@use "components/DesktopIcon";
|
|
29
|
+
@use "components/HyperCard";
|
|
30
|
+
@use "components/FileInput";
|
|
31
|
+
@use "components/Meter";
|
|
32
|
+
@use "components/Output";
|
|
33
|
+
@use "components/Placard";
|
|
34
|
+
@use "components/SplitView";
|
|
35
|
+
@use "components/WindowFrame";
|
|
36
|
+
|
|
37
|
+
@include package.classicy-package("platinum") {
|
|
38
|
+
// The package root's custom properties, on the root itself.
|
|
39
|
+
@include assets.platinum-root-properties;
|
|
40
|
+
@include Alert.alert;
|
|
41
|
+
@include Button.button;
|
|
42
|
+
@include BevelButton.bevelButton;
|
|
43
|
+
@include Menu.menu;
|
|
44
|
+
@include Window.window;
|
|
45
|
+
@include Slider.slider;
|
|
46
|
+
@include Checkbox.checkbox;
|
|
47
|
+
@include PopUpMenu.popUpMenu;
|
|
48
|
+
@include DriveSetupList.driveSetupList;
|
|
49
|
+
@include Assistant.assistant;
|
|
50
|
+
@include ProgressBar.progressBar;
|
|
51
|
+
@include Icon.icon;
|
|
52
|
+
@include Table.table;
|
|
53
|
+
@include QuickTimeMovieEmbed.quickTimeMovieEmbed;
|
|
54
|
+
@include StartupScreen.startupScreen;
|
|
55
|
+
@include ControlStrip.controlStrip;
|
|
56
|
+
@include Desktop.desktop;
|
|
57
|
+
// Out of bundle order (ClassicyTabs.scss bundles before ClassicyDesktop.scss):
|
|
58
|
+
// the tab scroller re-asserts its hidden scroll bar after the desktop's.
|
|
59
|
+
@include Tabs.tabs;
|
|
60
|
+
@include DesktopIcon.desktopIcon;
|
|
61
|
+
@include HyperCard.hyperCard;
|
|
62
|
+
@include FileInput.fileInput;
|
|
63
|
+
@include Meter.meter;
|
|
64
|
+
@include Output.output;
|
|
65
|
+
@include Placard.placard;
|
|
66
|
+
@include SplitView.splitView;
|
|
67
|
+
@include WindowFrame.windowFrame;
|
|
68
|
+
}
|