visual-spending/styles.css
2025-03-19 22:47:33 +03:00

148 lines
2.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.month-selector {
display: flex;
align-items: center;
gap: 10px;
}
#month-select {
padding: 8px;
border-radius: 4px;
border: 1px solid #ddd;
}
.content-wrapper {
display: flex;
position: relative;
}
#chart-container {
width: 100%;
height: 80vh;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#details-box {
position: absolute;
top: 10px;
right: 20px;
width: 280px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
padding: 15px;
z-index: 10;
min-height: 200px;
max-height: 500px;
overflow-y: auto;
opacity: 0.95;
border: 1px solid #eee;
}
#details-box h3 {
margin-bottom: 10px;
color: #444;
font-size: 16px;
border-bottom: 1px solid #eee;
padding-bottom: 5px;
}
#details-box h4 {
margin: 10px 0 5px;
color: #555;
font-size: 14px;
}
.details-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid #eee;
}
.hover-name {
font-weight: bold;
color: #333;
word-break: break-word;
flex: 1;
display: flex;
align-items: center;
}
.hover-amount {
font-size: 16px;
color: #0066cc;
font-weight: bold;
margin-left: 10px;
white-space: nowrap;
text-align: left;
min-width: 100px;
}
.color-circle {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 8px;
flex-shrink: 0;
}
#top-items {
font-size: 13px;
}
.top-item {
display: flex;
justify-content: space-between;
padding: 4px 0;
border-bottom: 1px dashed #eee;
}
.top-item:last-child {
border-bottom: none;
}
.top-item-name {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
align-items: center;
}
.top-item-amount {
margin-left: 10px;
font-weight: bold;
min-width: 100px;
text-align: left;
}