Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it Possible to Remove Colon in Field List? #1126

Closed
robloo opened this issue Apr 11, 2021 · 2 comments
Closed

Is it Possible to Remove Colon in Field List? #1126

robloo opened this issue Apr 11, 2021 · 2 comments
Labels
Support Support question

Comments

@robloo
Copy link

robloo commented Apr 11, 2021

Problem

Sometimes it is useful to display an image as a field instead of text as shown below. While this may appear slightly strange, it's a design decision. However, there is always a Colon even when an image is used instead of text. There needs to be a way to disable the colon (:) for cases such as this.

image

Reproducible Project

Please give a link to a public reproducible project or provide an example of the Restructured Text that gives an issue.

:|e710|:
  **New Transaction:** Creates a new transaction for the selected account and opens the :ref:`transaction_editor`.
:|e118|:
  **Import:** Open the transaction import overlay.

Error Logs/Results

N/A

Expected Results

There should be a configuration to remove the colon. In fact I would argue that adding a colon to even text should not be the default behavior. The default should display the text exactly how it is written in the source file.

Environment Info

  • Python Version:
  • Sphinx Version:
  • RTD Theme Version: 0.5.2
@robloo robloo added Bug A bug Needed: replication Bug replication is required labels Apr 11, 2021
@Blendify
Copy link
Member

You can add custom css for this:

dl.field-list > dt:after {
  display: none;
}

To make this only affect select field list use a container directive:

https://docutils.sourceforge.io/docs/ref/rst/directives.html#container

.. container:: custom

   :|image|: Lorem Ipsum
   :|image|: Lorem Ipsum
   :|image|: Lorem Ipsum

In the case above the custom CSS would become:

.custom > dl.field-list > dt:after {
  display: none;
}

See the documentation below on how to add custom css to sphinx:

https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html

@Blendify Blendify added Support Support question and removed Bug A bug Needed: replication Bug replication is required labels Apr 12, 2021
@Blendify
Copy link
Member

Let me know if everything works for you, ill close this issue in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants