Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

wellworndenim

Member
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. wellworndenim.squarespace.com pass: wellworndenim Heya, I'm pretty stuck here. This is a part of development that I've not learnt to deal with well. Apologies if I over explained below, I just wanted to be clear. I wanted to replace a generic link icon in the main nav with the Etsy logo. I found a way to do this, but there's an issue. I use the following code: @media only screen and (min-width:800px) { .icon--fill:nth-of-type(1) { svg { display:none; } background-image: url(https://static1.squarespace.com/static/5ed9495a8b705f28b7e9ba1a/t/5f158f068f488a75b54f8328/1595248390506/etsy4.png); background-size: 100%; background-repeat: no-repeat; } } .header-menu-actions-action:nth-of-type(1) { svg { display:none; } background-image: url(https://static1.squarespace.com/static/5ed9495a8b705f28b7e9ba1a/t/5f158f068f488a75b54f8328/1595248390506/etsy4.png); background-size: 100%; background-repeat: no-repeat; } It replaces the generic icon with my uploaded Etsy icon on both mobile and desktop. However, the cut-off the with media query is causing issues on my iPad pro in portrait mode. If you go to the site, you'll see in the nav bar there are two links designated by icons. Etsy and Instagram. As the Etsy logo wasn't supported by Squarespace's social links and just produced a generic Link icon, I had to place a custom solution. The code above targets just the generic link icon, and it requires two different blocks of code: one for desktop, one for mobile. The code tells the site to load the custom icon, but if the width is above 800px it should load the desktop version. If the mobile menu appears above the min-width of the media query, it uses the desktop code which is not compatible and BOTH links are replaced with the custom Etsy Icon. Due to the iPad's pixel density in portrait mode being way above 800px, and the fact it uses the mobile menu in that mode, it loads the desktop version while it's showing the mobile menu and shows two Etsy logos. I can't bring the media query up to the size of the iPad's screen's portrait mode, as that would break the desktop link on smaller laptop screens or if the window were resized. Is there a solution for this where I can specifically target the mobile menu itself, whenever it appears? Or some cleaner way of doing this? Any help would be very much appreciated!
  2. Figured it out, posting just in case anyone searches this. The dimmed opacity needed to target the link directly too, ie: .social-custom a { opacity: .5; transition: .5s } .social-custom a:hover { opacity: 1; }
  3. That's perfect, thank you so much! May I ask you one more please? I'm trying to set it so when I hover over the individual social icons in the footer, they change to opacity 1. I have this code: .social-custom { text-align: center; font-size: 3em; word-spacing: 20px; opacity: .5; transition: .5s } .social-custom a:hover { opacity: 1; } <div class="social-custom"> <a href="tel: 0777 777 777"><i class="fab fa-whatsapp"></i></a> <a href="https://www.etsy.com/uk/shop/wellworndenim"><i class="fab fa-etsy"></i></a> <a href="https://www.instagram.com/wellworndenim/"><i class="fab fa-instagram"></i></a> </div> The above is not working. If I put: .social-custom:hover Then all three of the icons have the desired effect upon hover, but for some reason I cannot target individual icons. This works in standard CSS, but I'm obviously missing something with SP code... Cheers!
  4. https://wellworndenim.squarespace.com password: wellworndenim Thanks a lot!
  5. I'm trying to change the colour of the first menu link in my site's main navigation. The site isn't live yet so I can't link you. The nav looks like this: Shop - Guide - FAQ - About - Contact I want to change Shop to this colour: #C2B277 I can't figure out how to target it using nth-child, nothing seems to work. Any help would be very much appreciated, thank you!
×
×
  • Create New...