Skip to content

Commit

Permalink
Update to tweaked chirilang spread syntax, fix wordmark too big
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiriVulpes committed Nov 5, 2024
1 parent bb98598 commit f97bd77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ui/component/Masthead.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Masthead = Component.Builder("header", (masthead, view: ViewContainer) =>
.clearPopover()
.append(Component()
.and(Button)
.style("masthead-home", "heading", "heading-1")
.style("masthead-home", "heading")
.append(flag)
.append(Component("img")
.style("masthead-home-logo-wordmark")
Expand Down
12 changes: 6 additions & 6 deletions style/class/markdown.chiri
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
$markdown-paragraph-padding-bottom: round(up, 1rem, 1px)
$markdown-paragraph-padding-top: round(up, 0.5rem, 1px)
.markdown:
..& p:
&& p:
margin-block: $markdown-paragraph-padding-top $markdown-paragraph-padding-bottom

..& hr:
&& hr:
; to match paragraph sizes
margin-block-start: round(up, 1rem + 0.5lh, 1px)
margin-block-end: round(up, 1rem + 0.5lh - 1px, 1px)

..& blockquote:
&& blockquote:
%margin-inline-0
%padding-left-3
box-shadow: inset $space-1 0 0 0 #{alpha(0.2, $colour-0)}

..& code:
&& code:
%border-radius-1
padding-inline: ${code-padding: $space-1}
margin-inline: ${code-padding: $space-1}
background: ${code-background: light-dark(#{alpha(0.15, $dark-0)}, #{alpha(0.3, $dark-0)})}

..& pre:
&& pre:
%padding-2-3
%border-radius-2
$code-background: transparent
$code-padding: 0
background: light-dark(#{alpha(0.1, $dark-0)}, #{alpha(0.2, $dark-0)})

..@after:
&@after:
%content
%block
margin-top: $markdown-paragraph-padding-bottom
Expand Down

0 comments on commit f97bd77

Please sign in to comment.