timeline-svg/example-1/style.css

74 lines
1 KiB
CSS
Raw Permalink Normal View History

/* Clean Timeline Example - Minimal Styling */
body {
font-family: 'Arial', 'Helvetica', sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
color: #333;
}
#svgContainer {
background: white;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
margin: 20px auto;
max-width: 100%;
overflow-x: auto;
}
/* SVG styling enhancements */
svg {
display: block;
max-width: 100%;
height: auto;
}
/* Timeline elements */
.months text {
font-family: 'Arial', sans-serif;
font-size: 11px;
fill: #666;
}
.timeline-content line {
stroke: #333;
}
.timeline-content circle {
cursor: pointer;
transition: r 0.2s ease;
}
.timeline-content circle:hover {
r: 6;
}
.timeline-content text {
font-family: 'Arial', sans-serif;
font-size: 12px;
fill: #333;
}
.item-id {
font-weight: 600;
fill: #4a90e2;
}
.item-title {
fill: #333;
}
/* Responsive container */
@media (max-width: 768px) {
body {
padding: 10px;
}
#svgContainer {
padding: 10px;
margin: 10px auto;
}
}