Jump to content

How do you move Instagram logo position on mobile?

Recommended Posts

Hi there,

On mobile only, I want my instagram logo to be positioned in line with the right edge of photos - it somehow moved while I was messing about with code. I have attached images of the space. 

Can anyone help?

Website is https://www.studio-teller.co/

Code is:

header#header {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  z-index: 9999;
  width: 100%;
   top: unset !important;
  background-color: transparent !important;
  padding-left: 4%;
 
}
.header-display-desktop .header-title {
  position: fixed !important;
  height: auto !important;
  width:170px !important;
  left: 5% !important;
  top: 10% !important;
  background:transparent !important;
}

.header .header-announcement-bar-wrapper {
    position: fixed !important;
    bottom: 0;
  width: 96vw;
  
}

article section:first-child {
  padding-top: 0 !important;
}

.header-title-text a {
  display: none;
}

.header-nav-folder-content {
  background-color:transparent !important;
}

.header-nav .header-nav-item--folder .header-nav-folder-content {
    bottom: 100% !important;
}

.header-nav .header-nav-item--folder .header-nav-folder-content, .fe-block-yui_3_17_2_1_1696953527203_1725 img {
    transition: 2s !important;
}

@media screen and (min-width:768px) {
.fe-block-yui_3_17_2_1_1707684771869_37859 {
    position: sticky;
    position: -webkit-sticky;
    top: 150px;
  z-index: 99;
}
}


@media(min-width: 768px) {
  header#header{
    padding-right: 3%;
    padding-bottom: 2%;
    box-sizing: border-box !important;
  }
}
@media(max-width: 767px) {
  header#header{
    
    padding-right: 0 !important;
    padding-left: 0 !important;
  
    box-sizing: border-box !important;
  }
  header#header .header-burger-btn{
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: auto;
    
  }
  .header-display-desktop .header-title {
    width: 205px !important;
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .header-display-desktop {
    display: flex !important;
  }
  .header-display-desktop .header-actions, .header-display-desktop .header-actions-action {
    display: block !important;
  }
  .header-display-mobile, .header-display-desktop .header-title-nav-wrapper .header-nav {
    display: none !important;
   
  
  }
  .header-display-desktop .header-title-nav-wrapper {
    flex: 0 0 0 !important;
  }
  .header-menu-nav-list .header-menu-actions.social-accounts {
    visibility: hidden;
    pointer-events: none;
  }
  .header-display-desktop .header-actions {
    order: 2 !important;
    margin-left: auto;
  }
  .header-display-desktop .header-burger {
    order: 1 !important;
  }
  .header-display-desktop .header-actions-action a{
    margin-left: auto !important;
  }
  
}

.header-display-desktop .header-title-logo img {
   transition: 2s !important;
}
.header-display-desktop .header-title-logo:hover img {
   filter: blur(2px) !important;
}

.header-menu {
  .header-menu-nav-item a{
    font-size: 20px !important;
    text-align: center !important;
  }
  .chevron {
    transform: none !important;
    border: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 25px
  }
  .chevron--right:after {
    content: "↝";
  }
  .chevron--left:after {
    content: "↜";
  }
  [data-folder="/projects-1"] {
    min-height: calc(~"100% - 14vh");
  }
}

 @media screen and (max-width:991px) {
div.header-announcement-bar-wrapper {
    padding-top: 3vw !important;
    padding-bottom: 3vw !important;
    
}
}

IMG_3792.jpg

IMG_3793.jpg

Link to comment
  • Replies 5
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

On 2/17/2024 at 2:10 PM, tuanphan said:

You can use CSS code like this

/* move instagram icon */
.header-actions-action.header-actions-action--social {
    position: relative;
    right: -20px;
}

 

Hi Tuan,

This did exactly the right thing but I only want it to move on mobile! It's moved on desktop to.. is there a way where it can just target mobile?

 

Thanks

 

Ross

Link to comment
On 2/19/2024 at 8:55 PM, rossbaynham said:

Hi Tuan,

This did exactly the right thing but I only want it to move on mobile! It's moved on desktop to.. is there a way where it can just target mobile?

 

Thanks

 

Ross

Change to this code to make it run on mobile only

@media screen and (max-width:767px) {
/* move instagram icon */
.header-actions-action.header-actions-action--social {
    position: relative;
    right: -20px;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (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.