Skip to content

Commit

Permalink
refactor(article): improve category tag style (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Cai authored Dec 25, 2020
1 parent a5820c6 commit f2955aa
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions assets/scss/partials/article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,6 @@
padding: var(--card-padding);
}

.article-category {
margin-bottom: 10px;
a {
display: inline-block;
text-decoration: none;
padding: 8px 16px;
font-size: 1.4rem;
background: nth($defaultTagBackgrounds, 1);
color: nth($defaultTagColors, 1);
border-radius: var(--tag-border-radius);

@media (max-width: $on-phone) {
font-size: 1.25rem;
padding: 8px 14px;
}
}
}

.article-title {
font-weight: 600;
margin: 10px 0;
Expand Down Expand Up @@ -128,11 +110,12 @@
}
}

.article-category,
.article-tags {
a {
color: var(--accent-color-text);
background-color: var(--accent-color);
padding: 8px 18px;
padding: 8px 16px;
border-radius: var(--tag-border-radius);
display: inline-block;
font-size: 1.4rem;
Expand Down

0 comments on commit f2955aa

Please sign in to comment.