Skip to content

Commit

Permalink
Updated secondary badge styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Oct 15, 2022
1 parent 6d2a264 commit 7d5aaaf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion css-critical/styles.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7896,6 +7896,9 @@ h2 {
font-weight: bold; }

a.badge-secondary {
font-size: 1rem;
padding: 0.4rem 0.5rem !important;
color: #fff !important;
background-color: #7f8e9f !important; }
a.badge-secondary:hover {
background-color: #536272 !important; }
Expand Down
2 changes: 1 addition & 1 deletion css/styles.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function my_css_attributes_filter($var){

// Remove invalid rel attribute values in the categorylist
function remove_category_rel_from_category_list($thelist){
return str_replace( 'rel="category tag"', 'rel="tag"', $thelist);
return str_replace( 'rel="category tag"', 'class="badge badge-secondary" rel="tag"', $thelist);
}

// Add page slug to body class, love this - Credit: Starkers Wordpress Theme
Expand Down
4 changes: 3 additions & 1 deletion src/styles/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ h2{
}
}
a.badge-secondary{
font-size: 1rem;
padding: 0.4rem 0.5rem !important;
color: #fff !important;
background-color: #7f8e9f !important;
&:hover{
background-color: #536272 !important;
Expand Down Expand Up @@ -378,7 +381,6 @@ a{
}
}


p.post-tags{
line-height: 2.5rem;
a{
Expand Down

0 comments on commit 7d5aaaf

Please sign in to comment.