PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.2
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.2
1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 0.8.8 0.8.7 All 34 releases
desktop-mode / assets / js / widget-notes.css

widget-notes.css in OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin 1.1.2, at assets/js/widget-notes.css

241 lines 5.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * OpenStation — Note Pad widget styles.
3 *
4 * The pad of pastel paper on the widget card. Consumes the shared
5 * pastel tokens (`--dm-note-*`) defined in `assets/css/notes.css`,
6 * which is always enqueued on shell pages — this file only styles
7 * the pad-specific chrome.
8 */
9
10 .dm-notes-pad {
11 display: flex;
12 flex-direction: column;
13 gap: 12px;
14 height: 100%;
15 }
16
17 /* ------------------------------------------------------------------
18 The paper stack
19 ------------------------------------------------------------------ */
20
21 .dm-notes-pad__stack {
22 position: relative;
23 flex: 1 1 auto;
24 min-height: 150px;
25 max-width: 232px;
26 width: 100%;
27 margin-inline: auto;
28 }
29
30 .dm-notes-pad__under,
31 .dm-notes-pad__sheet {
32 position: absolute;
33 inset: 0;
34 border-radius: 2px;
35 background:
36 linear-gradient(
37 174deg,
38 color-mix(in srgb, var(--dm-note-paper) 88%, #fff) 0%,
39 var(--dm-note-paper) 46%,
40 var(--dm-note-paper-deep) 100%
41 );
42 box-shadow:
43 0 1px 2px rgba(0, 0, 0, 0.18),
44 0 6px 14px -4px rgba(0, 0, 0, 0.25),
45 inset 0 1px 0 rgba(255, 255, 255, 0.35);
46 }
47
48 /* Peek sheets: pre-tinted with the next colors in the cycle. */
49 .dm-notes-pad__under {
50 pointer-events: none;
51 }
52
53 .dm-notes-pad__under--1 {
54 transform: translate(3px, 4px) rotate(1.1deg);
55 filter: brightness(0.96);
56 }
57
58 .dm-notes-pad__under--2 {
59 transform: translate(-4px, 7px) rotate(-1.6deg);
60 filter: brightness(0.92);
61 }
62
63 .dm-notes-pad__sheet {
64 display: flex;
65 flex-direction: column;
66 color: var(--dm-note-ink);
67 cursor: grab;
68 transition: transform 180ms ease-out, box-shadow 180ms ease-out;
69 }
70
71 .dm-notes-pad__sheet:hover {
72 transform: translateY(-2px);
73 box-shadow:
74 0 2px 3px rgba(0, 0, 0, 0.18),
75 0 12px 22px -6px rgba(0, 0, 0, 0.3),
76 inset 0 1px 0 rgba(255, 255, 255, 0.35);
77 }
78
79 /* Torn off — the DragManager stamps its source class at lift. */
80 .dm-notes-pad__sheet.os-file-tile--dragging {
81 visibility: hidden;
82 }
83
84 /* The glued top edge of the pad. */
85 .dm-notes-pad__peel {
86 flex: 0 0 22px;
87 display: flex;
88 align-items: center;
89 justify-content: center;
90 background: linear-gradient(
91 to bottom,
92 rgba(255, 255, 255, 0.4),
93 rgba(0, 0, 0, 0.05)
94 );
95 border-radius: 2px 2px 0 0;
96 }
97
98 .dm-notes-pad__peel-hint {
99 font-size: 11px;
100 letter-spacing: 0.02em;
101 color: var(--dm-note-ink-soft);
102 opacity: 0;
103 transition: opacity 180ms ease-out;
104 }
105
106 .dm-notes-pad__sheet:hover .dm-notes-pad__peel-hint {
107 opacity: 1;
108 }
109
110 .dm-notes-pad__editor {
111 flex: 1 1 auto;
112 padding: 4px 12px 26px;
113 cursor: text;
114 font-family: var(--dm-note-hand-font);
115 }
116
117 .dm-notes-pad__editor::part(textarea) {
118 background: transparent;
119 border: none;
120 box-shadow: none;
121 color: var(--dm-note-ink);
122 caret-color: var(--dm-note-ink);
123 font-family: var(--dm-note-hand-font);
124 font-size: 14px;
125 line-height: 1.45;
126 }
127
128 /* Folded bottom-right corner — the underside peeks the NEXT color. */
129 .dm-notes-pad__corner {
130 position: absolute;
131 right: 0;
132 bottom: 0;
133 width: 26px;
134 height: 26px;
135 padding: 0;
136 border: none;
137 background:
138 linear-gradient(
139 315deg,
140 var(--dm-note-paper) 0%,
141 var(--dm-note-paper-deep) 46%,
142 rgba(0, 0, 0, 0.12) 50%,
143 transparent 52%
144 );
145 border-bottom-right-radius: 2px;
146 cursor: pointer;
147 filter: drop-shadow(-1px -1px 1px rgba(0, 0, 0, 0.08));
148 transition: transform 160ms ease-out;
149 }
150
151 .dm-notes-pad__corner:hover {
152 transform: scale(1.15);
153 }
154
155 .dm-notes-pad__corner:focus-visible {
156 outline: 2px solid var(--wp-admin-theme-color, #3858e9);
157 outline-offset: 2px;
158 }
159
160 /* ------------------------------------------------------------------
161 Footer: swatch dots, public toggle, pin button
162 ------------------------------------------------------------------ */
163
164 .dm-notes-pad__footer {
165 display: flex;
166 flex-direction: column;
167 gap: 8px;
168 }
169
170 .dm-notes-pad__swatches {
171 display: flex;
172 gap: 8px;
173 justify-content: center;
174 }
175
176 .dm-notes-pad__swatch {
177 width: 18px;
178 height: 18px;
179 padding: 0;
180 border: none;
181 border-radius: 50%;
182 background: var(--dm-note-paper);
183 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
184 cursor: pointer;
185 transition: transform 140ms ease-out;
186 }
187
188 .dm-notes-pad__swatch:hover {
189 transform: scale(1.2);
190 }
191
192 .dm-notes-pad__swatch.is-selected {
193 box-shadow:
194 inset 0 0 0 2px rgba(255, 255, 255, 0.85),
195 0 1px 2px rgba(0, 0, 0, 0.35);
196 transform: scale(1.1);
197 }
198
199 .dm-notes-pad__swatch:focus-visible {
200 outline: 2px solid var(--wp-admin-theme-color, #3858e9);
201 outline-offset: 2px;
202 }
203
204 .dm-notes-pad__public {
205 font-size: 11px;
206 /* The widget card is dark glass; the component's default
207 --os-ui-fg is near-black and disappears on it. */
208 --os-ui-fg: rgba(255, 255, 255, 0.85);
209 align-self: center;
210 }
211
212 .dm-notes-pad__pin-btn {
213 align-self: center;
214 padding: 4px 14px;
215 border: none;
216 border-radius: 999px;
217 background: var(--wp-admin-theme-color, #3858e9);
218 color: #fff;
219 font-size: 12px;
220 cursor: pointer;
221 transition: filter 140ms ease-out;
222 }
223
224 .dm-notes-pad__pin-btn:hover:not(:disabled) {
225 filter: brightness(1.1);
226 }
227
228 .dm-notes-pad__pin-btn:disabled {
229 opacity: 0.5;
230 cursor: default;
231 }
232
233 .dm-notes-pad__pin-btn:focus-visible {
234 outline: 2px solid var(--wp-admin-theme-color, #3858e9);
235 outline-offset: 2px;
236 }
237
238 .dm-notes-pad--unavailable {
239 opacity: 0.6;
240 }
241