Created
October 25, 2022 19:19
-
-
Save foeken/4c90387a47002003431ea0f6db8db449 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Define this only once, you can rename 'section' to any supertag you want to style */ | |
.listContentItem:has(span[data-tag="section"]) .inlinerefnode span { | |
background-color: inherit !important; | |
color: white; | |
border: none; | |
} | |
/* | |
Per specific reference inside the supertag, you can define different colors. | |
You will need to replace REFERENCE with the reference you want define the color for. | |
*/ | |
.listContentItem:has(span[data-tag="section"]) span[data-role="editable"]:has(span[data-inlineref-node="REFERENCE"]) { | |
background-color: #12537A !important; | |
padding: 3px 7px; | |
line-height: 2em; | |
border-radius: 3px; | |
color: white; | |
border: none; | |
margin-right: 2px; | |
} | |
.navtarget:has(span[data-inlineref-node="REFERENCE"]) > span { | |
background-color: #12537A !important; | |
padding: 0px 7px; | |
line-height: 2em; | |
border-radius: 3px; | |
color: white; | |
border: none; | |
margin-right: 2px; | |
} | |
.navtarget:has(span[data-inlineref-node="REFERENCE"]) .inlinerefnode span { | |
background-color: inherit !important; | |
color: white; | |
border: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment