Open exponentcms opened 4 years ago
Although we are setting the class 'dtstart', we never define it as a style so this hasn't been an issue in the past (since the class has no styling assigned)
Regardless, if you want to style it within your theme you could do something like this:
.events .upcoming-events-headlines .dtstart { /* headlines view */
margin 0
}
.events .show .dtstart { /* show view */
margin 0
}
Thanks. Unfortunately that has not made any difference. The CSS now includes:
@media (orientation: portrait) and (max-width: 424px) {
img{ width:auto; max-width: 100%; height:auto; } .vevent li { width: 150px; } .events .upcoming-events-headlines .dtstart { margin: -170px; } .events .show .dtstart { margin; 0px; } / .dtstart { margin-left: -170px; } / .event-return:after { content:" -- Best Viewed in Landscape"; } }
Have I missed something?
Thanks. Peter.
The date field when using the calendar function uses the CSS .dtstart . In a normal browser this is fine. However I have now completed an exercise in making the sandtoft.org site mobile-friendly. In portrait mode for smaller screens I have had to set .dtstart { margin-left: -170px; } so that the date can be displayed - see capture.jpg. This however means that it disappears off to the left when you open an event - see capture1. Is there any way to force a different CSS for the two places where this item is used? (Other two captures are normal browser views).
Thanks. Peter.