PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.9
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.9
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 0.8.6 All 33 releases
desktop-mode / assets / js / widget-notes.css

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

210 lines 4.4 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
162 ------------------------------------------------------------------ */
163
164 .dm-notes-pad__footer {
165 display: flex;
166 flex-direction: column;
167 gap: 8px;
168 /* Breathing room under the sheet: the swatch row sat close enough
169 to the paper's bottom edge to read as part of it. */
170 margin-block-start: 8px;
171 }
172
173 .dm-notes-pad__swatches {
174 display: flex;
175 gap: 8px;
176 justify-content: center;
177 }
178
179 .dm-notes-pad__swatch {
180 width: 18px;
181 height: 18px;
182 padding: 0;
183 border: none;
184 border-radius: 50%;
185 background: var(--dm-note-paper);
186 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
187 cursor: pointer;
188 transition: transform 140ms ease-out;
189 }
190
191 .dm-notes-pad__swatch:hover {
192 transform: scale(1.2);
193 }
194
195 .dm-notes-pad__swatch.is-selected {
196 box-shadow:
197 inset 0 0 0 2px rgba(255, 255, 255, 0.85),
198 0 1px 2px rgba(0, 0, 0, 0.35);
199 transform: scale(1.1);
200 }
201
202 .dm-notes-pad__swatch:focus-visible {
203 outline: 2px solid var(--wp-admin-theme-color, #3858e9);
204 outline-offset: 2px;
205 }
206
207 .dm-notes-pad--unavailable {
208 opacity: 0.6;
209 }
210