Skip to content

Commit 0e43e5f

Browse files
committed
style of the box
1 parent 3e9050a commit 0e43e5f

1 file changed

Lines changed: 23 additions & 12 deletions

File tree

style.css

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,34 @@ header .repo { margin-left:auto }
6868
color: #475569;
6969
}
7070
/* make info boxes float over the map */
71-
.info-box{
71+
.info-box {
7272
position: absolute;
73-
top: 12px;
74-
left: 12px;
75-
z-index: 1000; /* above tiles */
76-
max-width: 360px;
77-
margin: 0; /* override previous margin */
78-
pointer-events: auto;
79-
background: #ffffff; /* fully opaque white */
80-
opacity: 1; /* ensure no inherited transparency */
81-
border: 1px solid #cbd5e1;
82-
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
73+
top: 14px;
74+
left: 14px;
75+
z-index: 1000;
76+
77+
max-width: 340px;
78+
padding: 0.8rem 0.9rem;
79+
80+
background: #f8fafc; /* same tone as side panel */
81+
border: 1px solid #e2e8f0; /* same border color as cards */
82+
border-radius: 0.7rem;
83+
84+
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
85+
backdrop-filter: blur(2px);
86+
87+
font-size: 0.9rem;
88+
line-height: 1.4;
8389
}
8490
.info-box b {
8591
display: block;
8692
text-align: center;
87-
margin-bottom: 0.4rem;
93+
font-size: 0.95rem;
94+
margin-bottom: 0.45rem;
95+
color: #0f172a;
96+
}
97+
.info-box:hover {
98+
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
8899
}
89100
/* landing: attach to the landing map only */
90101
#info-landing{

0 commit comments

Comments
 (0)