| @@ -6,10 +6,11 @@ | ||
| 6 | 6 | color-scheme: only light; |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | @layer components { |
| 10 | + /* Theme variations like hong-kong and tokyo uppercase every heading. */ | |
| 10 | 11 | .extendify-agent-markdown :is(h1, h2, h3, h4) { |
| 11 | - @apply font-sans! text-gray-900!; | |
| 12 | + @apply font-sans! normal-case! tracking-normal! text-gray-900!; | |
| 12 | 13 | } |
| 13 | 14 | .extendify-agent-markdown h1 { |
| 14 | 15 | @apply mb-2! mt-0! text-2xl! font-bold!; |
| 15 | 16 | } |
| @@ -90,8 +91,41 @@ | ||
| 90 | 91 | background-clip: text; |
| 91 | 92 | -webkit-background-clip: text; |
| 92 | 93 | animation: extendify-status-animation 2s linear 1s infinite; |
| 93 | 94 | } |
| 95 | +::highlight(key) { | |
| 96 | + color: #953800; | |
| 97 | +} | |
| 98 | +::highlight(string) { | |
| 99 | + color: #116329; | |
| 100 | +} | |
| 101 | +::highlight(numeric), | |
| 102 | +::highlight(boolean), | |
| 103 | +::highlight(constant) { | |
| 104 | + color: #0550ae; | |
| 105 | +} | |
| 106 | +.status-scribble { | |
| 107 | + stroke-dasharray: 1; | |
| 108 | + stroke-dashoffset: 1; | |
| 109 | + animation: extendify-status-scribble 2.4s ease-in-out infinite; | |
| 110 | +} | |
| 111 | +@keyframes extendify-status-scribble { | |
| 112 | + 0% { | |
| 113 | + stroke-dashoffset: 1; | |
| 114 | + } | |
| 115 | + 50% { | |
| 116 | + stroke-dashoffset: 0; | |
| 117 | + } | |
| 118 | + 100% { | |
| 119 | + stroke-dashoffset: -1; | |
| 120 | + } | |
| 121 | +} | |
| 122 | +@media (prefers-reduced-motion: reduce) { | |
| 123 | + .status-scribble { | |
| 124 | + animation: none; | |
| 125 | + stroke-dashoffset: 0; | |
| 126 | + } | |
| 127 | +} | |
| 94 | 128 | @keyframes extendify-status-animation { |
| 95 | 129 | 0% { |
| 96 | 130 | background-position: 100% 50%; |
| 97 | 131 | } |
| @@ -158,5 +192,42 @@ | ||
| 158 | 192 | * (anchors navigate, form controls focus). */ |
| 159 | 193 | /* no-prefix */ |
| 160 | 194 | .extendify-agent-highlighter-mode .wp-lightbox-container img { |
| 161 | 195 | pointer-events: none !important; |
| 196 | +} | |
| 197 | +/* no-prefix */ | |
| 198 | +body.extendify-agent-canvas-blurred { | |
| 199 | + --extendify-canvas-blur: 3px; | |
| 200 | +} | |
| 201 | +/* Blurring the wp-block-* descendants instead would compound at every level. */ | |
| 202 | +/* no-prefix */ | |
| 203 | +.extendify-agent-canvas-open .wp-site-blocks > header, | |
| 204 | +.extendify-agent-canvas-open .wp-site-blocks > main, | |
| 205 | +.extendify-agent-canvas-open .wp-site-blocks > footer, | |
| 206 | +/* Leaves only: a filter re-anchors fixed children — the bar, the menu backdrop. */ | |
| 207 | +.extendify-agent-canvas-open #adminmenuback, | |
| 208 | +.extendify-agent-canvas-open #adminmenuwrap, | |
| 209 | +.extendify-agent-canvas-open #wpbody, | |
| 210 | +.extendify-agent-canvas-open #wpfooter, | |
| 211 | +.extendify-agent-canvas-open #wpadminbar, | |
| 212 | +.extendify-agent-canvas-open [data-extendify-agent-emptied], | |
| 213 | +.extendify-agent-canvas-open #extendify-toolbar { | |
| 214 | + filter: blur(var(--extendify-canvas-blur, 0px)); | |
| 215 | + transition: filter 300ms ease-in-out; | |
| 216 | +} | |
| 217 | + | |
| 218 | +/* no-prefix */ | |
| 219 | +.extendify-agent-canvas-dims-agent [data-extendify-agent-panel] { | |
| 220 | + filter: blur(var(--extendify-canvas-blur, 0px)); | |
| 221 | + transition: filter 300ms ease-in-out; | |
| 222 | +} | |
| 223 | + | |
| 224 | +/* Below 783px the sidebar unmounts, and an offset left behind strands the bar. */ | |
| 225 | +/* 384 and 8 mirror Skeleton::printStyles; drift shows up as a jump on mount. */ | |
| 226 | +@media (min-width: 783px) { | |
| 227 | + /* no-prefix */ | |
| 228 | + html.extendify-agent-docked #wpadminbar { | |
| 229 | + margin: 8px 8px 0 384px; | |
| 230 | + max-width: calc(100% - 392px); | |
| 231 | + border-radius: 8px 8px 0 0; | |
| 232 | + } | |
| 162 | 233 | } |