Jump to content

Reformatting a list summary block for mobile

Recommended Posts

Password: BES!

 

Hello,

I am trying to reformat summary blocks of blog content for mobile on the knowledge page. Right now the photo is very small and I want the photo to be stacked on top of the rest of the content. I figured out how to change it to a column with this code:

@media(max-width:640px) {
.summary-item {
  display: flex;
    flex-direction:column !important;
  }
  .summary-thumbnail-outer-container > * {
  width: 100% !important;
}
}

But the photo is still very small. One of the other issues is I edited the css for desktop of the title and all the corresponding metadata to have a 40px padding on the left, so that may be messing with it. Any help would be greatly appreciated :)

Link to comment
  • Replies 15
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Seems ok to me at the moment but sometimes those images get hard coded numbers generated by a script when they load. Maybe this will work? This will probably break your focal points if you've got those set on your images anything other than center but it should make them be sure to fill the container.

 

@media only screen and (max-width: 640px) {
  .sqs-gallery-design-carousel .summary-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

 

  Did I help you? Buy me a coffee!

👨‍💻 Bergen Design Co.

💻  I'm for hire on Upwork!

🕸️ Squarespace Experts  

🖥️ 99Designs

Link to comment

ahh yea, I was looking at the wrong page. See if this works, some of your code might override it but if you put it in we can inspect and figure out how to get it to work.

@media only screen and (max-width: 640px) {
  .sqs-block-summary-v2 .summary-block-setting-design-list {
    .summary-thumbnail-outer-container {
      width: 100% !important;
    }
    .summary-thumbnail-container {
      padding-right: 0 !important;
    }
    .summary-content {
      width: 100% !important;
    }
    .summary-title, .summary-excerpt, .summary-read-more-link, .summary-metadata-item {
      padding-left: 0 !important;
    }
  }
}

 

  Did I help you? Buy me a coffee!

👨‍💻 Bergen Design Co.

💻  I'm for hire on Upwork!

🕸️ Squarespace Experts  

🖥️ 99Designs

Link to comment

try it like this instead

@media only screen and (max-width: 640px) {
  #block-9184d00069f6322414f9.sqs-block-summary-v2 .summary-block-setting-design-list {
    .summary-thumbnail-outer-container {
      width: 100% !important;
    }
    .summary-thumbnail-container {
      padding-right: 0 !important;
    }
    .summary-content {
      width: 100% !important;
    }
    .summary-title, .summary-excerpt, .summary-read-more-link, .summary-metadata-item {
      padding-left: 0 !important;
    }
  }
}

 

  Did I help you? Buy me a coffee!

👨‍💻 Bergen Design Co.

💻  I'm for hire on Upwork!

🕸️ Squarespace Experts  

🖥️ 99Designs

Link to comment
@media only screen and (max-width: 640px) {
  .sqs-block-summary-v2 .summary-block-setting-design-list {
    .summary-thumbnail-outer-container {
      width: 100% !important;
    }
    .summary-thumbnail-container {
      padding-right: 0 !important;
    }
    .summary-content {
      width: 100% !important;
    }
    .summary-title, .summary-excerpt, .summary-read-more-link, .summary-metadata-item {
      padding-left: 0 !important;
    }
  }
}

@bbradley do you want this for every list summary block on the site? If so just change the code to this.

 

  Did I help you? Buy me a coffee!

👨‍💻 Bergen Design Co.

💻  I'm for hire on Upwork!

🕸️ Squarespace Experts  

🖥️ 99Designs

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.