UNPKG

react-modern-timeline

Version:
87 lines (77 loc) 1.47 kB
.timeline-event { padding: 30px 0; /* height: fit-content; */ position: relative; box-sizing: border-box; } .event-icon-area { border-radius: 50px; position: absolute; border: 2px solid #e9ecee; height: 30px; width: 30px; left: 36px; top: 32px; background-color: white; display: flex; align-items: center; justify-content: center; box-sizing: border-box; } .icon-circle { height: 12px; width: 12px; border-radius: 50px; background-color: #286ed6; box-sizing: border-box; } .event-detail-area { margin-left: 80px; float: left; margin-top: 8px; box-sizing: border-box; } .event-detail-area .date { color: #61707E; font-size: 10px; margin-top: 8px; width: fit-content; box-sizing: border-box; } .event-detail-area > h1 { font-size: 12px; color: black; width: fit-content; box-sizing: border-box; } .content-area { border-radius: 10px; background-color: #F9FAFB; margin-top: 8px; max-width: 300px; box-sizing: border-box; } .content-text-area { padding: 10px 30px; box-sizing: border-box; } .content-text-area .content-text { font-size: 12px; color: black; text-align: left; line-height: 1.1rem; box-sizing: border-box; } .content-img-area { width: 100%; height: 160px; border-top-left-radius: 10px; border-top-right-radius: 10px; overflow: hidden; box-sizing: border-box; } .content-img { object-fit: cover; max-width: 100%; box-sizing: border-box; }