PluginProbe
Extendify / 3.1.4
Extendify v3.1.4
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Toolbar / toolbar.css

toolbar.css in Extendify 3.1.4, at src/Toolbar/toolbar.css

248 lines 5.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Simple Extendify toolbar styles. All selectors target page-level
3 * elements (the toolbar is appended to <body>, not inside a
4 * `.extendify-toolbar` wrapper), so each rule is preceded by a
5 * `/* no-prefix * /` marker the postcss scoper recognizes.
6 */
7
8 /* no-prefix */
9 #extendify-toolbar {
10 color-scheme: only light;
11 position: fixed;
12 top: 0;
13 left: 0;
14 right: 0;
15 height: 32px;
16 background: #1d2327;
17 color: #f0f0f1;
18 font-family:
19 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
20 Cantarell, "Helvetica Neue", sans-serif;
21 font-size: 13px;
22 line-height: 1;
23 z-index: 99999;
24 display: flex;
25 align-items: stretch;
26 justify-content: space-between;
27 box-sizing: border-box;
28 -webkit-font-smoothing: subpixel-antialiased;
29 transition:
30 top 300ms ease-in-out,
31 left 300ms ease-in-out,
32 right 300ms ease-in-out,
33 max-width 300ms ease-in-out,
34 border-radius 300ms ease-in-out;
35 }
36
37 /* no-prefix */
38 #extendify-toolbar *,
39 #extendify-toolbar *::before,
40 #extendify-toolbar *::after {
41 box-sizing: border-box;
42 }
43
44 /* no-prefix */
45 #extendify-toolbar .ext-tb-section {
46 display: flex;
47 align-items: stretch;
48 }
49
50 /* no-prefix */
51 #extendify-toolbar .ext-tb-btn {
52 display: inline-flex;
53 align-items: center;
54 gap: 6px;
55 height: 32px;
56 padding: 0 12px;
57 color: #f0f0f1;
58 background: transparent;
59 border: 0;
60 border-radius: 0;
61 text-decoration: none;
62 font: inherit;
63 font-size: 13px;
64 cursor: pointer;
65 white-space: nowrap;
66 letter-spacing: 0;
67 }
68
69 /* no-prefix */
70 #extendify-toolbar .ext-tb-btn:hover {
71 background: #2c3338;
72 color: #72aee6;
73 }
74
75 /* no-prefix */
76 #extendify-toolbar .ext-tb-btn:focus-visible {
77 background: #2c3338;
78 color: #72aee6;
79 outline: 0;
80 box-shadow: inset 0 0 0 2px #72aee6;
81 }
82
83 /* AI Agent — matches the "Ask AI" button blue elsewhere in
84 Extendify so the entry-point reads consistently. */
85 /* no-prefix */
86 #extendify-toolbar .ext-tb-ai-agent {
87 margin: 4px 8px 4px 4px;
88 height: 24px;
89 padding: 0 10px;
90 gap: 4px;
91 color: #ffffff;
92 background: #3858e9;
93 border-radius: 4px;
94 line-height: 1;
95 transition:
96 width 300ms ease-in-out,
97 padding 300ms ease-in-out,
98 margin 300ms ease-in-out,
99 opacity 100ms ease-in-out;
100 }
101
102 /* Mirror Extendify's native AdminBar button: collapse to nothing
103 when the docked agent sidebar is open (no point offering "open
104 agent" while the agent is already open). */
105 /* no-prefix */
106 #extendify-toolbar.ext-tb-agent-open .ext-tb-ai-agent {
107 width: 0;
108 padding: 0;
109 margin: 0;
110 opacity: 0;
111 overflow: hidden;
112 pointer-events: none;
113 }
114
115 /* no-prefix */
116 #extendify-toolbar .ext-tb-ai-agent:hover {
117 color: #ffffff;
118 background: #2145e6;
119 opacity: 1;
120 }
121
122 /* no-prefix */
123 #extendify-toolbar .ext-tb-ai-agent:focus-visible {
124 color: #ffffff;
125 outline: 0;
126 box-shadow:
127 0 0 0 2px #1d2327,
128 0 0 0 4px #ffffff;
129 }
130
131 /* no-prefix */
132 #extendify-toolbar .ext-tb-ai-agent .ext-tb-magic {
133 flex: 0 0 auto;
134 }
135
136 /* no-prefix */
137 #extendify-toolbar .ext-tb-ai-agent[disabled] {
138 opacity: 0.5;
139 cursor: default;
140 }
141
142 /* Quick Edit toggle — pill + thumb, mirrors `extendify-quick-edit-on`. */
143 /* no-prefix */
144 #extendify-toolbar .ext-tb-toggle {
145 position: relative;
146 display: inline-block;
147 width: 26px;
148 height: 14px;
149 background: #50575e;
150 border-radius: 7px;
151 transition: background 150ms ease;
152 flex: 0 0 auto;
153 }
154
155 /* no-prefix */
156 #extendify-toolbar .ext-tb-toggle-thumb {
157 position: absolute;
158 top: 2px;
159 left: 2px;
160 width: 10px;
161 height: 10px;
162 background: #ffffff;
163 border-radius: 50%;
164 transition: left 150ms ease;
165 }
166
167 /* no-prefix */
168 html.extendify-quick-edit-on #extendify-toolbar .ext-tb-toggle {
169 background: #3858e9;
170 }
171
172 /* no-prefix */
173 html.extendify-quick-edit-on #extendify-toolbar .ext-tb-toggle-thumb {
174 left: 14px;
175 }
176
177 /* Admin link external-tab indicator. */
178 /* no-prefix */
179 #extendify-toolbar .ext-tb-admin-link .ext-tb-external {
180 flex: 0 0 auto;
181 opacity: 0.7;
182 }
183
184 /* no-prefix */
185 #extendify-toolbar .ext-tb-admin-link:hover .ext-tb-external,
186 #extendify-toolbar .ext-tb-admin-link:focus-visible .ext-tb-external {
187 opacity: 1;
188 }
189
190 /* no-prefix */
191 #extendify-toolbar .screen-reader-text {
192 position: absolute !important;
193 width: 1px;
194 height: 1px;
195 padding: 0;
196 margin: -1px;
197 overflow: hidden;
198 clip: rect(0, 0, 0, 0);
199 white-space: nowrap;
200 border: 0;
201 }
202
203 /* When Extendify Agent sidebar is open, reframe the toolbar to
204 match the way Extendify reframes the core admin bar (slot it
205 next to the sidebar inside the rounded frame). */
206 /* no-prefix */
207 #extendify-toolbar.ext-tb-agent-open {
208 top: 8px;
209 left: 384px;
210 right: 8px;
211 border-radius: 8px 8px 0 0;
212 overflow: hidden;
213 }
214
215 @media screen and (max-width: 782px) {
216 /* no-prefix */
217 #extendify-toolbar {
218 height: 46px;
219 font-size: 14px;
220 }
221 /* no-prefix */
222 #extendify-toolbar .ext-tb-btn {
223 height: 46px;
224 padding: 0 10px;
225 }
226 /* no-prefix */
227 #extendify-toolbar .ext-tb-ai-agent {
228 margin: 8px 8px 8px 6px;
229 height: 30px;
230 padding: 0 10px;
231 }
232 }
233
234 /* Reduced motion (a11y M7): zero the toolbar's reframe slide, the AI-agent
235 button's collapse, and the Quick Edit toggle's pill + thumb transitions.
236 `!important` so it wins over the environment's global `prefers-reduced-motion`
237 reset (which forces a tiny non-zero duration) — see quick-edit.css for the
238 same reasoning. Page-level like every rule here, so it carries `no-prefix`. */
239 @media (prefers-reduced-motion: reduce) {
240 /* no-prefix */
241 #extendify-toolbar,
242 #extendify-toolbar .ext-tb-ai-agent,
243 #extendify-toolbar .ext-tb-toggle,
244 #extendify-toolbar .ext-tb-toggle-thumb {
245 transition: none !important;
246 }
247 }
248