Skip to content

Commit

Permalink
change(slate-footnote): allow customization of footnote background an…
Browse files Browse the repository at this point in the history
…d color

- when --bg-color css variable is set from a parent class, this way if these mentions
  are inside a parent content that has a certain bg color and text requirements they
  can be applied to the mentions as well
  • Loading branch information
ichim-david committed Sep 30, 2022
1 parent ea1bf70 commit 420ad70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/editor/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body {
}

span[aria-describedby='footnote-label'] {
color: #004b87;
color: var(--text-color, #004b87);
cursor: default;
outline: none;
text-decoration: none;
Expand All @@ -20,13 +20,13 @@ span[aria-describedby='footnote-label'] {

.footnote-edit-node {
padding: 0px 4px;
background-color: #e6f3ff;
background-color: var(--bg-color, #e6f3ff);
border-radius: 4px;
}

.footnote-edit-node::after,
.citation-item::after {
color: #0645ad;
color: var(--text-color, #0645ad);
content: attr(data-footnote-indice);
font-size: 75%;
vertical-align: super;
Expand Down

0 comments on commit 420ad70

Please sign in to comment.