Files
flask_blog/static/css/components/timeline.css
2026-03-14 20:25:07 +01:00

96 lines
2.4 KiB
CSS

/* 1. Reset the LI to ensure no Bootstrap frames/padding interfere */
li.tw-list-none {
border: none !important;
background: transparent !important;
padding-left: 0 !important; /* Forces alignment control to the Button */
margin-left: 1.5rem !important; /* This is the 'tw-ml-6' equivalent */
}
/* 2. The Precision Dot */
.timeline-button {
position: absolute;
/* MATH: The li has ml-6 (1.5rem).
To center a 0.75rem dot on the line at the edge of that margin:
We move it left by (1.5rem + half the dot width). */
left: -1.9rem !important;
top: 0.25rem;
width: 0.75rem;
height: 0.75rem;
border-radius: 9999px;
background: #d1d5db;
display: flex;
align-items: center;
justify-content: center;
/* This creates the 'gap' around the dot so it looks clean */
border: 2px solid white !important;
z-index: 10;
transition: all 0.2s ease;
cursor: pointer;
}
/* 3. Force the Line to be visible and solid */
ol.tw-border-l-2 {
border-left: 2px solid #d1d5db !important;
border-right: none !important;
border-top: none !important;
border-bottom: none !important;
}
/* Ensure the dot stays put when screen shrinks */
.tw-relative {
position: relative !important;
}
/* hover only when expanded */
.timeline-button:hover:not(.collapsed) {
background: #6b7280;
}
/* collapsed state */
.timeline-button.collapsed {
background: transparent !important;
color: #6b7280;
}
/* 1. Scale up the Typography */
#Tailscaleipdoesntwork h3,
.tw-text-lg {
font-size: 1.5rem !important; /* Larger Heading */
line-height: 1.2 !important;
}
#Tailscaleipdoesntwork p,
.tw-text-base {
font-size: 1.15rem !important; /* Larger Body Text */
line-height: 1.6 !important;
color: #374151 !important; /* Slightly darker for better readability */
}
time,
.tw-text-sm {
font-size: 1rem !important; /* Larger Date */
margin-bottom: 0.5rem !important;
}
/* 2. Scale the Dot and Line */
.timeline-button {
width: 1rem !important; /* Bigger dot */
height: 1rem !important;
left: -2.05rem !important; /* Re-center the bigger dot on the line */
top: 0.4rem;
}
ol.tw-border-l-2 {
border-left-width: 3px !important; /* Thicker vertical line */
margin-left: 2rem !important; /* Push away from the edge */
}
/* 3. Ensure it expands to the full container width */
li.tw-mb-10 {
margin-bottom: 3rem !important; /* More breathing room between items */
width: 100% !important;
}