Skip to content

Commit

Permalink
feat: support more tags
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Sep 21, 2024
1 parent 9323764 commit c5a0b41
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions plugins/oeyoews/neotw/tiddlers/style/customize-tag.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ title: $:/plugins/oeyoews/neotw/style/tag-customize
tags: $:/tags/Stylesheet

\define tag-ui(tags:'Vue', color:'lime')
[data-tag-title="$tags$"] .tc-tag-label {
[data-tag-title="$tags$"] .tc-tag-label,
.tc-tag-label[data-tag-title="$tags$"] {
background-color: <<colour $color$>> !important;
border-color: <<colour $color$-dark>> !important;
color: <<colour $color$-dark>> !important;
Expand All @@ -17,11 +18,12 @@ tags: $:/tags/Stylesheet
border-radius: 5px;
}

<!-- [data-tag-title] .tc-tag-label {
background-color: <<colour-extend teal>> !important;
border-color: <<colour-extend teal-dark>> !important;
color: <<colour-extend teal-dark>> !important;
} -->
[data-tag-title^="$:/tags/"] .tc-tag-label,
.tc-tag-label[data-tag-title^="$:/tags/"] {
background-color: <<colour rose>> !important;
border-color: <<colour rose-dark>> !important;
color: <<colour rose-dark>> !important;
}

<!-- [
{
Expand Down

0 comments on commit c5a0b41

Please sign in to comment.