PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
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 / Agent / agent.css

agent.css in Extendify 3.2.1, at src/Agent/agent.css

201 lines 5.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @import "tailwindcss" source(none) important;
2 @import "../tailwind.css" source(none);
3 @source ".";
4
5 :root {
6 color-scheme: only light;
7 }
8
9 @layer components {
10 /* Theme variations like hong-kong and tokyo uppercase every heading. */
11 .extendify-agent-markdown :is(h1, h2, h3, h4) {
12 @apply font-sans! normal-case! tracking-normal! text-gray-900!;
13 }
14 .extendify-agent-markdown h1 {
15 @apply mb-2! mt-0! text-2xl! font-bold!;
16 }
17 .extendify-agent-markdown h2 {
18 @apply mb-2! mt-0! text-xl! font-semibold!;
19 }
20 .extendify-agent-markdown h3 {
21 @apply mb-1! mt-0! text-lg! font-semibold!;
22 }
23 .extendify-agent-markdown h4 {
24 @apply mb-0.5! mt-0! text-base! font-semibold!;
25 }
26 .extendify-agent-markdown p {
27 @apply m-0! mb-2! text-sm! leading-relaxed! text-gray-900!;
28 }
29 .extendify-agent-markdown ul {
30 @apply my-2! list-disc! pl-2! text-sm! text-gray-900!;
31 }
32 .extendify-agent-markdown ol {
33 @apply my-2! list-decimal! pl-2! text-sm! text-gray-900!;
34 }
35 .extendify-agent-markdown li {
36 @apply mb-1! text-sm! text-gray-900!;
37 }
38 .extendify-agent-markdown pre {
39 @apply my-2! overflow-x-auto! rounded-sm! bg-gray-100! p-2! text-sm! text-gray-900!;
40 white-space: pre;
41 }
42 .extendify-agent-markdown pre code {
43 @apply bg-transparent! p-0! font-mono! text-xs! text-gray-900!;
44 white-space: pre;
45 }
46 .extendify-agent-markdown blockquote {
47 @apply my-2! border-l-4! border-gray-300! pl-4! text-sm! italic! text-gray-600!;
48 }
49 .extendify-agent-markdown a {
50 @apply text-sm! text-blue-600! underline! transition-colors! hover:text-blue-800!;
51 }
52 }
53 .extendify-gradient-animation {
54 background-image: linear-gradient(
55 to right,
56 #fff 0%,
57 #fff 20%,
58 #3858e9 40%,
59 #7b90ff 55%,
60 #2145e6 80%,
61 #fff 90%,
62 #fff 100%
63 );
64 background-size: 500% 100%;
65 color: transparent;
66 background-clip: text;
67 -webkit-background-clip: text;
68 animation: extendify-gradient-animation 1.5s linear forwards;
69 }
70 @keyframes extendify-gradient-animation {
71 0% {
72 background-position: 100% 50%;
73 }
74 100% {
75 background-position: 0% 50%;
76 }
77 }
78
79 /* animation-delay only spaces the first pass, so the hold is in the keyframes. */
80 .status-animation {
81 /* On a full-width block the band sweeps mostly past the centered text. */
82 display: inline-block;
83 background-image: linear-gradient(
84 to right,
85 var(--color-gray-900) 0% 40%,
86 var(--color-gray-600) 50%,
87 var(--color-gray-900) 60% 100%
88 );
89 background-size: 250% 100%;
90 color: transparent;
91 background-clip: text;
92 -webkit-background-clip: text;
93 animation: extendify-status-animation 2s linear 1s infinite;
94 }
95 @keyframes extendify-status-animation {
96 0% {
97 background-position: 100% 50%;
98 }
99 50%,
100 100% {
101 background-position: 0% 50%;
102 }
103 }
104
105 body.extendify-agent-mobile-btn-open #site-editor {
106 min-height: calc(
107 100% -
108 var(--extendify-agent-mobile-btn-height, 64px)
109 ) !important;
110 height: calc(
111 100vh -
112 var(--extendify-agent-mobile-btn-height, 64px)
113 ) !important;
114 }
115 body.extendify-agent-mobile-btn-open .block-editor-block-inspector {
116 padding-bottom: var(--extendify-agent-mobile-btn-height, 64px);
117 }
118 body.extendify-agent-mobile-btn-open
119 .edit-site
120 .components-editor-notices__snackbar {
121 bottom: calc(
122 var(--extendify-agent-mobile-btn-height, 64px) +
123 16px
124 ) !important;
125 }
126 /* no-prefix */
127 .extendify-agent-highlighter-mode {
128 user-select: none !important;
129 }
130 /* While the agent is running a workflow against the selected block,
131 * communicate "you can't click anything else right now." Resting cursor
132 * is owned by edit mode's cursor contract (quick-edit.css). */
133 /* no-prefix */
134 .extendify-agent-highlighter-mode.extendify-agent-busy {
135 cursor: not-allowed !important;
136 }
137 /* The `*` is load-bearing: crosshair sits on the blocks, not on this root. */
138 /* no-prefix */
139 .extendify-agent-working,
140 .extendify-agent-working * {
141 cursor: wait !important;
142 }
143 /* Ignore button block if inside buttons and only one button */
144 /* no-prefix */
145 .extendify-agent-highlighter-mode .wp-block-buttons:has(> .wp-block-button):not(
146 :has(> .wp-block-button:nth-of-type(2))
147 )
148 > .wp-block-button {
149 pointer-events: none !important;
150 }
151 /* no-prefix */
152 .extendify-agent-highlighter-mode .wp-block-spacer {
153 pointer-events: none !important;
154 }
155 /* WP's lightbox img listens for clicks at the page level; suppress here
156 * because the capture-phase selector handler in hover-bar otherwise has
157 * to compete with the lightbox opening. Anchors / buttons / role=button
158 * keep their default pointer-events so the click rule can route them
159 * (anchors navigate, form controls focus). */
160 /* no-prefix */
161 .extendify-agent-highlighter-mode .wp-lightbox-container img {
162 pointer-events: none !important;
163 }
164 /* no-prefix */
165 body.extendify-agent-canvas-blurred {
166 --extendify-canvas-blur: 3px;
167 }
168 /* Blurring the wp-block-* descendants instead would compound at every level. */
169 /* no-prefix */
170 .extendify-agent-canvas-open .wp-site-blocks > header,
171 .extendify-agent-canvas-open .wp-site-blocks > main,
172 .extendify-agent-canvas-open .wp-site-blocks > footer,
173 /* Leaves only: a filter re-anchors fixed children — the bar, the menu backdrop. */
174 .extendify-agent-canvas-open #adminmenuback,
175 .extendify-agent-canvas-open #adminmenuwrap,
176 .extendify-agent-canvas-open #wpbody,
177 .extendify-agent-canvas-open #wpfooter,
178 .extendify-agent-canvas-open #wpadminbar,
179 .extendify-agent-canvas-open [data-extendify-agent-emptied],
180 .extendify-agent-canvas-open #extendify-toolbar {
181 filter: blur(var(--extendify-canvas-blur, 0px));
182 transition: filter 300ms ease-in-out;
183 }
184
185 /* no-prefix */
186 .extendify-agent-canvas-dims-agent [data-extendify-agent-panel] {
187 filter: blur(var(--extendify-canvas-blur, 0px));
188 transition: filter 300ms ease-in-out;
189 }
190
191 /* Below 783px the sidebar unmounts, and an offset left behind strands the bar. */
192 /* 384 and 8 mirror Skeleton::printStyles; drift shows up as a jump on mount. */
193 @media (min-width: 783px) {
194 /* no-prefix */
195 html.extendify-agent-docked #wpadminbar {
196 margin: 8px 8px 0 384px;
197 max-width: calc(100% - 392px);
198 border-radius: 8px 8px 0 0;
199 }
200 }
201