mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 15:15:17 +00:00
232 lines
4.4 KiB
CSS
232 lines
4.4 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer base {
|
|
:root {
|
|
@apply select-none bg-ui-background font-sans text-white;
|
|
}
|
|
|
|
/* Remove all focus styles */
|
|
button {
|
|
@apply outline-none ring-0;
|
|
-webkit-tap-highlight-color: transparent !important;
|
|
outline: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
button:focus {
|
|
@apply outline-none ring-0;
|
|
outline: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.pegboard {
|
|
background-image: radial-gradient(#ffffff25 1px, transparent 0);
|
|
background-color: #1b1b1f;
|
|
background-size: 36px 36px;
|
|
@apply bg-center;
|
|
}
|
|
h1 {
|
|
@apply text-3xl font-medium md:text-5xl;
|
|
}
|
|
h2 {
|
|
@apply text-2xl font-medium md:text-4xl;
|
|
}
|
|
h3 {
|
|
@apply text-xl font-medium md:text-3xl;
|
|
}
|
|
h4 {
|
|
@apply text-lg font-medium;
|
|
}
|
|
h5,
|
|
label {
|
|
@apply text-base;
|
|
}
|
|
h6 {
|
|
@apply text-sm;
|
|
}
|
|
p {
|
|
@apply text-sm font-normal;
|
|
}
|
|
a {
|
|
@apply font-medium text-primary-400 hover:text-primary-300;
|
|
}
|
|
a:visited {
|
|
@apply text-primary-600 hover:text-primary-400;
|
|
}
|
|
|
|
input {
|
|
@apply border-0 bg-ui-controls px-2 py-1 outline-none -outline-offset-2 focus:outline-primary-500 focus:ring-0;
|
|
}
|
|
|
|
textarea {
|
|
@apply bg-ui-controls placeholder:text-white/50;
|
|
|
|
/* Webkit scrollbar styles */
|
|
&::-webkit-scrollbar {
|
|
@apply w-1;
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
@apply bg-transparent;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
@apply rounded-full bg-white/20 hover:bg-white/30;
|
|
}
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.gradient-blur {
|
|
@apply pointer-events-none absolute rounded-full opacity-30 blur-[100px];
|
|
z-index: 0;
|
|
}
|
|
|
|
.dotted-pattern {
|
|
background-image: radial-gradient(
|
|
circle at 1px 1px,
|
|
rgb(255 255 255 / 0.25) 1px,
|
|
transparent 0
|
|
);
|
|
background-size: 40px 40px;
|
|
}
|
|
|
|
.gradient-text {
|
|
@apply animate-gradient bg-clip-text text-transparent;
|
|
-webkit-background-clip: text;
|
|
background-image: linear-gradient(
|
|
to right,
|
|
#e66462,
|
|
#1cb6be,
|
|
#4e00c2,
|
|
#e66462
|
|
);
|
|
background-size: 300% auto;
|
|
}
|
|
|
|
.highlight-button {
|
|
@apply relative;
|
|
background: linear-gradient(
|
|
120deg,
|
|
theme("colors.primary.50/10") 0%,
|
|
theme("colors.primary.50/10") 40%,
|
|
theme("colors.primary.100/50") 45%,
|
|
theme("colors.primary.50/10") 50%,
|
|
theme("colors.primary.50/10") 100%
|
|
);
|
|
background-size: 200% 100%;
|
|
background-position: 100% 0;
|
|
animation: highlight-sweep 3s infinite linear;
|
|
}
|
|
|
|
.glass {
|
|
@apply relative border border-ui-border shadow-lg backdrop-blur-xl transition-colors duration-300;
|
|
@apply bg-ui-controls/50 hover:bg-ui-controls/90 !important;
|
|
}
|
|
}
|
|
|
|
@keyframes glow {
|
|
0%,
|
|
100% {
|
|
box-shadow: 0 0 8px 2px rgba(var(--color-primary-500-rgb), 0.5);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 12px 4px rgba(var(--color-primary-500-rgb), 0.7);
|
|
}
|
|
}
|
|
|
|
/* Custom animations */
|
|
@keyframes float {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0) rotate(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-20px) rotate(2deg);
|
|
}
|
|
}
|
|
|
|
@keyframes float-delayed {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0) rotate(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-20px) rotate(-2deg);
|
|
}
|
|
}
|
|
|
|
@keyframes float-slow {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
50% {
|
|
transform: translateY(-10px) scale(1.05);
|
|
}
|
|
}
|
|
|
|
.animate-float {
|
|
animation: float 8s ease-in-out infinite;
|
|
}
|
|
|
|
.animate-float-delayed {
|
|
animation: float-delayed 9s ease-in-out infinite 1s;
|
|
}
|
|
|
|
.animate-float-slow {
|
|
animation: float-slow 10s ease-in-out infinite 2s;
|
|
}
|
|
|
|
@keyframes gradient {
|
|
0% {
|
|
background-position: 0% 50%;
|
|
}
|
|
100% {
|
|
background-position: 300% 50%;
|
|
}
|
|
}
|
|
|
|
.animate-gradient {
|
|
animation: gradient 4s linear infinite;
|
|
background-size: 300% auto;
|
|
}
|
|
|
|
@keyframes highlight-sweep {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
.react-colorful__saturation {
|
|
margin: 16px 0;
|
|
border-radius: 10px !important;
|
|
border-bottom: none !important;
|
|
}
|
|
|
|
.react-colorful__saturation-pointer {
|
|
width: 24px !important;
|
|
height: 24px !important;
|
|
}
|
|
|
|
.react-colorful__hue,
|
|
.react-colorful__alpha {
|
|
height: 20px !important;
|
|
border-radius: 50px !important;
|
|
}
|
|
|
|
.react-colorful__hue {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.react-colorful__hue-pointer,
|
|
.react-colorful__alpha-pointer {
|
|
width: 20px !important;
|
|
height: 20px !important;
|
|
}
|