Created
May 26, 2024 07:30
-
-
Save foeken/f9660a4b61229f488734cad10dd873c5 to your computer and use it in GitHub Desktop.
Most recent tana.csss
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
/* ==UserStyle== | |
@name app.tana.inc - 10/21/2022, 9:02:58 PM | |
@namespace github.com/openstyles/stylus | |
@version 1.0.0 | |
@description A new userstyle | |
@author Me | |
==/UserStyle== */ | |
@-moz-document domain("app.tana.inc") { | |
body { | |
font-family: 'IBM Plex Sans'; | |
-webkit-font-smoothing: subpixel-antialiased; | |
font-size: 14.5px !important; | |
} | |
/*img.inlineavatar { | |
margin-right: 0.1em; | |
}*/ | |
mark { | |
background-color: hsla(51, 98%, 81%, .69); | |
} | |
/* Brighten colors of icons when selected in picker to combat for blue background */ | |
div[data-selected] img { | |
filter: brightness(200%); | |
} | |
/* Grayscale and Hide icons in sidebar */ | |
.UnifiedSidebar-module_stack__YlsAk .ObjectAvatar-module_inherit__ciAQC { | |
filter: grayscale(100%) brightness(70%); | |
display: none; | |
} | |
/* Reduce colors of dates, icons, and links in checked todos */ | |
.itemdone-checkbox .inlineelement.inlinerefnode, .itemdone-checkbox .inlineelement.inlinerefdate, .itemdone-checkbox a { | |
filter: grayscale(70%); | |
} | |
/* Darken icons on hover (same as text) */ | |
.inlinecontent.hastemplate:hover .inlineavatar{ | |
filter: brightness(70%); | |
} | |
/* Hide workspace avatars in sidebar */ | |
.UnifiedSidebar-module_stack__YlsAk div[data-workspace-avatar=true] { | |
display: none; | |
} | |
/* Quotes and block-quotes */ | |
:has(span[data-tag="quote"]):not(.expandedNodeContent) > .listContentItem, | |
:has(span[data-tag="block-quote"]):not(.expandedNodeContent) > .listContentItem { | |
background-color: var(--colorReferenceMentionBackground); | |
border-left: 5px solid var(--colorUIStroke); | |
border-left-width: 3px; | |
border-radius: 3px; | |
padding: 8px 14px; | |
} | |
div[data-tag-name="ia-document"] span:not(div[data-is-panel-header="true"] span):not(section[data-panel-references="true"] span) { | |
font-family: 'iA Writer Quattro S'; | |
} | |
div[data-tag-name="ia-document"] > div:first-child > div:first-child span { | |
font-family: 'IBM Plex Sans' !important; | |
} | |
/* Sections */ | |
.listContentItem:has(span[data-tag="highlights-section"]) .editable { | |
background-color: #F2BD1D !important; | |
} | |
.listContentItem:has(span[data-tag="zettel-section"]) .editable { | |
background-color: #8D6343 !important; | |
} | |
.listContentItem:has(span[data-tag="nedap-section"]) .editable { | |
background-color: #12537A !important; | |
} | |
.listContentItem:has(span[data-tag="work-section"]) .editable { | |
background-color: #12537A !important; | |
} | |
.listContentItem:has(span[data-tag="journal-section"]) .editable { | |
background-color: #73A867 !important; | |
} | |
.listContentItem:has(span[data-tag="中文-section"]) .editable { | |
background-color: #FEA443 !important; | |
} | |
.listContentItem:has(span[data-tag="metrics-section"]) .editable { | |
background-color: #565656 !important; | |
} | |
.listContentItem:has(span[data-tag="spotlight-section"]) .editable { | |
background-color: #FEA443 !important; | |
} | |
div[data-tag-name="spotlight-section"] .OutlinerItem-module_typeWrapper__ai0zS { | |
display: none; | |
} | |
.listContentItem:has(span[data-tag="personal-section"]) .editable { | |
background-color: #1E86C7 !important; | |
} | |
.listContentItem:has(span[data-tag="inbox-section-old"]) .editable { | |
background-color: #D95F69 !important; | |
} | |
.listContentItem:has(span[data-tag="literature-notes"]) .editable { | |
background-color: #8F3B7B !important; | |
} | |
.listContentItem:has(span[data-tag="fleeting-notes"]) .editable { | |
background-color: #DB86C7 !important; | |
} | |
.listContentItem:has(span[data-tag="zettel-notes"]) .editable { | |
background-color: #73A867 !important; | |
} | |
.listContentItem:has(span[data-tag="scratchpad-section"]) .editable { | |
background-color: #565656 !important; | |
} | |
.listContentItem:has(span[data-tag="literature-notes"]) .noInteractiveInline { | |
display: block; | |
margin-top: 5px; | |
margin-bottom: 5px; | |
margin-left: 7px; | |
padding-left: 15px; | |
border-left: 1px solid var(--colorUITupleStroke) !important; | |
border-radius: 0px !important; | |
background: none !important; | |
color: var(--colorUITextMuted) !important; | |
font-style: italic; | |
} | |
.listContentItem:has(span[data-tag="highlights-section"]) .editable, | |
.listContentItem:has(span[data-tag="zettel-section"]) .editable, | |
.listContentItem:has(span[data-tag="nedap-section"]) .editable, | |
.listContentItem:has(span[data-tag="work-section"]) .editable, | |
.listContentItem:has(span[data-tag="journal-section"]) .editable, | |
.listContentItem:has(span[data-tag="中文-section"]) .editable, | |
.listContentItem:has(span[data-tag="spotlight-section"]) .editable, | |
.listContentItem:has(span[data-tag="personal-section"]) .editable, | |
.listContentItem:has(span[data-tag="inbox-section-old"]) .editable, | |
.listContentItem:has(span[data-tag="scratchpad-section"]) .editable, | |
.listContentItem:has(span[data-tag="metrics-section"]) .editable, | |
.listContentItem:has(span[data-tag="literature-notes"]) .editable, | |
.listContentItem:has(span[data-tag="zettel-notes"]) .editable, | |
.listContentItem:has(span[data-tag="fleeting-notes"]) .editable { | |
padding: 3px 7px; | |
line-height: 1.8em; | |
border-radius: 3px; | |
color: white; | |
border: none; | |
margin-right: 2px; | |
} | |
.listContentItem:has(span[data-tag="highlights-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="zettel-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="personal-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="journal-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="inbox-section-old"]) .inlineelement, | |
.listContentItem:has(span[data-tag="scratchpad-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="metrics-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="中文-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="spotlight-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="work-section"]) .inlineelement, | |
.listContentItem:has(span[data-tag="nedap-section"]) .inlineelement { | |
background: inherit !important; | |
color: white; | |
border: none; | |
} | |
/* Low opacity tags */ | |
.listContentItem span[data-tag="zettel"], | |
.listContentItem span[data-tag="missing"], | |
.listContentItem span[data-tag="highlights-section"], | |
.listContentItem span[data-tag="zettel-section"], | |
.listContentItem span[data-tag="personal-section"], | |
.listContentItem span[data-tag="nedap-section"], | |
.listContentItem span[data-tag="work-section"], | |
.listContentItem span[data-tag="journal-section"], | |
.listContentItem span[data-tag="inbox-section-old"], | |
.listContentItem span[data-tag="scratchpad-section"], | |
.listContentItem span[data-tag="中文-section"], | |
.listContentItem span[data-tag="spotlight-section"], | |
.listContentItem span[data-tag="metrics-section"], | |
.listContentItem span[data-tag="literature-notes"], | |
.listContentItem span[data-tag="zettel-notes"], | |
.listContentItem span[data-tag="fleeting-notes"] { | |
opacity: 0.4 | |
} | |
.listContentItem:hover span[data-tag="zettel"], | |
.listContentItem:hover span[data-tag="missing"], | |
.listContentItem:hover span[data-tag="highlights-section"], | |
.listContentItem:hover span[data-tag="zettel-section"], | |
.listContentItem:hover span[data-tag="personal-section"], | |
.listContentItem:hover span[data-tag="nedap-section"], | |
.listContentItem:hover span[data-tag="work-section"], | |
.listContentItem:hover span[data-tag="journal-section"], | |
.listContentItem:hover span[data-tag="inbox-section-old"], | |
.listContentItem:hover span[data-tag="scratchpad-section"], | |
.listContentItem:hover span[data-tag="metrics-section"], | |
.listContentItem:hover span[data-tag="中文-section"], | |
.listContentItem:hover span[data-tag="spotlight-section"], | |
.listContentItem:hover span[data-tag="literature-notes"], | |
.listContentItem:hover span[data-tag="zettel-notes"], | |
.listContentItem:hover span[data-tag="fleeting-notes"] { | |
opacity: 1 | |
} | |
/* Custom Zettel Styling */ | |
div[data-panel-content="true"] .listContentItem:has(span[data-tag="zettel"]) .editable { | |
background: #95DB851E; | |
padding: 3px 10px 3px 75px; | |
line-height: 2em; | |
border-radius: 3px; | |
position: relative; | |
color: #58814F !important; | |
} | |
div[data-panel-content="true"] .listContentItem:has(span[data-tag="zettel"]) .outerEdgeActive .editable:not(.outerEdgeEditable) { | |
border: 1px solid #95db8578; | |
border-left: 0px; | |
box-shadow: none; | |
animation: none; | |
position: relative; | |
z-index: 1; | |
} | |
div[data-panel-content="true"] .listContentItem:has(span[data-tag="zettel"]) .editable:before { | |
content: 'Zettel'; | |
color: #FFFFFF; | |
background-color: #95DB85; | |
border-radius: 3px 0 0 3px; | |
padding-left: 10px; | |
line-height: 26px; | |
left: 0px; | |
top: 0%; | |
position: absolute; | |
pointer-events: none; | |
width: 55px; | |
} | |
.isDarkMode div[data-panel-content="true"] .listContentItem:has(span[data-tag="zettel"]) .editable:before { | |
background-color: #95db857a; | |
color: #ffffffc4; | |
} | |
div[data-panel-content="true"] .listContentItem:has(span[data-tag="zettel"]) .editable:after { | |
content: ''; | |
color: #FFFFFF; | |
left: 55px; | |
top: 0%; | |
position: absolute; | |
pointer-events: none; | |
width: 0; | |
height: 0; | |
border-top: 13px solid transparent; | |
border-bottom: 13px solid transparent; | |
border-left: 13px solid #95DB85; | |
} | |
.isDarkMode div[data-panel-content="true"] .listContentItem:has(span[data-tag="zettel"]) .editable:after { | |
border-left: 13px solid #95db857a; | |
} | |
div[data-panel-content="true"] .listContentItem:has(span[data-tag="missing"]) .editable { | |
background: #FEA4431E; | |
padding: 3px 10px 3px 75px; | |
line-height: 2em; | |
border-radius: 3px; | |
position: relative; | |
color: #D78B37 !important; | |
} | |
div[data-panel-content="true"] .listContentItem:has(span[data-tag="missing"]) .outerEdgeActive .editable:not(.outerEdgeEditable) { | |
border: 1px solid #FEA44378; | |
border-left: 0px; | |
box-shadow: none; | |
animation: none; | |
position: relative; | |
z-index: 1; | |
} | |
div[data-panel-content="true"] .listContentItem:has(span[data-tag="missing"]) .editable:before { | |
content: 'Zettel'; | |
color: #FFFFFF; | |
background-color: #FEA443; | |
border-radius: 3px 0 0 3px; | |
padding-left: 10px; | |
line-height: 26px; | |
left: 0px; | |
top: 0%; | |
position: absolute; | |
pointer-events: none; | |
width: 55px; | |
} | |
.isDarkMode div[data-panel-content="true"] .listContentItem:has(span[data-tag="missing"]) .editable:before { | |
background-color: #FEA4437a; | |
} | |
div[data-panel-content="true"] .listContentItem:has(span[data-tag="missing"]) .editable:after { | |
content: ''; | |
color: #FFFFFF; | |
left: 55px; | |
top: 0%; | |
position: absolute; | |
pointer-events: none; | |
width: 0; | |
height: 0; | |
border-top: 13px solid transparent; | |
border-bottom: 13px solid transparent; | |
border-left: 13px solid #FEA443; | |
} | |
.isDarkMode div[data-panel-content="true"] .listContentItem:has(span[data-tag="missing"]) .editable:after { | |
border-left: 13px solid #FEA4437a; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment