PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / trunk
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin vtrunk
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 / css / shortcuts.css

shortcuts.css in OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin trunk, at assets/css/shortcuts.css

134 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * Keyboard-shortcuts window.
3 *
4 * Styles the window `src/shortcuts.ts` paints. Reads the palette's
5 * tokens rather than the admin bar's, which is what lets a desktop
6 * theme reach it.
7 *
8 * Every colour resolves through `var( --os-ui-*, <literal> )`, and
9 * each literal is the pre-brand WordPress-admin value. That is the
10 * floor if the stylesheet fails to load, and it is what the Legacy
11 * snapshot collected.
12 */
13
14 .os-shortcuts {
15 padding: 20px 22px;
16 color: var( --os-ui-fg, #1d2327 );
17 font-size: 13px;
18 line-height: 1.5;
19 }
20
21 .os-shortcuts__section + .os-shortcuts__section {
22 margin-top: 22px;
23 }
24
25 .os-shortcuts__heading {
26 margin: 0 0 10px;
27 color: var( --os-ui-fg-muted, #50575e );
28 font-size: 11px;
29 font-weight: 600;
30 letter-spacing: 0.06em;
31 text-transform: uppercase;
32 }
33
34 /*
35 * The table is the one piece of content here that can outgrow a narrow
36 * window: four columns of prose. It scrolls inside its own box so the
37 * window body never scrolls sideways as a whole.
38 */
39 .os-shortcuts__scroller {
40 overflow-x: auto;
41 }
42
43 .os-shortcuts__table {
44 width: 100%;
45 border-collapse: collapse;
46 text-align: start;
47 }
48
49 .os-shortcuts__table th,
50 .os-shortcuts__table td {
51 padding: 7px 10px;
52 border-bottom: 1px solid var( --os-ui-border, rgba( 0, 0, 0, 0.08 ) );
53 vertical-align: top;
54 }
55
56 .os-shortcuts__table th {
57 color: var( --os-ui-fg-muted, #50575e );
58 font-size: 11px;
59 font-weight: 600;
60 white-space: nowrap;
61 }
62
63 .os-shortcuts__table tbody tr:last-child td {
64 border-bottom: 0;
65 }
66
67 .os-shortcuts__key-cell {
68 white-space: nowrap;
69 }
70
71 .os-shortcuts__note {
72 display: block;
73 margin-top: 3px;
74 color: var( --os-ui-fg-muted, #50575e );
75 font-size: 11px;
76 }
77
78 .os-shortcuts__list {
79 margin: 0;
80 padding: 0;
81 list-style: none;
82 }
83
84 .os-shortcuts__item {
85 display: flex;
86 gap: 12px;
87 align-items: baseline;
88 padding: 7px 0;
89 border-bottom: 1px solid var( --os-ui-border, rgba( 0, 0, 0, 0.08 ) );
90 }
91
92 .os-shortcuts__item:last-child {
93 border-bottom: 0;
94 }
95
96 .os-shortcuts__chord {
97 display: inline-flex;
98 align-items: center;
99 gap: 3px;
100 flex-shrink: 0;
101 }
102
103 .os-shortcuts__plus {
104 color: var( --os-ui-fg-muted, #50575e );
105 font-size: 10px;
106 }
107
108 .os-shortcuts__kbd {
109 display: inline-flex;
110 align-items: center;
111 justify-content: center;
112 min-width: 22px;
113 height: 20px;
114 padding: 0 5px;
115 border: 1px solid var( --os-ui-border-strong, rgba( 0, 0, 0, 0.18 ) );
116 /* Thicker bottom edge — the one cue that makes a box read as a key. */
117 border-bottom-width: 2px;
118 border-radius: 4px;
119 background: var( --os-ui-surface-elevated, #fff );
120 color: var( --os-ui-fg, #1d2327 );
121 font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
122 font-size: 11px;
123 font-weight: 600;
124 }
125
126 .os-shortcuts__description {
127 color: var( --os-ui-fg, #1d2327 );
128 }
129
130 .os-shortcuts__empty {
131 margin: 0;
132 color: var( --os-ui-fg-muted, #50575e );
133 }
134