Skip to content

Commit

Permalink
Styling the citation table
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-glitsos-ga committed Mar 26, 2024
1 parent d92b8c3 commit e509183
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
26 changes: 26 additions & 0 deletions docs/_static/styles/components/_citation_table.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#citation-table {
#data-citation, #paper-citation {
.highlight {
background-color: transparent;
margin: 0;
}

pre {
background-color: transparent;
border: none;
font-family: $content-font-family;
padding: 0;
padding-right: 1rem;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
}

tr td:first-of-type {
min-width: 150px;
}
}

1 change: 1 addition & 0 deletions docs/_static/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@
@import "components/tags_list";
@import "components/anchor_heading";
@import "components/rubric";
@import "components/citation_table";
4 changes: 2 additions & 2 deletions docs/_templates/product-v1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@
:name: citation-table

{% if data.citation.data_citation %}
* - **Data citation:**
* - **Data citation**
- .. code-block:: text
:name: data-citation

{{ data.citation.data_citation }}
{%- endif %}
{% if data.citation.paper_citation %}
* - **Paper citation:**
* - **Paper citation**
- .. code-block:: text
:name: paper-citation

Expand Down

0 comments on commit e509183

Please sign in to comment.