paper-ai-release-24-07-21/app/globals.css
2024-02-04 12:55:09 +08:00

79 lines
1.3 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 200 20% 98%;
--btn-background: 200 10% 91%;
--btn-background-hover: 200 10% 89%;
--foreground: 200 50% 3%;
}
@media (prefers-color-scheme: dark) {
:root {
--background: 200 50% 3%;
--btn-background: 200 10% 9%;
--btn-background-hover: 200 10% 12%;
--foreground: 200 20% 96%;
}
}
}
@layer base {
* {
@apply border-foreground/20;
}
}
.animate-in {
animation: animateIn 0.3s ease 0.15s both;
}
@keyframes animateIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-slide-in-right {
animation: slideInFromRight 0.5s ease-out forwards;
}
@keyframes slideInFromRight {
0% {
transform: translateX(100%); /* 从右侧外开始 */
}
100% {
transform: translateX(0); /* 完全进入视图 */
}
}
.component-container {
@apply fixed top-1/4 right-0;
transform: translateX(100%); /* 动画开始前,确保组件位于视图右侧之外 */
}
/* 想给上标添加一个鼠标放上去变手型的效果 */
.ql-editor .ql-super {
cursor: pointer;
}
@keyframes flash {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.vip-icon {
animation: flash 1s linear infinite;
}