Show home icon only on mobile with white background
- Home icon only appears on narrow screens (≤850px), not desktop - Added white circular background with subtle shadow for readability - Icon is larger (28px + padding) for easier touch targeting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
e29ff21747
commit
abc6ef2a9d
26
styles.css
26
styles.css
@ -179,24 +179,24 @@ body {
|
|||||||
.center-home {
|
.center-home {
|
||||||
display: none;
|
display: none;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 4px;
|
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-home svg {
|
.center-home svg {
|
||||||
width: 20px;
|
width: 28px;
|
||||||
height: 20px;
|
height: 28px;
|
||||||
color: #666;
|
color: #333;
|
||||||
transition: color 0.2s;
|
background: rgba(255, 255, 255, 0.9);
|
||||||
|
border-radius: 50%;
|
||||||
|
padding: 6px;
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
|
||||||
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-home:hover svg {
|
.center-home:hover svg {
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
background: #fff;
|
||||||
|
|
||||||
.center-label.drilled-down .center-home {
|
|
||||||
display: flex;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-amount {
|
.center-amount {
|
||||||
@ -389,7 +389,13 @@ body {
|
|||||||
|
|
||||||
/* Still show home icon on narrow screens when drilled down */
|
/* Still show home icon on narrow screens when drilled down */
|
||||||
.center-label.drilled-down {
|
.center-label.drilled-down {
|
||||||
display: block;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-label.drilled-down .center-home {
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-label.drilled-down .center-month,
|
.center-label.drilled-down .center-month,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user