akhaliq HF Staff commited on
Commit
421b139
·
verified ·
1 Parent(s): 7754c6d

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +71 -51
style.css CHANGED
@@ -1,76 +1,96 @@
 
1
  * {
2
- box-sizing: border-box;
3
- padding: 0;
4
- margin: 0;
5
- font-family: sans-serif;
6
  }
7
 
8
- html,
9
- body {
10
- height: 100%;
11
  }
12
 
13
- body {
14
- padding: 32px;
 
15
  }
16
 
17
- body,
18
- #container {
19
- display: flex;
20
- flex-direction: column;
21
- justify-content: center;
22
- align-items: center;
23
  }
24
 
25
- #container {
26
- position: relative;
27
- gap: 0.4rem;
28
 
29
- width: 640px;
30
- height: 640px;
31
- max-width: 100%;
32
- max-height: 100%;
 
33
 
34
- border: 2px dashed #D1D5DB;
35
- border-radius: 0.75rem;
36
- overflow: hidden;
37
- cursor: pointer;
38
- margin: 1rem;
 
 
 
 
 
 
39
 
40
- background-size: 100% 100%;
41
- background-position: center;
42
- background-repeat: no-repeat;
43
- font-size: 18px;
44
  }
45
 
46
- #upload {
47
- display: none;
 
 
 
 
 
 
48
  }
49
 
50
- svg {
51
- pointer-events: none;
52
  }
53
 
54
- #example {
55
- font-size: 14px;
56
- text-decoration: underline;
57
- cursor: pointer;
58
  }
59
 
60
- #example:hover {
61
- color: #2563EB;
 
62
  }
63
 
64
- .bounding-box {
65
- position: absolute;
66
- box-sizing: border-box;
67
- border: solid 2px;
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
69
 
70
- .bounding-box-label {
71
- color: white;
72
- position: absolute;
73
- font-size: 12px;
74
- margin: -16px 0 0 -2px;
75
- padding: 1px;
76
  }
 
1
+ /* Custom styles for enhanced UI */
2
  * {
3
+ scrollbar-width: thin;
4
+ scrollbar-color: #cbd5e1 #f1f5f9;
 
 
5
  }
6
 
7
+ *::-webkit-scrollbar {
8
+ width: 8px;
 
9
  }
10
 
11
+ *::-webkit-scrollbar-track {
12
+ background: #f1f5f9;
13
+ border-radius: 4px;
14
  }
15
 
16
+ *::-webkit-scrollbar-thumb {
17
+ background-color: #cbd5e1;
18
+ border-radius: 4px;
 
 
 
19
  }
20
 
21
+ *::-webkit-scrollbar-thumb:hover {
22
+ background-color: #94a3b8;
23
+ }
24
 
25
+ /* Smooth transitions */
26
+ .transition-all {
27
+ transition-property: all;
28
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
29
+ }
30
 
31
+ /* Message animations */
32
+ @keyframes fadeIn {
33
+ from {
34
+ opacity: 0;
35
+ transform: translateY(10px);
36
+ }
37
+ to {
38
+ opacity: 1;
39
+ transform: translateY(0);
40
+ }
41
+ }
42
 
43
+ #messagesArea > div {
44
+ animation: fadeIn 0.3s ease-out;
 
 
45
  }
46
 
47
+ /* Typing indicator animation */
48
+ @keyframes pulse {
49
+ 0%, 100% {
50
+ opacity: 1;
51
+ }
52
+ 50% {
53
+ opacity: 0.5;
54
+ }
55
  }
56
 
57
+ .animate-pulse {
58
+ animation: pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
59
  }
60
 
61
+ /* Enhanced button styles */
62
+ button:focus {
63
+ outline: none;
64
+ box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
65
  }
66
 
67
+ /* Textarea styles */
68
+ textarea:focus {
69
+ box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
70
  }
71
 
72
+ /* Loading animation */
73
+ @keyframes spin {
74
+ to {
75
+ transform: rotate(360deg);
76
+ }
77
+ }
78
+
79
+ .animate-spin {
80
+ animation: spin 1s linear infinite;
81
+ }
82
+
83
+ /* Responsive adjustments */
84
+ @media (max-width: 640px) {
85
+ .max-w-md {
86
+ max-width: calc(100% - 3rem);
87
+ }
88
  }
89
 
90
+ /* Gradient text effect */
91
+ .gradient-text {
92
+ background: linear-gradient(to right, #a855f7, #ec4899);
93
+ -webkit-background-clip: text;
94
+ -webkit-text-fill-color: transparent;
95
+ background-clip: text;
96
  }