Spaces:
Running
Running
File size: 11,798 Bytes
c2f5104 edb06c9 3f16280 edb06c9 3f16280 edb06c9 3f16280 edb06c9 3f16280 edb06c9 3f16280 edb06c9 9a9a400 edb06c9 a9a1599 edb06c9 c2f5104 2ce99ee c2f5104 |
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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
:root {
--primary-color: #7c2a4a;
--header-height: 64px;
--footer-height: 48px;
--sidebar-width: 320px;
}
[data-theme="dark"] {
--primary-color: #fca5a5;
}
/* Page Layout Specifics - Can't be fully done with Tailwind utilities */
.page {
width: 892px;
height: 1261px;
/* Default white bg handled by class in HTML */
}
/* Design Mode Styles */
body.design-mode .field {
cursor: grab;
border: 1px dashed #3b82f6 !important;
background: rgba(59, 130, 246, 0.1);
min-width: 20px;
min-height: 1em;
}
body.design-mode .field:hover {
background: rgba(59, 130, 246, 0.2);
}
body.design-mode .field.selected {
border: 2px solid #10b981 !important;
background: rgba(16, 185, 129, 0.1);
z-index: 50;
}
body.design-mode .page {
box-shadow: 0 0 0 1px #3b82f6;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.5);
}
.dark ::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
}
.dark ::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
}
/* PDF Canvas */
.pdf-page-wrapper {
background: white;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
/* Form Styles */
.form-input {
@apply w-full px-3 py-2 border border-slate-300 dark:border-slate-600 rounded-lg bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors;
}
.btn-primary {
@apply px-4 py-2 bg-gradient-to-r from-blue-600 to-indigo-600 text-white font-medium rounded-lg hover:shadow-lg hover:scale-[1.02] transition-all flex items-center gap-2;
}
.btn-secondary {
@apply px-4 py-2 bg-slate-100 dark:bg-slate-700 text-slate-800 dark:text-slate-200 font-medium rounded-lg hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors;
}
/* Utility transitions */
.transition-height {
transition: height 0.3s ease-in-out;
}
/* File upload wrapper */
.file-upload-wrapper {
position: relative;
overflow: hidden;
display: inline-block;
width: 100%;
}
.file-upload-wrapper input[type=file] {
position: absolute;
left: 0;
top: 0;
opacity: 0;
width: 100%;
height: 100%;
cursor: pointer;
}
/* Hide elements for print */
@media print {
.no-print {
display: none !important;
}
.page {
margin: 0 !important;
box-shadow: none !important;
page-break-after: always;
}
}
/* Creative enhancements */
.page {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
transform-style: preserve-3d;
perspective: 1000px;
}
.page:hover {
transform: translateY(-2px) rotateX(2deg);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.field {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.field::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
transform: translateX(-100%);
transition: transform 0.6s ease;
}
.field:hover::after {
transform: translateX(100%);
}
/* Animated gradient background for pages */
.page::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
opacity: 0;
transition: opacity 0.3s ease;
z-index: -1;
}
body.design-mode .page:hover::before {
opacity: 0.05;
}
/* Dynamic shadow effects */
.shadow-2xl.page {
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* Floating animation for buttons */
.btn-primary, .btn-secondary, .action-btn, .icon-btn {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
transform: translateZ(0);
}
.btn-primary:hover, .btn-secondary:hover, .action-btn:hover, .icon-btn:hover {
transform: translateY(-3px) scale(1.05);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.btn-primary:active, .btn-secondary:active, .action-btn:active, .icon-btn:active {
transform: translateY(-1px) scale(1.02);
}
/* Rainbow gradient animation for special elements */
@keyframes rainbow {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.btn-primary {
background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981);
background-size: 400% 400%;
animation: rainbow 8s ease infinite;
}
/* Neumorphic design for cards and containers */
.neumorphic {
background: #e0e5ec;
border-radius: 20px;
box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
}
[data-theme="dark"] .neumorphic {
background: #1a1f29;
box-shadow: 9px 9px 16px #0d1016, -9px -9px 16px #272d42;
}
/* Glowing effect for interactive elements */
.glow {
animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
from { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
to { box-shadow: 0 0 20px rgba(59, 130, 246, 0.9), 0 0 30px rgba(59, 130, 246, 0.6); }
}
/* Text shine effect */
.text-shine {
background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
background-size: 200% auto;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: shine 3s linear infinite;
}
@keyframes shine {
to { background-position: 200% center; }
}
/* Morphing blob animation */
@keyframes morph {
0% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
50% { border-radius: 60% 40% 20% 80% / 80% 20% 60% 40%; }
100% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
}
.blob {
animation: morph 8s ease-in-out infinite;
background: linear-gradient(45deg, #3b82f6, #8b5cf6);
transition: all 0.5s ease;
}
/* Parallax effect for backgrounds */
.parallax-bg {
background-attachment: fixed;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
/* Animated particles effect */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}
.floating {
animation: float 6s ease-in-out infinite;
}
/* Bounce animation for notifications */
@keyframes bounce {
0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
40%, 43% { transform: translate3d(0, -30px, 0); }
70% { transform: translate3d(0, -15px, 0); }
90% { transform: translate3d(0, -4px, 0); }
}
.bounce {
animation: bounce 2s ease-in-out infinite;
}
/* Add these classes to your elements for creative effects */
.creative-title {
@apply text-shine text-3xl font-bold;
}
.creative-card {
@apply neumorphic p-6 hover:glow transition-all duration-300;
}
.creative-btn {
@apply btn-primary floating;
}
/* Animated background patterns */
.pattern-dots {
background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
background-size: 20px 20px;
animation: slide 20s linear infinite;
}
@keyframes slide {
0% { background-position: 0 0; }
100% { background-position: 20px 20px; }
}
/* Glitch effect for special moments */
.glitch {
animation: glitch 1s linear infinite;
}
@keyframes glitch {
2%,64% { transform: translate(2px, 0) skew(0deg); }
4%,60% { transform: translate(-2px, 0) skew(0deg); }
62% { transform: translate(0, 0) skew(5deg); }
}
/* Creative field styling */
.field {
font-family: 'Comic Neue', cursive;
font-weight: 700;
background: linear-gradient(45deg, #f59e0b, #f97316);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 200% 200%;
animation: rainbow 3s ease infinite;
}
/* Design Mode Enhancement */
body.design-mode .field {
cursor: grab;
border: 1px dashed #3b82f6 !important;
background: rgba(59, 130, 246, 0.1);
min-width: 20px;
min-height: 1em;
}
body.design-mode .field:hover {
background: rgba(59, 130, 246, 0.2);
}
body.design-mode .field.selected {
border: 2px solid #10b981 !important;
background: rgba(16, 185, 129, 0.1);
z-index: 50;
}
body.design-mode .page {
box-shadow: 0 0 0 1px #3b82f6;
}
/* Layout Management Styles */
#sidebar-design .form-control {
@apply w-full px-3 py-2 border border-slate-300 dark:border-slate-600 rounded-lg bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors;
}
#sidebar-design .form-control:focus {
@apply border-blue-500 ring-2 ring-blue-500;
}
/* Import/Export buttons */
#sidebar-design label[for="layout-import"] {
@apply cursor-pointer hover:bg-blue-50 dark:hover:bg-blue-900/30 transition-colors;
}
/* Property controls styling */
#field-controls .form-group {
@apply mb-4;
}
#field-controls label {
@apply block text-xs font-bold text-slate-500 dark:text-slate-400 uppercase mb-2;
}
#field-controls input[type="number"],
#field-controls select,
#field-controls input[type="color"] {
@apply w-full;
}
/* Layout name input */
#layout-name-input {
@apply font-mono text-sm;
}
/* Success feedback for saved layouts */
@keyframes saved-pulse {
0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.saved-indicator {
animation: saved-pulse 1s;
}
/* Enhanced field selection */
body.design-mode .field.selected::before {
content: '';
position: absolute;
top: -4px;
left: -4px;
right: -4px;
bottom: -4px;
border: 2px solid #10b981;
border-radius: 4px;
pointer-events: none;
animation: selected-glow 1s ease-in-out infinite alternate;
}
@keyframes selected-glow {
from { opacity: 0.5; }
to { opacity: 1; }
}
/* Make the design panel more prominent */
#sidebar-design {
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
[data-theme="dark"] #sidebar-design {
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
/* Usage examples styling */
.usage-example {
@apply bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4;
}
.usage-example h4 {
@apply font-bold text-blue-800 dark:text-blue-200 mb-2;
}
.usage-example code {
@apply bg-slate-100 dark:bg-slate-800 px-2 py-1 rounded text-sm font-mono;
}
/* Make the template view more engaging */
#template-view {
perspective: 1000px;
}
#template-view > div {
transform-style: preserve-3d;
}
/* Add some creative transitions to the sidebar */
#sidebar {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
position: relative;
overflow: hidden;
}
#sidebar::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
animation: rotate 30s linear infinite;
}
@keyframes rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Make the navbar dynamic */
app-navbar::part(container) {
background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #ff6b6b);
background-size: 300% 100%;
animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
|