.tribe-events section { padding: 10px 0; } .tribe-events .timeline { position: relative; } .tribe-events .timeline::before { content: ''; background: #f16702; width: 5px; height: 95%; position: absolute; left: 50%; transform: translateX(-50%); } .tribe-events .timeline-item { width: 100%; margin-bottom: 70px; } .tribe-events .timeline-item:nth-child(even) .timeline-content { float: right; padding: 40px 30px 10px 30px; } .tribe-events .timeline-item:nth-child(even) .timeline-content .date { right: auto; left: 0; } .tribe-events .timeline-item:nth-child(even) .timeline-content::after { content: ''; position: absolute; border-style: solid; width: 0; height: 0; top: 30px; left: -15px; border-width: 10px 15px 10px 0; border-color: transparent #f5f5f5 transparent transparent; } .tribe-events .timeline-item::after { content: ''; display: block; clear: both; } .tribe-events .timeline-content { position: relative; width: 45%; padding: 10px 30px; border-radius: 4px; background: #f5f5f5; box-shadow: 0 20px 25px -15px rgba(0, 0, 0, .3); } .tribe-events .timeline-content::after { content: ''; position: absolute; border-style: solid; width: 0; height: 0; top: 30px; right: -15px; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent #f5f5f5; } .tribe-events .timeline-img { width: 30px; height: 30px; background: #f16702; border-radius: 50%; position: absolute; left: 50%; margin-top: 25px; margin-left: -15px; } .tribe-events .timeline a { background: #f16702; color: #fff; padding: 8px 20px; text-transform: uppercase; font-size: 14px; margin-bottom: 20px; margin-top: 10px; display: inline-block; border-radius: 2px; box-shadow: 0 1px 3px -1px rgba(0, 0, 0, .6); } .tribe-events .timeline a:hover, .tribe-events .timeline a:active, .tribe-events .timeline a:focus { background: #e37f35; color: #fff; text-decoration: none; } .tribe-events .timeline-card { padding: 0 !important; /*background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('/wp-content/uploads/2024/01/player-hero-01.jpg') center center no-repeat;*/ background: rgba(0, 0, 0, .4); /* fallback colour. Make sure this is just one solid colour. */ background: -webkit-linear-gradient(#45454552, #45454552), url("/wp-content/uploads/2024/01/player-hero-01.jpg") no-repeat; background: linear-gradient(#45454552, #45454552)), url("/wp-content/uploads/2024/01/player-hero-01.jpg") no-repeat; /* The least supported option. */ background-size: cover; } .tribe-events .timeline-card p { padding: 0 20px; } .tribe-events .timeline-card a { margin-left: 20px; } .tribe-events .timeline-item .timeline-img-header { background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('/wp-content/uploads/2024/01/player-hero-01.jpg') center center no-repeat; background-size: cover; } .tribe-events .timeline-img-header { height: 200px; position: relative; margin-bottom: 20px; } .tribe-events .timeline-img-header h2 { color: #fff; position: absolute; bottom: 5px; left: 20px; } .tribe-events blockquote { margin-top: 30px; color: #757575; border-left-color: #3f51b5; padding: 0 20px; } .tribe-events .date { background: #f39200; display: inline-block; color: #fff !important; padding: 10px; position: absolute; top: 0; right: 0; } .timeline .custom-event-title { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; /* number of lines to show */ line-clamp: 2; -webkit-box-orient: vertical; padding:0px 10px; font-size:2rem; font-weight: bolder; color: white; } .tribe-events .timeline-item .timeline-content { min-height: 180px; } .timeline address { color: white; } .tribe-events .timeline-item:nth-child(even) .timeline-content .custom-data-tag { margin-left: auto; } .tribe-events .timeline-item .timeline-content .custom-data-tag time { padding-left : 12px; text-align : left; } .tribe-events .timeline-item:nth-child(even) .timeline-content .custom-data-tag time { padding-left : 0px; padding-right: 12px; text-align : right; } @media screen and (max-width: 768px) { .tribe-events .timeline::before { left: 50px; } .tribe-events .timeline .timeline-img { left: 50px; } .tribe-events .timeline .timeline-content { max-width: 100%; width: auto; margin-left: 70px; min-height: 200px; } .tribe-events .timeline .timeline-item:nth-child(even) .timeline-content { float: none; } .tribe-events .timeline .timeline-item:nth-child(odd) .timeline-content::after { content: ''; position: absolute; border-style: solid; width: 0; height: 0; top: 30px; left: -15px; border-width: 10px 15px 10px 0; border-color: transparent #f5f5f5 transparent transparent; } }