LenP Posted May 18, 2023 Posted May 18, 2023 I often use code blocks to set anchors on a page, however, since they are not visible, it can be frustrating searching around to find them again. I would like the code block to be visible when I am in edit mode, but otherwise not visible. Here is the code I tried without luck: /* ** display border around code blocks in edit mode only ** */ body:not(.sqs-edit-mode) .source-code { display: none !important; opacity: 0 !important; } body.sqs-edit-mode .source-code { display: flex !important; border: 1px solid red !important; opacity: 1 !important; } Thanks.
Solution creedon Posted May 18, 2023 Solution Posted May 18, 2023 This isn't pretty but should get you started. .sqs-edit-mode-active .sqs-block-code { border : 1px solid red; } Let us know how it goes. Ad7am 1 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
LenP Posted May 18, 2023 Author Posted May 18, 2023 Thanks @creedon. That does exactly what I was looking for. creedon 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment