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
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;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

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