@ai-stack/payloadcms
Version:
<p align="center"> <img alt="Payload AI Plugin" src="assets/payload-ai-intro.gif" width="100%" /> </p>
75 lines (61 loc) • 1.53 kB
CSS
.actions {
display: flex;
gap: 10px;
align-items: center;
opacity: 0;
visibility: hidden;
pointer-events: none;
padding: 0 5px;
margin: 0;
max-height: 0;
transition:
opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s linear 0.3s;
}
:global(.field-type.ai-plugin-active) .actions {
opacity: 1;
visibility: visible;
pointer-events: auto;
padding: 5px 0;
margin: 5px 0;
max-height: 100px;
transition:
opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
visibility 0s;
}
.actions > * {
opacity: 0;
transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
:global(.field-type.ai-plugin-active) .actions > * {
opacity: 1;
}
:global(.field-type.ai-plugin-active) .actions > *:nth-child(1) {
transition-delay: 0.05s;
}
:global(.field-type.ai-plugin-active) .actions > *:nth-child(2) {
transition-delay: 0.08s;
}
:global(.field-type.ai-plugin-active) .actions > *:nth-child(3) {
transition-delay: 0.11s;
}
:global(.field-type.ai-plugin-active) .actions > *:nth-child(4) {
transition-delay: 0.14s;
}
:global(.field-type.ai-plugin-active) .actions > *:nth-child(5) {
transition-delay: 0.17s;
}
@media (prefers-reduced-motion: no-preference) and (min-resolution: 120dpi) {
.actions,
.actions > * {
transition-duration: 0.2s;
}
}
@media (prefers-reduced-motion: reduce) {
.actions,
.actions > * {
transition-duration: 0.01ms ;
}
}