Jump to content

thefakedaniel

Member
  • Posts

    20
  • Joined

  • Last visited

Posts posted by thefakedaniel

  1. On 4/18/2022 at 1:17 PM, tuanphan said:

    Center on mobile only?

    Add to Design > Custom CSS

    @media screen and (max-width:767px) {
    .user-items-list-banner-slideshow[data-button-alignment="left"] .list-item-content__button-container {
        text-align: center;
    }
    }

    If you want center on all devices, edit 767px to 9999px

    Hi, thanks for replying.

    This doesn't seem to have worked, and also I am referring to the whole box, not just the text. I have already been able to center the text myself ;o

  2. 3 hours ago, bangank36 said:

    Try adding to Home > Design > Custom Css

    #block-yui_3_17_2_1_1648729481274_4469 + div > .col:not(.span-0) {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 20% !important;
    } 
    #block-yui_3_17_2_1_1648729481274_4469 + div {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }
    
    @media only screen and (max-width: 1203px) {
      #block-yui_3_17_2_1_1648729481274_4469 + div > .col:not(.span-0) {
        width: 100% !important;
      } 
    }
    

    My codes will arrange these buttons into one column if you resize the width of your browser.

    Let me know how it works on your site

    Thanks,

    I just tried it out and here is the behavior I am seeing:

    https://i.gyazo.com/7f5ac9282d56d4ccbeb819d125f65d13.mp4

    Still a bit of overlap before it snaps into the column, not sure if that's what you intended.

  3. Site URL: https://bonjrmusic.com/faq

    Hi,

    How do I center the button element ("license" &  "stream" buttons) here using css?

    Also, how can I ensure that each slide's box (the outer transparent box that contains title, description, button) is always centered? i.e. the left image the box is almost centered and the right image the box is more to the top

    For context, I believe this is a slideshow section
    d1db36b347e6162a468e372500fd0418.png1281d9c0f0944c382b3d5e6b37636473.png

    I would also like to vertically center the slideshow navigation buttons that were previously placed at the bottom in the images above & space them apart so that they're attached to the edge of the screen. In the desktop version it's the offset parameter so I was already able to achieve this, however I have not been able to find the equivalent setting for mobile. Attaching a screenshot below of what I have been able to achieve so far, which is not much considering the buttons are not centered with the background and the spacing is not correct.

    And if possible, I'd like to also change the navigation button radius. I was successful in doing this on the desktop version of the page.

    a85d6c81831c937e67e1d19bd9e01e25.png

    Thanks in advance!

    Daniel

  4. Site URL: https://bonjrmusic.com/music

    Hello,

    I have 4 buttons in a single row on the website page linked. However, when I resize the window, some of the buttons end up overlapping. How does one prevent this behavior?

    I'm also noticing the header links ('home', 'music', 'videos', etc.) become two rows as the window size gets smaller. Looking around at other websites, it seems that they maintain a single row and adjust according to the window size by either having the links remain fixed (which i'm actually seeing with the squarespace forum header), scaling down (youtube) or trimming the content (soundcloud). Does anyone know the code for each of these three different approaches so I could test it out?

    Appreciate any help I can get!

    Thanks,
    Daniel

  5. 1 hour ago, Web_Solutions said:

    I have update the code. I have marked that. Please add this then the caption will be exact center.

    Screenshot_164.png

    Perfect, it's working great. I just marked your post as the solution.

    Do you have any suggestions on how to move content from one page to another without having to remake it? i.e. if I wanted to move the carousel I have on the 'home' page somewhere else, what would be the easiest way to do so?

    But other than this question, thanks for helping me out with everything!

  6. 2 hours ago, Web_Solutions said:

    Sure

     

    Awesome, it worked.

    Although I think the text isn't exactly centered: image.thumb.png.17c5012f75f486509175502b358138df.png

    This and I'm currently looking at the code to see where I can change the font size, hopefully I can find it.

    Update: I found where I can change the font size. And also added some padding to move the text more to the center... not sure why it wasn't centered for me in the first place.

    padding-left:70px;
    

     

  7. 8 hours ago, Web_Solutions said:

    Please see the video. You can try this way

     

    [data-section-id=""] {
      .gallery-grid-item{
        overflow: hidden;
        position: relative;
        .gallery-grid-image-link:before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          bottom: 0;
          right: 0;
          z-index: 999;
        }
        img{
          -webkit-filter: grayscale(80%);
          -moz-filter: grayscale(80%);
          -ms-filter: grayscale(80%);
          -o-filter: grayscale(80%);
          transition-duration: .7s;
        }
        .gallery-caption{
          opacity: 0;
          position: absolute !important;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          display: flex;
          align-items: center;
          justify-content: center;
        transition-delay: 100ms;
          .gallery-caption-wrapper{
            width: 80% !important;
            height: auto !important;
            p{
              color: #fff !important;
              font-family: Work Sans;
              font-weight: 700;
              font-style: normal;
              letter-spacing: .01em;
              text-transform: none;
              text-align: center;
              line-height: 1.032;
              font-size: calc((4.5 - 1) * 1.2vw + 1rem);
            }
          }
        }
      }
      .gallery-grid-item:hover {
        img{
          -webkit-filter: grayscale(0%);
          -moz-filter: grayscale(0%);
          -ms-filter: grayscale(0%);
          -o-filter: grayscale(0%);
          transform: scale(1.13);
        }
        .gallery-caption{
          opacity: 1;
        }
      }
      @media(max-width: 767px) {
        .gallery-grid-wrapper{
          grid-template-columns: inherit !important;
        }
        .gallery-grid-item {
          img{
            -webkit-filter: grayscale(0%) !important;
            -moz-filter: grayscale(0%) !important;
            -ms-filter: grayscale(0%) !important;
            -o-filter: grayscale(0%) !important;
            transform: scale(1) !important;
          }
          .gallery-caption{
            opacity: 1;
            .gallery-caption-wrapper p{
              font-size: 40px;
            }
          }
        }
      }
    }

     

     

    This might be what I'm looking for. Going to try it out and mark as solved if it works out, thanks!

  8. 10 hours ago, tuanphan said:

    You can setup section width to 98%, then use this code to target these sections

    [data-current-styles*="98"] .row {
        display: flex;
        align-items: center;
    }

     

    This is awesome, thank you!

    I have another active post if you'd like to try help me out with that as well: 

     

  9. Site URL: https://bonjrmusic.com/

    Hi,

    I have a page with alternating video section styles. They alternate almost randomly so I can't target every 2n+1 or something like that. How can I target only sections that have the video on the left side?

    18483fdbeb15eb06ccbe428810a3f6ea.png

    Basically I will be adding sections as time goes on, and to correctly display everything on mobile I need to use the following code:

    /* Home Page Order Fix */
      #collection-5ff20abda6a0ae63d611180e #page .page-section:nth-last-of-type(9),
    section:nth-last-of-type(5),
      section:last-of-type {
        .row {
          display: flex;
          flex-direction: column-reverse;
        }
      }

    However, I could avoid having to always add a new section to this code if I could target left side video sections only.

    Appreciate any help I can get!

    Thanks,
    Daniel

  10. 13 hours ago, bangank36 said:

    I check that you are using the image blocks and drag them into 2 columns

     

    image.thumb.png.0848ebc49b871afb0de37c7834f4876a.pngI think we drag them into only one column. After that using some Css code to make items equally.

    Gallery section is also a alternative solution

    Sorry, I didn't understand what you mean. Could you clarify? And what would this CSS code look like?

    Also as you see in my examples, I would like to have 2 columns and 2 rows until the screen is reduced to the point where it is forced to become 1 column and 4 rows.

  11. 5 hours ago, bangank36 said:

    I check that the layout is the same with the breakpoint equal to 768px and larger

    image.thumb.png.9be83117eab78f678ab57222bbbbc756.pngWith the smaller breakpoint (<=767px), the layout will arrange with one column. You mean set this page the same layout when breakpoint is lower than 767px, don't you?

    Hi, thanks for getting back to me!

    Basically this is what I want for every size possible before it gets to tablet/mobile:

    454d01646259653f3f9fa90cf6d031b7.png
    And once it hits mobile, it changes to this (this already happens):

    e72dc529744c04253700d63b08aaaf54.png

    I'd also like every image to have equal dimensions.

    Let me know if this clarifies everything!

×
×
  • 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.