Skip to content

Commit

Permalink
fix: adjust priority tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jul 1, 2021
1 parent 192eb19 commit 5fc4ad0
Showing 1 changed file with 52 additions and 56 deletions.
108 changes: 52 additions & 56 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -587,66 +587,62 @@ strong {
vertical-align: middle;
}

a[priority],
a.priority {
font-size: 0px; /* Hide text */
}

a[priority="A"]::before,
a.priority[href="#/page/A" i]:before {
content: "🔴A";
visibility: visible;
}

a[priority="B"]::before,
a.priority[href="#/page/B" i]:before {
content: "🟡B";
visibility: visible;
}

a[priority="C"]::before,
a.priority[href="#/page/C" i]:before {
content: "🟢C";
visibility: visible;
}
a[priority],
a.priority {
font-size: 0px; /* Hide text */
}

a.priority[href="#/page/A" i], [href="#/page/B" i], [href="#/page/C" i] {
visibility: hidden;
width: 1.5em;
height: 1.5em;
white-space: nowrap;
text-shadow: var(--ct-tag-shadow);
position: relative;
}

a[priority]::before,
a.priority::before {
border-radius: 50%;
color: var(--ls-primary-text-color);
display: inline-block;
font-size: 16px;
font-weight: 650;
height: 1rem;
line-height: 1rem;
text-align: center;
width: 38px;
margin-left: -3px;
}
a[priority]::before {
font-size: var(--ct-inline-code-font-size);
}

/* .Tooltip__label {
--arrow-size: 0px;
background-color: var(--ls-primary-background-color);
border: 1px solid grey;
font-size: 1rem;
left: -2px;
padding: 0 2px;
top: -2px;
width: max-content;
a[priority="A"]::before,
a.priority[href="#/page/A" i]:before {
content: "🔴 A";
visibility: visible;
}

a[priority="B"]::before,
a.priority[href="#/page/B" i]:before {
content: "🟡 B";
visibility: visible;
}

.Tooltip__label ul {
margin-left: 0;
} */
a[priority="C"]::before,
a.priority[href="#/page/C" i]:before {
content: "🟢 C";
visibility: visible;
}

a.priority[href="#/page/A" i],
[href="#/page/B" i],
[href="#/page/C" i] {
visibility: hidden;
width: 1.5em;
height: 1.5em;
white-space: nowrap;
text-shadow: var(--ct-tag-shadow);
position: relative;
}

a[priority]::before,
a.priority::before {
border-radius: 50%;
color: var(--ls-primary-text-color);
display: inline-block;
font-size: 16px;
font-weight: 650;
height: 1rem;
line-height: 1rem;
text-align: center;
width: 38px;
margin-left: -3px;
}

a.tooltip-priority:first-of-type::before {
margin-left: 0.3em;
margin-top: 0.5em;
}

.block-marker {
font-family: var(--ct-code-font-family);
Expand Down

0 comments on commit 5fc4ad0

Please sign in to comment.