Skip to content

Commit

Permalink
improve priority style
Browse files Browse the repository at this point in the history
  • Loading branch information
henices committed Dec 27, 2023
1 parent 7854de6 commit cb37c37
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/code/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,17 +241,17 @@ html[data-theme='dark'] h1.title {
/* === PRIORITIES === */
a[priority]:not(a[priority=""])::before,
a.priority::before {
color: hsl(var(--nord-polar-night-nord0));
color: hsl(var(--nord-polar-night-nord1));
font-weight: 600;
}

a.priority::before {
margin-right: 0.2em;
margin-right: 0.5em;
transform: translateY(-1px);
border: 1px solid hsl(var(--cl-text-color), 0.15);
border-radius: var(--cl-checkbox-radius, 2px);
height: calc(var(--ls-font-size) + 2px);
width: calc(var(--ls-font-size) + 2px);
border-radius: var(--cl-checkbox-radius, 4px);
height: calc(var(--ls-font-size) + 4px);
width: calc(var(--ls-font-size) + 4px);
text-align: center;
display: inline-flex;
align-items: center;
Expand All @@ -269,22 +269,25 @@ a.priority {
a[priority="A"]::before,
a.priority[href="#/page/A" i]::before {
color: hsl(var(--nord-polar-night-nord0));
opacity: 1;
font-size: calc(var(--ls-font-size)*0.9);
content: "A";
background: hsl(var(--nord-aurora-nord11));
background: hsl(355, 65%, 65%);
}

a[priority="B"]::before,
a.priority[href="#/page/B" i]::before {
color: hsl(var(--nord-polar-night-nord0));
color: hsl(var(--nord-polar-night-nord1));
opacity: 1;
font-size: calc(var(--ls-font-size)*0.9);
content: "B";
background: hsl(var(--nord-aurora-nord12));
background: hsl(39, 67%, 69%);
}

a[priority="C"]::before,
a.priority[href="#/page/C" i]::before {
color: hsl(var(--nord-polar-night-nord0));
color: hsl(var(--nord-polar-night-nord1));
opacity: 1;
font-size: calc(var(--ls-font-size)*0.9);
content: "C";
background: hsl(var(--nord-aurora-nord14));
Expand Down

0 comments on commit cb37c37

Please sign in to comment.