Jump to content

Customize excerpt in eventlist and summary block

Recommended Posts

Hi! I have made a change to the excerpt in summary and eventlist, giving the letters a background to resemble a button.

I now want to create some kind of hover effect, which I did (opacity), but it initiates the hover effect for the full with of the summary block or event list (moving the mouse button to the opposite side of summary block initiates hover). I just want it to initiate when the mouse is over the button ( BILLETTER ).

How to accomplish this?

www.morgenkonsert.no

Link to comment
  • Replies 4
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

Thank you for your reply!

Setting opacity to 1 removes the hover opacity effect completely, and I do want it on the text/button, but not for the whole width of the summary block and event list...

Can this be accomplished? It can also be another kind of hover effect, like shadow or something else.

(see attached pic for a demonstration on how it works now in event list. The same happens in summary block. You can see the hover opacity effect is activated when the mouse pointer is on the same line as the excerpt)

 

Best,

Sigurd

IMG_0265.thumb.JPG.4b2601a4a08508aa3f0e20e2077c35a7.JPGIMG_0264.thumb.JPG.8b7b5e40389a29f7dad62c7fb0fdf1d9.JPG

Link to comment
21 hours ago, sihole said:

Thank you for your reply!

Setting opacity to 1 removes the hover opacity effect completely, and I do want it on the text/button, but not for the whole width of the summary block and event list...

Can this be accomplished? It can also be another kind of hover effect, like shadow or something else.

(see attached pic for a demonstration on how it works now in event list. The same happens in summary block. You can see the hover opacity effect is activated when the mouse pointer is on the same line as the excerpt)

 

Best,

Sigurd

IMG_0265.thumb.JPG.4b2601a4a08508aa3f0e20e2077c35a7.JPGIMG_0264.thumb.JPG.8b7b5e40389a29f7dad62c7fb0fdf1d9.JPG

Hi,

You did this with custom code or? If code, can you send it? I think we can adjust it a bit

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Yes, I did it with custom code! Here it is:

.eventlist-excerpt a {
    background-color: #194027 !important;
    color: white !important;
      font-family: times !important; 
    font-size: 16pt;
      font: cambria;
    padding: 10px 14px;
    text-decoration: none;
}

.eventlist-excerpt:hover * {
  opacity: 0.85
}
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.