Jump to content

Markdown open/close indicator positioning

Recommended Posts

Hello,

 

I'm looking to move the +/- open/close indicators to align to the right and have the entire item underlined.

Attached an edited picture of current vs. ideal look for reference.

image.png.adf437c415cd5a14b9f9b4fd0255ca89.png

 

after changing the css to:

.markdown-block .ui-closed:after {
  padding-left: 0em;
  content:"+ ";
}

.markdown-block .ui-open:after {
  padding-left: 0em;
  content:"- ";

}

+ got put behind the text, however, I cannot seem to be able to underline the entire item or align the indicators to the right.

is this even doable with css or is this something that needs to be edited in html in the markdown itself?

 

https://angeliqueskincare.com/shop/p/drybeautyoil-k8n3f-xtl9a-frkef-je7bl-cy2jl-93awy

 

Any help is greatly appreciated!

Thanks!

Link to comment
  • Replies 2
  • Views 858
  • Created
  • Last Reply
1 hour ago, Jarren88 said:

Hello,

 

I'm looking to move the +/- open/close indicators to align to the right and have the entire item underlined.

Attached an edited picture of current vs. ideal look for reference.

image.png.adf437c415cd5a14b9f9b4fd0255ca89.png

 

after changing the css to:

.markdown-block .ui-closed:after {
  padding-left: 0em;
  content:"+ ";
}

.markdown-block .ui-open:after {
  padding-left: 0em;
  content:"- ";

}

+ got put behind the text, however, I cannot seem to be able to underline the entire item or align the indicators to the right.

is this even doable with css or is this something that needs to be edited in html in the markdown itself?

 

https://angeliqueskincare.com/shop/p/drybeautyoil-k8n3f-xtl9a-frkef-je7bl-cy2jl-93awy

 

Any help is greatly appreciated!

Thanks!

image.thumb.png.cdf388ad02cc38fccce3a1bd8ff956b9.png

.collection-type-products.view-item .sqs-block-markdown .sqs-block-content h4 {
  line-height: inherit;
  margin: 0;
  margin-bottom: 10px !important;
  position: relative;
}
.collection-type-products.view-item .sqs-block-markdown .sqs-block-content h4 > span {
  display: block;
  text-decoration: none !important;
  border-bottom: 1px solid #000;
  position: relative;
}
.collection-type-products.view-item .markdown-block .ui-closed:after {
    position: absolute;
    top: 0;
    right: 0;
}
.collection-type-products.view-item .markdown-block .ui-open:after {
    position: absolute;
    top: 0;
    right: 0;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment

Archived

This topic is now archived and is closed to further replies.

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