Jump to content

interactionld

Member
  • Posts

    13
  • Joined

  • Last visited

Recent Profile Visitors

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

interactionld's Achievements

  1. Site URL: https://www.interaction-ld.com I have added custom CSS to remove underlines from the main navigation menu and the folder menu items, which is working. I have also added custom CSS for the hover and Active colours. But what I cannot get to happen is to have the custom colour on a Folder Menu list - I want the Active Folder item AND the active folder header to have the same colour applied - I am able to get this to happen separately if I turn one piece of code off and visa versa, but I want both to be true at the same time. This is the css as it is at the moment (website is not published right now so I hope this is enough to help): /* Nav item active color */ .header-nav-item--active a { background-image: none !important; color: #CE0058 !important; } .header-nav-folder-content .header-nav-folder-item > a:hover { color: #CE0058 !important; } .header-nav-folder-content .header-nav-folder-item--active a { color: #CE0058 !important; } .header-nav-item:hover > a { color: #CE0058 !important; } /* Nav item remove underline */ .header-nav-wrapper a { background-image: none !important; } /*Removes underline from nav menu items*/ body:not( .header--menu-open ) .header-nav-folder-item--active .header-nav-folder-item-content, /* desktop */ :is( [aria-current="page"], /* mobile */ [aria-current="true"] ) .header-menu-nav-item-content { background-image : unset; }
  2. Thanks so much - that's sorted Q1 😀 Q2: it's still overlapping the 3 cards in tablet view. I do have some code for tablet view for the homepage, but it is on specific blocks - could this be competing with the new code somehow? /* tablet issues */ @media screen and (max-width:991px) and (min-width:768px) { div#block-yui_3_17_2_1_1412381143917_19852 + .row .button-block a { min-height: 50px; vertical-align: middle; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -ms-flex-wrap: nowrap; flex-wrap: nowrap; } div#block-yui_3_17_2_1_1412381143917_19852+.row .button-block { padding: 2px; } }
  3. Hello @tuanphan. Q1: I don't want it to redirect to anywhere on click, just to flip to show the back card in the same way as the Hover does. On mobile and Desktop at the moment, it seems to jump to the top of the page when you click it and I don't want it to do that. Q2: Yes, 2 boxes per row - just so that the cards don't overlap each other and you can read them clearly. Thank you Laura
  4. Site URL: https://www.interaction-ld.com/coaching Hi - I have added some code to create a flip effect that I was sent. It seems that the hover action does not quite work on touchscreen even though it has the code that should make it work ok. If you click on the cards (on any device) it takes you to the top of the screen - can I add .on-click to behave the same as hover in this code? I tried adding it in and the cards just disappeared. It also does not render very well on Tablets - I'd like to enforce a 2-column layout as at the moment it overlaps the cards and I cannot quite get it to do that. Example HTML below. <a href="#"> <div class="flip-container" ontouchstart="this.classList.toggle('hover');"> <div class="flipper"> <div class="front"><h3>Executive</br>development</h3><p>Structured coaching for senior leaders using highly qualified, executive coaches</p> </div> <div class="back"> <p><strong>You can expect:</strong></p> <ul> <li>that the correct coach is matched for optimum chemistry and rapport</li> <li>far-reaching, transformational behavioural change</li> <li>coaching conversations focused on tangible actions</li> </ul></div> </div> </div> </a> .flip-container {perspective: 1000px; transform-style: preserve-3d;} .flip-container:hover .back {transform: rotateY(0deg);} .flip-container:hover .front {transform: rotateY(180deg);} .flip-container, .front, .back { width: 324px; height: 245px; margin: 0px; float: left; } .flipper {transition: 0.6s; transform-style: preserve-3d; position: relative;} /* hide back of pane during swap */ .front, .back { backface-visibility: hidden; transition: 0.6s; transform-style: preserve-3d; position: absolute; top: 0; left: 0; } .front {z-index: 2; transform: rotateY(0deg);} .back { transform: rotateY(-180deg); background: #F0F0F0; color: #00000 ; text-align:left; p{padding-left:10px;padding-top:6px;} ul{padding-left:30px;} line-height:1.23em; } .vertical.flip-container {position: relative;} .vertical .back { transform: rotateX(180deg);} .vertical.flip-container:hover .back {transform: rotateX(0deg);} .vertical.flip-container:hover .front {transform: rotateX(180deg);} .front {background:#F0F0F0; color:#000000; text-align:left; h3{ color: #CE0058 !important; padding-left:10px; padding-top:6px;} p{ padding-left: 10px; }} <a href="#"> <div class="flip-container" ontouchstart="this.classList.toggle('hover');"> <div class="flipper"> <div class="front"><h3>Executive</br>development</h3><p>Structured coaching for senior leaders using highly qualified, executive coaches</p> </div> <div class="back"> <p><strong>You can expect:</strong></p> <ul> <li>that the correct coach is matched for optimum chemistry and rapport</li> <li>far-reaching, transformational behavioural change</li> <li>coaching conversations focused on tangible actions</li> </ul></div> </div> </div> </a>
  5. Site URL: https://www.interaction-ld.com/coaching_new I am trying to add custom code to a specific page and specific blocks of 'lines' and 'text' so that they are the same height and look in line. I found some code on another thread that I thought might be something to start from, but am unsure how to edit it for my page as it relates more to image blocks. I also wondered if I just needed to add the 'flex' element. I want to be able to have the items in any order and always be the same height. It's also possible that I will wart to target these same blocks with other custom code such as colours, text size, background colours etc, so it would be great if someone can help with how to target each element separately so I can do this. The page is here: https://www.interaction-ld.com/coaching_new Password: coaching The blocks are the pink lines and the text underneath. Thanks very much. Laura
×
×
  • 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.