| 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 |
@media (min-width: 783px) { |
| 116 |
/* Without the skeleton case the collapse animates in on every load. */ |
| 117 |
/* no-prefix */ |
| 118 |
html.extendify-agent-skeleton #extendify-toolbar .ext-tb-ai-agent { |
| 119 |
width: 0; |
| 120 |
padding: 0; |
| 121 |
margin: 0; |
| 122 |
opacity: 0; |
| 123 |
overflow: hidden; |
| 124 |
pointer-events: none; |
| 125 |
} |
| 126 |
} |
| 127 |
|
| 128 |
/* no-prefix */ |
| 129 |
#extendify-toolbar .ext-tb-ai-agent:hover { |
| 130 |
color: #ffffff; |
| 131 |
background: #2145e6; |
| 132 |
opacity: 1; |
| 133 |
} |
| 134 |
|
| 135 |
/* no-prefix */ |
| 136 |
#extendify-toolbar .ext-tb-ai-agent:focus-visible { |
| 137 |
color: #ffffff; |
| 138 |
outline: 0; |
| 139 |
box-shadow: |
| 140 |
0 0 0 2px #1d2327, |
| 141 |
0 0 0 4px #ffffff; |
| 142 |
} |
| 143 |
|
| 144 |
/* no-prefix */ |
| 145 |
#extendify-toolbar .ext-tb-ai-agent .ext-tb-magic { |
| 146 |
flex: 0 0 auto; |
| 147 |
} |
| 148 |
|
| 149 |
/* no-prefix */ |
| 150 |
#extendify-toolbar .ext-tb-ai-agent[disabled] { |
| 151 |
opacity: 0.5; |
| 152 |
cursor: default; |
| 153 |
} |
| 154 |
|
| 155 |
/* Quick Edit toggle — pill + thumb, mirrors `extendify-quick-edit-on`. */ |
| 156 |
/* no-prefix */ |
| 157 |
#extendify-toolbar .ext-tb-toggle { |
| 158 |
position: relative; |
| 159 |
display: inline-block; |
| 160 |
width: 26px; |
| 161 |
height: 14px; |
| 162 |
background: #50575e; |
| 163 |
border-radius: 7px; |
| 164 |
transition: background 150ms ease; |
| 165 |
flex: 0 0 auto; |
| 166 |
} |
| 167 |
|
| 168 |
/* no-prefix */ |
| 169 |
#extendify-toolbar .ext-tb-toggle-thumb { |
| 170 |
position: absolute; |
| 171 |
top: 2px; |
| 172 |
left: 2px; |
| 173 |
width: 10px; |
| 174 |
height: 10px; |
| 175 |
background: #ffffff; |
| 176 |
border-radius: 50%; |
| 177 |
transition: left 150ms ease; |
| 178 |
} |
| 179 |
|
| 180 |
/* no-prefix */ |
| 181 |
html.extendify-quick-edit-on #extendify-toolbar .ext-tb-toggle { |
| 182 |
background: #3858e9; |
| 183 |
} |
| 184 |
|
| 185 |
/* no-prefix */ |
| 186 |
html.extendify-quick-edit-on #extendify-toolbar .ext-tb-toggle-thumb { |
| 187 |
left: 14px; |
| 188 |
} |
| 189 |
|
| 190 |
/* Admin link external-tab indicator. */ |
| 191 |
/* no-prefix */ |
| 192 |
#extendify-toolbar .ext-tb-admin-link .ext-tb-external { |
| 193 |
flex: 0 0 auto; |
| 194 |
opacity: 0.7; |
| 195 |
} |
| 196 |
|
| 197 |
/* no-prefix */ |
| 198 |
#extendify-toolbar .ext-tb-admin-link:hover .ext-tb-external, |
| 199 |
#extendify-toolbar .ext-tb-admin-link:focus-visible .ext-tb-external { |
| 200 |
opacity: 1; |
| 201 |
} |
| 202 |
|
| 203 |
/* no-prefix */ |
| 204 |
#extendify-toolbar .screen-reader-text { |
| 205 |
position: absolute !important; |
| 206 |
width: 1px; |
| 207 |
height: 1px; |
| 208 |
padding: 0; |
| 209 |
margin: -1px; |
| 210 |
overflow: hidden; |
| 211 |
clip: rect(0, 0, 0, 0); |
| 212 |
white-space: nowrap; |
| 213 |
border: 0; |
| 214 |
} |
| 215 |
|
| 216 |
/* When Extendify Agent sidebar is open, reframe the toolbar to |
| 217 |
match the way Extendify reframes the core admin bar (slot it |
| 218 |
next to the sidebar inside the rounded frame). */ |
| 219 |
/* no-prefix */ |
| 220 |
#extendify-toolbar.ext-tb-agent-open { |
| 221 |
top: 8px; |
| 222 |
left: 384px; |
| 223 |
right: 8px; |
| 224 |
border-radius: 8px 8px 0 0; |
| 225 |
overflow: hidden; |
| 226 |
} |
| 227 |
|
| 228 |
/* 783px tracks Skeleton::DESKTOP; no 384px rail below it. */ |
| 229 |
@media (min-width: 783px) { |
| 230 |
/* .ext-tb-agent-open lands only once the sidebar mounts; the rail needs it sooner. */ |
| 231 |
/* no-prefix */ |
| 232 |
html.extendify-agent-skeleton #extendify-toolbar { |
| 233 |
top: 8px; |
| 234 |
left: 384px; |
| 235 |
right: 8px; |
| 236 |
border-radius: 8px 8px 0 0; |
| 237 |
overflow: hidden; |
| 238 |
} |
| 239 |
} |
| 240 |
|
| 241 |
@media screen and (max-width: 782px) { |
| 242 |
/* no-prefix */ |
| 243 |
#extendify-toolbar { |
| 244 |
z-index: 999; |
| 245 |
height: 46px; |
| 246 |
font-size: 14px; |
| 247 |
} |
| 248 |
/* no-prefix */ |
| 249 |
#extendify-toolbar .ext-tb-btn { |
| 250 |
height: 46px; |
| 251 |
padding: 0 10px; |
| 252 |
} |
| 253 |
/* no-prefix */ |
| 254 |
#extendify-toolbar .ext-tb-ai-agent { |
| 255 |
margin: 8px 8px 8px 6px; |
| 256 |
height: 30px; |
| 257 |
padding: 0 10px; |
| 258 |
} |
| 259 |
} |
| 260 |
|
| 261 |
/* Reduced motion (a11y M7): zero the toolbar's reframe slide, the AI-agent |
| 262 |
button's collapse, and the Quick Edit toggle's pill + thumb transitions. |
| 263 |
`!important` so it wins over the environment's global `prefers-reduced-motion` |
| 264 |
reset (which forces a tiny non-zero duration) — see quick-edit.css for the |
| 265 |
same reasoning. Page-level like every rule here, so it carries `no-prefix`. */ |
| 266 |
@media (prefers-reduced-motion: reduce) { |
| 267 |
/* no-prefix */ |
| 268 |
#extendify-toolbar, |
| 269 |
#extendify-toolbar .ext-tb-ai-agent, |
| 270 |
#extendify-toolbar .ext-tb-toggle, |
| 271 |
#extendify-toolbar .ext-tb-toggle-thumb { |
| 272 |
transition: none !important; |
| 273 |
} |
| 274 |
} |
| 275 |
|