#1294 new
peters@slx-online.biz

CSS in Events

Reported by peters@slx-online.biz | May 26th, 2015 @ 04:26 PM

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.

Comments and changes to this ticket

  • peters@slx-online.biz

    peters@slx-online.biz May 27th, 2015 @ 08:18 AM

    • Assigned user set to “expNinja”

    Thanks. Unfortunately that has not made any difference. The CSS now includes:

    @media (orientation: portrait) and (max-width: 424px) { #doc { width:390px; } #centercol { width: 385px; } #hd { width:390px; height: 56px; background:url(http://sandtoft.slx-online.biz/themes/sandtofttheme/images/header1-...) no-repeat center top #8e0000;border:1px solid #8b0000; } 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.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Attachments

Tags

Pages