Spaces:
Paused
Paused
File size: 1,775 Bytes
342b675 9518638 342b675 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | # aurora_css.py
aurora_css = """
/* Apply to body and panels */
body {
background: var(--app-bg) !important;
color: var(--text-color) !important;
}
.gr-dark .panel {
background-color: #2a2a3c !important;
color: white !important;
}
.dark .gradio-container .prose h1 {
color: navy;
}
/* Gradient border on focus for the container div */
.aurora-hover-gradient {
position: relative;
border-radius: inherit; /* adjust as needed */
overflow: hidden;
border: 2px solid transparent; /* invisible default border */
transition: border 0.3s ease;
}
/* Animated gradient border */
.aurora-hover-gradient::before {
content: "";
position: absolute;
inset: 0; /* cover entire container */
padding: 2px; /* thickness of the border */
border-radius: inherit;
background: linear-gradient(
120deg,
rgba(20, 232, 30, 1),
rgba(0, 234, 141, 1),
rgba(1, 126, 213, 1),
rgba(181, 61, 255, 1),
rgba(141, 0, 196, 1)
);
background-size: 400% 400%;
z-index: 0;
opacity: 0;
pointer-events: none;
-webkit-mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);
-webkit-mask-composite: destination-out;
mask-composite: exclude;
transition: opacity 0.6s ease;
animation: aurora-glass-drift 18s ease-in-out infinite;
}
/* Show border on focus */
.aurora-hover-gradient:focus-within::before {
opacity: 1;
}
/* Keep input content above the border */
.aurora-hover-gradient > * {
position: relative;
z-index: 1;
}
/* Gradient animation */
@keyframes aurora-glass-drift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
footer {
color: #8d00c4 !important;
}
footer:hover {
color: #b53dff !important;
}
""" |