PluginProbe
Extendify / 3.1.3
Extendify v3.1.3
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.3, at src/Toolbar/toolbar.css

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