Skip to content

Instantly share code, notes, and snippets.

@ciceronianus
Created December 25, 2020 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ciceronianus/899f10c18aee61e390a5de574d176ae7 to your computer and use it in GitHub Desktop.
Save ciceronianus/899f10c18aee61e390a5de574d176ae7 to your computer and use it in GitHub Desktop.
Roam-nested-page-references
/*
Author:: @CatoMinor3
Version:: 2.0
Date:: December 28th, 2020
Changes log
- 2.0 - support for the latest version of Roam
Support:
- Paypal: https://www.paypal.me/catominor3
- Patreon: https://www.patreon.com/catominor
*/
:root {
--custom-background-color: lightsteelblue;
--custom-background-color-hover: orange;
}
.rm-page-ref--link{
color:black !important;
background: linear-gradient(0deg, var(--custom-background-color) 2px, white 1px, transparent 1px);
background-position: 0 100%;
line-height: 24px;
padding-bottom: 4px;
}
.rm-page-ref--link:hover{
color:black !important;
background: linear-gradient(0deg, var(--custom-background-color-hover) 2px, white 1px, transparent 1px);
background-position: 0 100%;
text-decoration: none;
line-height: 24px;
padding-bottom: 4px;
}
.rm-page-ref--link .rm-page-ref--link {
color: black !important;
background: linear-gradient(0deg, var(--custom-background-color) 2px, white 1px, transparent 1px);
background-position: 0 100%;
line-height: 28px;
padding-bottom: 8px;
}
.rm-page-ref--link .rm-page-ref--link:hover {
color: black !important;
background: linear-gradient(0deg, var(--custom-background-color-hover) 2px, white 1px, transparent 1px);
background-position: 0 100%;
line-height: 28px;
padding-bottom: 8px;
}
.rm-page-ref--link .rm-page-ref--link .rm-page-ref--link {
color: black !important;
background: linear-gradient(0deg, var(--custom-background-color) 2px, white 1px, transparent 1px);
background-position: 0 100%;
line-height: 32px;
padding-bottom: 12px;
}
.rm-page-ref--link .rm-page-ref--link .rm-page-ref--link:hover {
color: blaoutlining for headlines or comments.ck !important;
background: linear-gradient(0deg, var(--custom-background-color-hover) 2px, white 1px, transparent 1px);
background-position: 0 100%;
line-height: 32px;
padding-bottom: 12px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment