Heatmap / css /style.css
thonguyen511's picture
Fix fullscreen heatmap display for Hugging Face (latest update)
167476f
Raw History Blame Contribute Delete
6.28 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 0;
overflow: hidden;
background-color: #050505;
font-family: 'Inter', sans-serif;
color: #ffffff;
}
#canvas-container {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 1;
}
.ui-container {
position: absolute;
top: 50px;
left: 50px;
z-index: 2;
pointer-events: none;
max-width: 400px;
animation: fadeIn 2s ease-out;
}
h1 {
font-size: 3.5rem;
font-weight: 600;
margin-bottom: 10px;
background: linear-gradient(90deg, #ffffff, #88ccff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: -1px;
}
p {
font-size: 1.1rem;
font-weight: 300;
color: #a0a0a0;
margin-bottom: 30px;
line-height: 1.5;
}
.controls {
pointer-events: auto;
display: flex;
gap: 15px;
}
.btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
padding: 12px 24px;
font-size: 1rem;
font-family: 'Inter', sans-serif;
border-radius: 30px;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.btn:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.4);
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn.active {
background: rgba(88, 204, 255, 0.2);
border-color: rgba(88, 204, 255, 0.5);
color: #88ccff;
box-shadow: 0 0 15px rgba(88, 204, 255, 0.2);
}
.table-shape {
border-radius: 8px;
padding: 12px 20px;
font-weight: 600;
}
/* Top UTC Time Bar (Marquee) */
#top-time-bar {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 45px;
background: rgba(10, 10, 15, 0.7);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(88, 204, 255, 0.2);
display: flex;
align-items: center;
z-index: 10;
pointer-events: none;
overflow: hidden;
white-space: nowrap;
}
.marquee-content {
display: inline-block;
padding-left: 100%;
/* To change the marquee speed, adjust the '300s' value below (higher = slower, lower = faster) */
animation: marquee 300s linear infinite;
color: #58ccff;
font-family: monospace;
font-size: 16px;
font-weight: bold;
text-shadow: 0 0 10px rgba(88, 204, 255, 0.5);
}
@keyframes marquee {
0% { transform: translate(0, 0); }
100% { transform: translate(-100%, 0); }
}
/* Main Title */
.main-title {
position: absolute;
top: 60px;
left: 40px;
z-index: 10;
pointer-events: none;
}
.main-title h1 {
font-size: 2.2rem;
font-weight: 300;
letter-spacing: -1px;
margin-bottom: 5px;
text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
/* Speed Control (Bottom Center) */
#bottom-speed-control {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 10;
background: rgba(15, 15, 20, 0.8);
backdrop-filter: blur(10px);
padding: 15px 30px;
border-radius: 30px;
border: 1px solid rgba(88, 204, 255, 0.3);
display: flex;
align-items: center;
gap: 15px;
pointer-events: auto;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#bottom-speed-control label {
color: #a0a0a0;
font-size: 12px;
letter-spacing: 1px;
font-weight: 600;
}
#speed-value {
color: #58ccff;
font-weight: bold;
font-size: 14px;
margin-left: 5px;
}
#speed-slider {
width: 200px;
accent-color: #58ccff;
cursor: pointer;
}
/* Heatmap Overlay Styles */
#heatmap-overlay {
position: absolute;
top: 50%;
right: 50px;
transform: translateY(-50%);
width: 840px;
height: 525px;
background: rgba(15, 15, 25, 0.9);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
z-index: 15;
display: flex;
flex-direction: column;
overflow: hidden;
backdrop-filter: blur(15px);
box-shadow: 0 20px 50px rgba(0,0,0,0.8);
transition: opacity 0.3s ease, transform 0.3s ease;
pointer-events: auto;
}
#heatmap-overlay.hidden {
opacity: 0;
pointer-events: none;
transform: translateY(-50%) translateX(20px);
}
.heatmap-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: rgba(0, 0, 0, 0.5);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#heatmap-title {
font-size: 1.2rem;
font-weight: 600;
color: #fff;
margin: 0;
}
.heatmap-actions {
display: flex;
gap: 15px;
align-items: center;
}
#fullscreen-heatmap,
#close-heatmap {
background: none;
border: none;
color: #888;
cursor: pointer;
font-size: 24px;
line-height: 1;
transition: color 0.2s;
}
#fullscreen-heatmap {
font-size: 18px; /* Slightly smaller than the X */
}
#fullscreen-heatmap:hover,
#close-heatmap:hover {
color: #fff;
}
#heatmap-overlay.pseudo-fullscreen {
width: 100%;
height: 100%;
top: 0;
right: 0;
transform: none;
border-radius: 0;
background: rgba(10, 10, 15, 1);
z-index: 9999;
}
#tradingview-container {
flex: 1;
width: 100%;
min-height: 0;
display: flex;
}
/* Tooltip Styles */
#market-tooltip {
position: absolute;
background: rgba(0, 0, 0, 0.8);
color: #fff;
padding: 8px 12px;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
pointer-events: none;
z-index: 20;
border: 1px solid rgba(88, 204, 255, 0.3);
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
transition: opacity 0.1s ease;
white-space: nowrap;
}
#market-tooltip.hidden {
display: none;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
.ui-container {
top: 30px;
left: 20px;
right: 20px;
text-align: center;
max-width: none;
}
h1 {
font-size: 2.5rem;
}
.controls {
justify-content: center;
}
#heatmap-overlay {
width: calc(100vw - 40px);
height: 50vh;
bottom: 20px;
right: 20px;
}
}