Spaces:
Paused
Paused
Update styles.css
Browse files- styles.css +130 -0
styles.css
CHANGED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* styles.css */
|
| 2 |
+
|
| 3 |
+
::-webkit-scrollbar {
|
| 4 |
+
width: 4px;
|
| 5 |
+
}
|
| 6 |
+
::-webkit-scrollbar-track {
|
| 7 |
+
background: #f1f1f1;
|
| 8 |
+
}
|
| 9 |
+
::-webkit-scrollbar-thumb {
|
| 10 |
+
background: #4a6fdc;
|
| 11 |
+
border-radius: 3px;
|
| 12 |
+
}
|
| 13 |
+
::-webkit-scrollbar-thumb:hover {
|
| 14 |
+
background: #3a5bc7;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.trend-card:hover {
|
| 18 |
+
transform: translateY(-2px);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.dmim-bg { background-color: #4a6fdc; }
|
| 22 |
+
|
| 23 |
+
* {
|
| 24 |
+
/* These user-select properties are generally not recommended for web apps
|
| 25 |
+
as they hinder user interaction (e.g., copying text).
|
| 26 |
+
Consider removing them unless you have a very specific reason.
|
| 27 |
+
*/
|
| 28 |
+
-webkit-user-select: none;
|
| 29 |
+
-moz-user-select: none;
|
| 30 |
+
-ms-user-select: none;
|
| 31 |
+
user-select: none;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
@keyframes fadeIn {
|
| 35 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 36 |
+
to { opacity: 1; transform: translateY(0); }
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.explainer-animate {
|
| 40 |
+
animation: fadeIn 0.3s ease-out forwards;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.percentage-up {
|
| 44 |
+
color: #10b981;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.percentage-down {
|
| 48 |
+
color: #ef4444;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.percentage-neutral {
|
| 52 |
+
color: #6b7280;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.sentiment-positive {
|
| 56 |
+
background-color: rgba(16, 185, 129, 0.1);
|
| 57 |
+
border-left: 3px solid #10b981;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.sentiment-negative {
|
| 61 |
+
background-color: rgba(239, 68, 68, 0.1);
|
| 62 |
+
border-left: 3px solid #ef4444;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.sentiment-neutral {
|
| 66 |
+
background-color: rgba(156, 163, 175, 0.1);
|
| 67 |
+
border-left: 3px solid #9ca3af;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.sentiment-slider::-webkit-slider-thumb {
|
| 71 |
+
-webkit-appearance: none;
|
| 72 |
+
appearance: none;
|
| 73 |
+
width: 20px;
|
| 74 |
+
height: 20px;
|
| 75 |
+
border-radius: 50%;
|
| 76 |
+
cursor: pointer;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
.sentiment-slider.positive::-webkit-slider-thumb {
|
| 80 |
+
background: #10b981;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.sentiment-slider.negative::-webkit-slider-thumb {
|
| 84 |
+
background: #ef4444;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.sentiment-slider.neutral::-webkit-slider-thumb {
|
| 88 |
+
background: #6b7280;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
/* Floating button styles */
|
| 92 |
+
.floating-btn {
|
| 93 |
+
position: fixed;
|
| 94 |
+
bottom: 80px;
|
| 95 |
+
right: 20px;
|
| 96 |
+
width: 50px;
|
| 97 |
+
height: 50px;
|
| 98 |
+
border-radius: 50%;
|
| 99 |
+
background-color: #4a6fdc;
|
| 100 |
+
color: white;
|
| 101 |
+
display: flex;
|
| 102 |
+
align-items: center;
|
| 103 |
+
justify-content: center;
|
| 104 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 105 |
+
z-index: 40;
|
| 106 |
+
cursor: pointer;
|
| 107 |
+
transition: all 0.3s ease;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.floating-btn:hover {
|
| 111 |
+
transform: scale(1.1);
|
| 112 |
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
/* Legend modal styles */
|
| 116 |
+
.legend-item {
|
| 117 |
+
display: flex;
|
| 118 |
+
align-items: center;
|
| 119 |
+
margin-bottom: 12px;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.legend-icon {
|
| 123 |
+
width: 24px;
|
| 124 |
+
height: 24px;
|
| 125 |
+
display: flex;
|
| 126 |
+
align-items: center;
|
| 127 |
+
justify-content: center;
|
| 128 |
+
margin-right: 12px;
|
| 129 |
+
flex-shrink: 0;
|
| 130 |
+
}
|