Jump to content

Nth-Child Color for Audio Widget

Recommended Posts

Site URL: https://www.1999worldwide.com/music

Here's the audio widget:

.sqs-widgets-audio-player {box-shadow: 2px 5px 15px rgba(0,0,0,0.2); background:linear-gradient(to right, lightblue,pink)!important; border-radius: 35px!important} .sqs-widgets-audio-player .title-wrapper .title, .sqs-widgets-audio-player .artistName, .sqs-widgets-audio-player .time {color: #fff!important} .sqs-widgets-audio-player .action .play-button {border-left-color: #fff!important} .sqs-widgets-audio-player .action .pause{border-color: #fff!important} 

Here's what I am trying to accomplish:

.sqs-widgets-audio-player:first-child {background:#E50026!important;}

.sqs-widgets-audio-player:nth-child (2) {background:#006AFE!important;}

.sqs-widgets-audio-player:nth-child (3) {background:#10A786!important;}

.sqs-widgets-audio-player:last-child {background:#FFCD1C!important;}


Here's the problem:

The global color of the audio blocks will only correspond the 


Please help,

Thank you!


Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I answered your email. Not sure you received it?

You can target block id.

div#block-yui_3_17_2_1_1609989010394_13873 .player {
    background: red;

Use this tool to target block id. https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.