Skip to content

Commit

Permalink
chore: tweak tldr appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Jun 15, 2024
1 parent aacf0b9 commit e6e96e1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions sass/parts/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
color: var(--text-1);
}

.tldr-div {
margin: 1.0em 0 0 0;
}

.tldr-prefix {
padding: 2px 4px;
border-radius: 4pt;
background-color: var(--primary-color);
}

.draft-label {
color: var(--text-0);
text-decoration: none;
Expand All @@ -25,6 +35,10 @@
color: var(--primary-color);
}

.primary-color-bg {
background-color: var(--primary-color);
}

.accent-bg {
color: var(--accent-bg);
}
Expand Down
6 changes: 3 additions & 3 deletions templates/macros/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ <h1 class="item-title">
</div>

{% if page.extra.tldr %}
<div class="tldr">
<strong class="primary-color">tl;dr:</strong><br>
{{ page.extra.tldr }}
<div class="tldr-div">
<strong class="tldr-prefix">tl;dr:</strong>
{{ page.extra.tldr | markdown(inline=true) | safe }}
</div>
{% endif %}

Expand Down

0 comments on commit e6e96e1

Please sign in to comment.