Callan Posted March 26 Share Posted March 26 Hi Square Brains! I have a bit of an issue . . . all of my CSS code has stopped working for a client's site and I don't know why. The only clue I have is that the Squarespace CSS field is telling me a '{' is missing but I can't find where. I have duplicated the site to do some testing. You can access with the password: HELPneeded Here: https://carnation-reindeer-g4g9.squarespace.com/ Some examples of what is broken are: I've been using this CSS for a background header colour (white) with 60% opacity on mobile: /*mobile header*/ @media only screen and (max-width: 767px){ body#collection-652f8e9dea52a52756969ded header#header { background-color: rgba(255, 255, 255, 0.6) !important; } } You can see this is not working at my test site here: https://carnation-reindeer-g4g9.squarespace.com/ And this code to create flip cards using the old Squarspace version image posters: /* Inside the Square Flip effect on poster images*/ .design-layout-poster img{ transition: 1s} .design-layout-poster:hover img{transform: rotateY(180deg); transition: 1s} .image-card-wrapper{transform:rotateY(180deg)!important; opacity:0; transition: 1s;} .design-layout-poster:hover .image-card-wrapper {opacity:1!important; transform:rotateY(0deg)!important; background: #282D30; transition: 1s;} /* Inside the Square Flip effect on poser images*/ /*Course list colour issue*/ [data-section-id="6576c31ac1a71b16fb46c67c"] .course-list__grid-item.course-list__grid-course-item { --course-list-grid-layout-course-item-text-color: #ffffff; --course-list-grid-layout-course-item-background-color: #232323; } /* for subtle hover animation */ [data-section-id="6576c31ac1a71b16fb46c67c"] .course-list__grid-item.course-list__grid-course-item:hover { --course-list-grid-layout-course-item-hover-background-color: #c3876a; --course-list-grid-layout-course-item-text-color: #000000; } transition-property: background-color, color; transition-duration: 300ms; transition-timing-function: ease; transition-delay: 0; transition-behavior: initial; You can see this is not working in this course module: https://carnation-reindeer-g4g9.squarespace.com/next-gen/workshop-2-imposter-syndrome-lc2cy The full CSS sheet is attached for reference. All of this was working fine a couple of weeks ago but none is now. Also attached are some screenshots of some broken elements. Thanks in advance Link to comment
paul2009 Posted March 26 Share Posted March 26 It looks like some new CSS may have been added in the middle of existing CSS? As a result, lines 48 to 52 aren't correct and aren't doing anything. If you delete these, your other CSS may work. This will resolve the error. However, you'll need to work out where these lines should have been if you'd like your transitions to work. Ziggy 1 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Callan Posted March 26 Author Share Posted March 26 (edited) Hey, thanks for the quick reply! I deleted those lines but it hasn't fixed any of the issues. They originated from some CSS I used to change the colour of the course intro page tiles, as the inbuilt style sheet editor (colour palettes) wasn't working. But the colour palette is now working so I can delete that CSS without issue. But things such as the mobile header should still work, presumably, and are not. Edited March 26 by Callan Link to comment
Solution Ziggy Posted March 26 Solution Share Posted March 26 Line 60 has a closing bracket, but I can't see a corresponding opening bracket. paul2009 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment