Jump to content

Image block on mobile missing first letter

Recommended Posts

Site URL: https://helicon-butterfly-lyae.squarespace.com/books

I'm noticing that the image blocks on my mobile site are cutting off the first letter in the first line of text associated with each image. Squarespace support told me that a portion of my Custom CSS code is causing the problem, but they're not able to offer support with which piece of code! I'm hoping that, if I share the CSS I'm using here (see below—there's a lot), along with the URL, someone will be able to help! I'm also including a screenshot with an arrow indicating where the text is missing. It should read "published" and not "ublished." 🙂 Thanks, in advance!

URL: https://helicon-butterfly-lyae.squarespace.com/books

Custom CSS I'm using:

// Flip Over Social Icons //

.header-actions .header-actions-action--social a {
  transform: scaleX(1) !important;
  transition: all ease-in-out .5s !important;
}

.header-actions .header-actions-action--social a:hover {
  transform: scaleX(-1) !important;
  transition: all ease-in-out .5s !important;
}

// Site Title Tagline //

.header-title:after {
  content: 'HONOR YOUR CRAFT';
  font-size: 15px;
  padding-top: 5px;
  color: #FFFFFF;
  display: block;
}

// Spotlight Navigation Style //

.header-nav-list:hover > .header-nav-item {
  opacity: 0.5;
}

.header-nav-list:hover > .header-nav-item:hover {
  opacity: 1.0;
}

// Spotlight Navigation Folder Style //

.header-nav-folder-content:hover > .header-nav-folder-item {
  opacity: 0.5;
}

.header-nav-folder-content:hover > .header-nav-folder-item:hover {
  opacity: 1.0;
}

// Quote Block Main //

.quote-block figure {
  padding-left: 20px; 
  text-align: left; 
  padding-bottom: 10px; 
  padding-top: 20px; 

// Quote Source Text //

.sqs-block-quote .source {
  color: #000000 !important; 
  text-align: right !important; 
  border-top: 1px solid #000000 !important; 
  margin-top: 10px !important; 
  text-transform: uppercase; 
  font-size: 12px !important; 
  letter-spacing: .2em;

// Quote Block //

.quote-block blockquote>span:first-child { 
  display: none; 

.quote-block blockquote>span:first-child, .quote-block blockquote>span:last-child { display: none;

figcaption::first-letter { 
  font-size: 0;}

// Drop Shadow Social Icons //

.sqs-block-socialaccountlinks-v2 a {
  overflow: visible;
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px transparent;
  position: relative;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
}
.sqs-block-socialaccountlinks-v2 a:before {
  pointer-events: none;
  position: absolute;
  z-index: 1000000;
  content: ' ';
  top: 100%;
  left: 5%;
  height: 10px;
  width: 90%;
  opacity: 0;
  background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform, opacity;
  transition-property: transform, opacity;
}
.sqs-block-socialaccountlinks-v2 a:hover, .sqs-block-socialaccountlinks-v2 a:focus, .sqs-block-socialaccountlinks-v2 a:active {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
}
.sqs-block-socialaccountlinks-v2 a:hover:before, .sqs-block-socialaccountlinks-v2 a:focus:before, .sqs-block-socialaccountlinks-v2 a:active:before {
  opacity: 1;
  -webkit-transform: translateY(5px);
  transform: translateY(5px);
}

.social-icons-style-regular .sqs-use--icon{
  fill: #FFFFFF !important;
}
.social-icons-style-regular .sqs-svg-icon--wrapper:hover .sqs-use--icon{
  fill: #000000 !important;
}

Screen Shot 2021-12-30 at 3.38.20 PM.png

Link to comment
23 hours ago, tristankatz said:

Site URL: https://helicon-butterfly-lyae.squarespace.com/books

I'm noticing that the image blocks on my mobile site are cutting off the first letter in the first line of text associated with each image. Squarespace support told me that a portion of my Custom CSS code is causing the problem, but they're not able to offer support with which piece of code! I'm hoping that, if I share the CSS I'm using here (see below—there's a lot), along with the URL, someone will be able to help! I'm also including a screenshot with an arrow indicating where the text is missing. It should read "published" and not "ublished." 🙂 Thanks, in advance!

URL: https://helicon-butterfly-lyae.squarespace.com/books

Custom CSS I'm using:

// Flip Over Social Icons //

.header-actions .header-actions-action--social a {
  transform: scaleX(1) !important;
  transition: all ease-in-out .5s !important;
}

.header-actions .header-actions-action--social a:hover {
  transform: scaleX(-1) !important;
  transition: all ease-in-out .5s !important;
}

// Site Title Tagline //

.header-title:after {
  content: 'HONOR YOUR CRAFT';
  font-size: 15px;
  padding-top: 5px;
  color: #FFFFFF;
  display: block;
}

// Spotlight Navigation Style //

.header-nav-list:hover > .header-nav-item {
  opacity: 0.5;
}

.header-nav-list:hover > .header-nav-item:hover {
  opacity: 1.0;
}

// Spotlight Navigation Folder Style //

.header-nav-folder-content:hover > .header-nav-folder-item {
  opacity: 0.5;
}

.header-nav-folder-content:hover > .header-nav-folder-item:hover {
  opacity: 1.0;
}

// Quote Block Main //

.quote-block figure {
  padding-left: 20px; 
  text-align: left; 
  padding-bottom: 10px; 
  padding-top: 20px; 

// Quote Source Text //

.sqs-block-quote .source {
  color: #000000 !important; 
  text-align: right !important; 
  border-top: 1px solid #000000 !important; 
  margin-top: 10px !important; 
  text-transform: uppercase; 
  font-size: 12px !important; 
  letter-spacing: .2em;

// Quote Block //

.quote-block blockquote>span:first-child { 
  display: none; 

.quote-block blockquote>span:first-child, .quote-block blockquote>span:last-child { display: none;

figcaption::first-letter { 
  font-size: 0;}

// Drop Shadow Social Icons //

.sqs-block-socialaccountlinks-v2 a {
  overflow: visible;
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px transparent;
  position: relative;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform;
  transition-property: transform;
}
.sqs-block-socialaccountlinks-v2 a:before {
  pointer-events: none;
  position: absolute;
  z-index: 1000000;
  content: ' ';
  top: 100%;
  left: 5%;
  height: 10px;
  width: 90%;
  opacity: 0;
  background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: transform, opacity;
  transition-property: transform, opacity;
}
.sqs-block-socialaccountlinks-v2 a:hover, .sqs-block-socialaccountlinks-v2 a:focus, .sqs-block-socialaccountlinks-v2 a:active {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
}
.sqs-block-socialaccountlinks-v2 a:hover:before, .sqs-block-socialaccountlinks-v2 a:focus:before, .sqs-block-socialaccountlinks-v2 a:active:before {
  opacity: 1;
  -webkit-transform: translateY(5px);
  transform: translateY(5px);
}

.social-icons-style-regular .sqs-use--icon{
  fill: #FFFFFF !important;
}
.social-icons-style-regular .sqs-svg-icon--wrapper:hover .sqs-use--icon{
  fill: #000000 !important;
}

Screen Shot 2021-12-30 at 3.38.20 PM.png

Try

.image-title-wrapper em {
  display: inline-block;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

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

My testing

image.png.4c624bf9ef8448db6a09aea29032e9f5.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

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.