Jump to content

Custom carousel button styling on mobile doesn't match desktop

Go to solution Solved by cladzine-star,

Recommended Posts

Hi, I made custom carousel buttons with CSS in the section "What they say about us" but the mobile doesn't match the style that I have created for desktop. I wrote CSS with a media query but it's not working. Any help is appreciated!

Screenshot 2024-07-03 at 4.51.44 PM.png

Screenshot 2024-07-03 at 4.51.55 PM.png

Link to comment
  • Replies 7
  • Views 224
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

51 minutes ago, cladzine-star said:

Hi, I made custom carousel buttons with CSS in the section "What they say about us" but the mobile doesn't match the style that I have created for desktop. I wrote CSS with a media query but it's not working. Any help is appreciated!

Screenshot 2024-07-03 at 4.51.44 PM.png

Screenshot 2024-07-03 at 4.51.55 PM.png

How do you want it to show in mobile view? different view size make different layout to make it easy to read  for user

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
15 hours ago, cladzine-star said:

The layout is fine in the mobile view but the client wants the white < > on the green circle like it is on desktop.

What's your website URL and what code did you use to change the arrows on desktop?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Hi. It's https://www.brifiworks.com/

 

And here's the code:

/* List Section - UI Custom Arrows */
button.user-items-list-banner-slideshow__arrow-button svg {
    display: none !important;
}
button.user-items-list-banner-slideshow__arrow-button--left div:before {
    content: "\e006";
    font-family: 'squarespace-ui-font';
    transform: rotate(270deg);
    display: block;
    color: white;
    font-size: 30px;
    line-height: 60px;
}
button.user-items-list-banner-slideshow__arrow-button--right div:before {
    content: "\e006";
    font-family: 'squarespace-ui-font';
    transform: rotate(-270deg);
    display: block;
    color: white;
    font-size: 30px;
    line-height: 60px;
}

Link to comment

The arrows on mobile are completely separate, so you need to use different selectors, this should be about right, but I haven't tested or optimized the sizes etc.

// List Section - UI Custom Arrows - mobile
.user-items-list-banner-slideshow .mobile-arrow-icon svg {
    display: none !important;
}
.mobile-arrow-button .mobile-arrow-button--left div:before {
    content: "\e006";
    font-family: 'squarespace-ui-font';
    transform: rotate(270deg);
    display: block;
    color: white;
    font-size: 30px;
    line-height: 60px;
}
.mobile-arrow-button .mobile-arrow-button--right div:before {
    content: "\e006";
    font-family: 'squarespace-ui-font';
    transform: rotate(-270deg);
    display: block;
    color: white;
    font-size: 30px;
    line-height: 60px;
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

I found the answer from an old discussion:

/* List Section - UI Custom Arrows */
button[class*="arrow-button"] svg {
    display: none !important;
}
button[class*="arrow-button--left"] div:before {
    content: "\e006";
    font-family: 'squarespace-ui-font';
    transform: rotate(270deg);
    display: block;
    color: white;
    font-size: 24px;
    line-height: 60px;
    top: -10px;
    position: relative;
}
button[class*="arrow-button--right"] div:before {
    content: "\e006";
    font-family: 'squarespace-ui-font';
    transform: rotate(-270deg);
    display: block;
    color: white;
    font-size: 24px;
    line-height: 60px;
      top: -10px;
    position: relative;
}

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.