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 808
  • 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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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.