Skip to content

Commit

Permalink
feat(design): update article code styles (#2966)
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaint authored Aug 12, 2024
1 parent c3a1ad3 commit ab4aacc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
13 changes: 6 additions & 7 deletions libs/design/article/src/article-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,19 @@
$table-border-color: theming.daff-illuminate($base, $neutral, 2);

.daff-article {
color: $text-color;

&__meta {
color: theming.daff-illuminate($base-contrast, $neutral, 3);
}

@include stopsArticleCascade(a) {
color: theming.daff-color($primary);
}

@include stopsArticleCascade(h1, h2, h3, h4, h5, h6) {
color: $text-color;
}

@include stopsArticleCascade(p) {
color: $text-color;
code {
background: theming.daff-illuminate($base, $primary, 1);
color: theming.daff-illuminate($base-contrast, $primary, 4);
}
}

pre {
Expand Down
14 changes: 7 additions & 7 deletions libs/design/article/src/article/article.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
&:hover {
text-decoration: underline;
}

code {
font-size: 0.875em;
font-weight: 600;
line-height: 0.875em;
}
}

@include stopsArticleCascade(h1, h2, h3, h4, h5, h6) {
Expand All @@ -36,12 +42,6 @@
+ p {
@include t.body-md;
font-weight: 400;

code {
font-size: 1.25rem;
line-height: 1.5rem;
font-weight: 400;
}
}
}

Expand Down Expand Up @@ -102,7 +102,7 @@
border-radius: 0.25em;
font-size: t.$small-font-size;
line-height: 1rem;
padding: 0.25em;
padding: 0.125em 0.25em;
}

&__meta {
Expand Down

0 comments on commit ab4aacc

Please sign in to comment.