Jump to content

Calendar hover: how to change direction of pop-up links

Recommended Posts

Site URL: https://www.throughthenoise.co.uk/things-to-go-to

Site URL: https://www.throughthenoise.co.uk/things-to-go-to

Hi all,

Is there a way to force the calendar to preview all the hover links downwards? 

At the moment, when you click the calendar on mobile when there are multiple events in the later weeks of the month, and the hover preview shows up, it cuts off into the header - making it both unreadable and unclickable. 

See images attached: the May events (as they're later in the month) preview upwards, whilst the June events preview downwards. I'd like all events to do the latter to mitigate the cut-off issue.

Thanks in advance!

IMG_3792.PNG

IMG_3793.PNG

Link to comment
  • Replies 2
  • Views 517
  • Created
  • Last Reply
On 5/7/2021 at 8:57 PM, throughthenoise said:

Site URL: https://www.throughthenoise.co.uk/things-to-go-to

Site URL: https://www.throughthenoise.co.uk/things-to-go-to

Hi all,

Is there a way to force the calendar to preview all the hover links downwards? 

At the moment, when you click the calendar on mobile when there are multiple events in the later weeks of the month, and the hover preview shows up, it cuts off into the header - making it both unreadable and unclickable. 

See images attached: the May events (as they're later in the month) preview upwards, whilst the June events preview downwards. I'd like all events to do the latter to mitigate the cut-off issue.

Thanks in advance!

IMG_3792.PNG

IMG_3793.PNG

this will force all event popup to display under the cell

.yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(4) .flyoutitemlist, .yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(5) .flyoutitemlist, .yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(6) .flyoutitemlist {
    bottom: auto;
    top: 100%;
    border-bottom: none;
    border-top: 8px solid transparent;
}
.yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(4) .flyoutitemlist:before, .yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(5) .flyoutitemlist:before, .yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(6) .flyoutitemlist:before {
    bottom: auto;
    top: -6px;
    border-top: 0;
    border-bottom: 6px solid #ddd;
}

image.png.831c381e8f3c5d3e428b1847d7bb2fc3.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
9 hours ago, bangank36 said:

this will force all event popup to display under the cell


.yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(4) .flyoutitemlist, .yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(5) .flyoutitemlist, .yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(6) .flyoutitemlist {
    bottom: auto;
    top: 100%;
    border-bottom: none;
    border-top: 8px solid transparent;
}
.yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(4) .flyoutitemlist:before, .yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(5) .flyoutitemlist:before, .yui3-squarespacecalendar .compact-layout .yui3-calendar-grid .yui3-calendar-row:nth-child(6) .flyoutitemlist:before {
    bottom: auto;
    top: -6px;
    border-top: 0;
    border-bottom: 6px solid #ddd;
}

image.png.831c381e8f3c5d3e428b1847d7bb2fc3.png

Perfect - thank you so much!

One more thing:

On most desktops, and mobile, the calendar appears as above: with coloured boxes for dates with events etc. However, it seems on very wide-screen desktops, its style changes - the boxes are changed so that they include the event's main image.

Is there any way to make sure that it is always in the style as above? The calendar appears on both the home page, and the 'things to go to' page.

Thanks again!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.